Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add translation placeholder #898

Merged
merged 6 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions content/r-universe/_index.es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
+++
fecha = "2017-07-13T22:00:37-07:00"
title = "La plataforma R-Universe"
description = "La plataforma R-Universe para mejorar la publicación y el descubrimiento de software de investigación en R."
tags = ["r-universe"]
+++

[R-Universe](https://r-universe.dev/) es la plataforma de rOpenSci para mejorar la publicación y el descubrimiento de software de investigación en R.

R-Universe permite a las personas que usan y desarrolladnos paquetes R:

- **Descubrir**: R-Universe proporciona un catálogo de búsqueda de software en R, artículos, conjuntos de datos, en cualquier lugar del ecosistema. Ese catálogo está indexado y clasificado utilizando características específicas de R.

- **Aprender**: R-Universe sirve material renderizado y amplia información de base para aprender sobre un paquete y empezar a utilizarlo.

- **Publicar**: R-Universe es una plataforma abierta para generar repositorios personales de paquetes similares a CRAN, para que tu trabajo sea visible y accesible a un gran público, con o sin CRAN.

- **Desarrollar**: R-Universe proporciona un entorno de desarrollo sin necesidad de configuración para la integración continua (que permite identificar fallos antes de la publicación), funciones experimentales de R, nuevas plataformas como WebAssembly, etc.


11 changes: 10 additions & 1 deletion themes/ropensci/i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,13 @@
other = 'Browse By Author'

[Read-more]
other = 'Read more'
other = 'Read more'

[Projects]
other = 'Projects'

[Blog]
other = 'Blog'

[Tech-Notes]
other = 'Tech Notes'
11 changes: 10 additions & 1 deletion themes/ropensci/i18n/es.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,13 @@
other = 'Explora por autores'

[Read-more]
other = 'Lee más'
other = 'Lee más'

[Projects]
other = 'Proyectos'

[Blog]
other = 'Blog'

[Tech-Notes]
other = 'Notas técnicas'
9 changes: 9 additions & 0 deletions themes/ropensci/i18n/fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,13 @@

[Read-more]
other = 'Lire plus'

[Projects]
other = 'Projets'

[Blog]
other = 'Blog'

[Tech-Notes]
other = 'Notes techniques'

22 changes: 18 additions & 4 deletions themes/ropensci/layouts/partials/skeleton/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,31 @@
</ul>
</li>
<li class="nav-item drp">
<a class="nav-link" lang="en" href="/blog/">Blog</a>
<a class="nav-link" lang="en" href="{{ relLangURL "blog"}}">{{ i18n "Blog" }}</a>
<ul class="sub-menu">
<li><a lang="en" href="/technotes/">Tech Notes</a></li>
<li><a lang="en" href="{{ relLangURL "technotes"}}">{{ i18n "Tech-Notes" }}</a></li>
</ul>
</li>

<li class="nav-item drp">
<a class="nav-link" lang="en" href="/about/">Projects</a>
<a class="nav-link" lang="en" href="/about/">{{ i18n "Projects" }}</a>
<ul class="sub-menu">
{{ $currentlang := .Language }}
{{ $defaultlang := "en" }}
{{ range $index, $page := ( where (where .Site.AllPages "Kind" "section") "Type" "in" .Site.Params.projects ) }}
<li><a lang="en" href="{{ $page.RelPermalink }}">{{ $page.Title }}</a></li>
{{ if (eq $page.Language $currentlang) }}
<li><a lang="{{ $currentlang }}" href="{{ $page.RelPermalink }}">{{ $page.Title }}</a></li>
{{ else }}
{{ $placeholder := 0 }}
{{ range $page.AllTranslations }}
{{ if (eq .Lang $currentlang.Lang )}}
{{ $placeholder = 1 }}
{{ end }}
{{ end }}
{{ if (eq $placeholder 0) }}
<li><a lang="{{ $defaultlang }}" href="{{ $page.RelPermalink }}">{{ $page.Title }}</a></li>
{{ end }}
{{ end }}
{{ end }}
</ul>
</li>
Expand Down
6 changes: 3 additions & 3 deletions themes/ropensci/layouts/technotes/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ <h1>{{ .Title }}</h1>
</div>
<div class="col-md-3 offset-md-1">
<aside>
<a href="/tags" class="arrow-card">{{ i18n "Browse-By-Tag" }}</a>
<a href="/author" class="arrow-card">{{ i18n "Browse-By-Author" }}</a>
<a href="/archive" class="arrow-card">{{ i18n "All-Posts" }}</a>
<a href="{{ relLangURL "tags"}}" class="arrow-card">{{ i18n "Browse-By-Tag" }}</a>
<a href="{{ relLangURL "author"}}" class="arrow-card">{{ i18n "Browse-By-Author" }}</a>
<a href="{{ relLangURL "archive"}}" class="arrow-card">{{ i18n "All-Posts" }}</a>
</aside>
</div>
</div>
Expand Down