Skip to content

Commit

Permalink
i18n: update i18n string format (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq authored May 18, 2020
1 parent 36f59a7 commit 9c12444
Show file tree
Hide file tree
Showing 35 changed files with 236 additions and 284 deletions.
2 changes: 2 additions & 0 deletions assets/css/_partial/_single/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
[theme=dark] & {
color: $global-font-secondary-color-dark;
}

@include link(false, false);
}

.post-info-md {
Expand Down
16 changes: 8 additions & 8 deletions assets/data/social.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ youtubechannel:
# 012: Tumblr
tumblr:
weight: 12
template: https://%s.tumblr.com/
template: https://%v.tumblr.com/
title: Tumblr
icon:
class: fab fa-tumblr fa-fw
Expand Down Expand Up @@ -225,7 +225,7 @@ spotify:
# 029: Bandcamp
bandcamp:
weight: 29
template: https://%s.bandcamp.com/
template: https://%v.bandcamp.com/
title: Bandcamp
icon:
class: fab fa-bandcamp fa-fw
Expand Down Expand Up @@ -281,7 +281,7 @@ foursquare:
# 036: Hacker News
hackernews:
weight: 36
template: https://news.ycombinator.com/user?id=%s
template: https://news.ycombinator.com/user?id=%v
title: Hacker News
icon:
class: fab fa-hacker-news fa-fw
Expand Down Expand Up @@ -385,7 +385,7 @@ jsfiddle:
# 049: DeviantArt
deviantart:
weight: 49
template: https://%s.deviantart.com/
template: https://%v.deviantart.com/
title: DeviantArt
icon:
class: fab fa-deviantart fa-fw
Expand All @@ -409,7 +409,7 @@ dribbble:
# 052: WordPress
wordpress:
weight: 52
template: https://%s.wordpress.com/
template: https://%v.wordpress.com/
title: WordPress
icon:
class: fab fa-wordpress fa-fw
Expand All @@ -425,7 +425,7 @@ vine:
# 054: Google Scholar
googlescholar:
weight: 54
template: https://scholar.google.com/citations?%s
template: https://scholar.google.com/citations?%v
title: Google Scholar
icon:
simpleicons: googlescholar
Expand Down Expand Up @@ -472,7 +472,7 @@ gitea:
# 060: XMPP
xmpp:
weight: 60
template: xmpp:%s
template: xmpp:%v
title: XMPP
icon:
simpleicons: xmpp
Expand All @@ -496,7 +496,7 @@ bilibili:
# 063: Email
email:
weight: 63
template: mailto:%s
template: mailto:%v
title: Email
icon:
class: far fa-envelope fa-fw
Expand Down
34 changes: 14 additions & 20 deletions i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ other = "Artikel"

# === Taxonomy ===
[allSome]
other = "Alle %s"
other = "Alle {{ .Some }}"

[tag]
other = "Tag"
Expand Down Expand Up @@ -47,10 +47,7 @@ other = "Thema wechseln"

# === partials/footer.html ===
[poweredBySome]
other = "Ermöglicht durch %s"

[theme]
other = "Thema"
other = "Ermöglicht durch {{ .Hugo }} | Thema - {{ .Theme }}"
# === partials/footer.html ===

# === partials/comment.html ===
Expand Down Expand Up @@ -108,33 +105,30 @@ other = "Teilen auf"
[contents]
other = "Inhalt"

[publish]
other = "veröffentlicht auf"
[publishedOnDate]
other = "veröffentlicht auf {{ .Date }}"

[included]
other = "enthalten in"
[includedInCategories]
other = "enthalten in {{ .Categories }}"

[wordCount]
one = "Ein Wort"
other = "{{ .Count }} Wörter"
one = "Ein wort"
other = "{{ .Count }} wörter"

[readingTime]
one = "Eine Minute"
other = "{{ .Count }} Minuten"
one = "Eine minute"
other = "{{ .Count }} minuten"

[views]
other = "Aufrufe"
other = "aufrufe"

[author]
other = "Autor"

[lastMod]
other = "Aktualisiert am %s"

[license]
other = "Veröffentlicht unter der %s Lizenz"
[updatedOnDate]
other = "Aktualisiert am {{ .Date }}"

[seeMarkdown]
[readMarkdown]
other = "Markdown anzeigen"

[back]
Expand Down
30 changes: 13 additions & 17 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ other = "Posts"

# === Taxonomy ===
[allSome]
other = "All %s"
other = "All {{ .Some }}"

[tag]
other = "Tag"
Expand Down Expand Up @@ -46,10 +46,7 @@ other = "Switch Theme"

# === partials/footer.html ===
[poweredBySome]
other = "Powered by %s"

[theme]
other = "Theme"
other = "Powered by {{ .Hugo }} | Theme - {{ .Theme }}"
# === partials/footer.html ===

# === partials/comment.html ===
Expand Down Expand Up @@ -104,31 +101,30 @@ other = "Share on"
[contents]
other = "Contents"

[publish]
other = "published on"
[publishedOnDate]
other = "published on {{ .Date }}"

[included]
other = "included in"
[includedInCategories]
other = "included in {{ .Categories }}"

[wordCount]
other = "about {{ .Count }} words"
one = "One word"
other = "{{ .Count }} words"

[readingTime]
other = "{{ .Count }} min"
one = "One minute"
other = "{{ .Count }} minutes"

[views]
other = "views"

[author]
other = "Author"

[lastMod]
other = "The article was updated on %s"

[license]
other = "Published under the %s license"
[updatedOnDate]
other = "Updated on {{ .Date }}"

[seeMarkdown]
[readMarkdown]
other = "Read Markdown"

[back]
Expand Down
30 changes: 13 additions & 17 deletions i18n/es.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ other = "Artículos"

# === Taxonomy ===
[allSome]
other = "Todo %s"
other = "Todo {{ .Some }}"

[tag]
other = "Etiqueta"
Expand Down Expand Up @@ -47,10 +47,7 @@ other = "Cambia el tema"

# === partials/footer.html ===
[poweredBySome]
other = "Provisto por %s"

[theme]
other = "Tema"
other = "Provisto por {{ .Hugo }} | Tema - {{ .Theme }}"
# === partials/footer.html ===

# === partials/comment.html ===
Expand Down Expand Up @@ -108,31 +105,30 @@ other = "Compartir en"
[contents]
other = "Contenido"

[publish]
other = "publicado el"
[publishedOnDate]
other = "publicado el {{ .Date }}"

[included]
other = "incluido en"
[includedInCategories]
other = "incluido en {{ .Categories }}"

[wordCount]
other = "unas {{ .Count }} palabras"
one = "Una palabra"
other = "{{ .Count }} palabras"

[readingTime]
other = "{{ .Count }} min"
one = "Un minuto"
other = "{{ .Count }} minutos"

[views]
other = "vistas"

[author]
other = "Autor"

[lastMod]
other = "El artículo fue actualizado el %s"

[license]
other = "Publicado bajo la licencia %s"
[updatedOnDate]
other = "Actualizado el {{ .Date }}"

[seeMarkdown]
[readMarkdown]
other = "Leer Markdown"

[back]
Expand Down
30 changes: 13 additions & 17 deletions i18n/fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ other = "Posts"

# === Taxonomy ===
[allSome]
other = "Tous %s"
other = "Tous {{ .Some }}"

[tag]
other = "Balise"
Expand Down Expand Up @@ -47,10 +47,7 @@ other = "Changer de Thème"

# === partials/footer.html ===
[poweredBySome]
other = "Propulsé par %s"

[theme]
other = "Thème"
other = "Propulsé par {{ .Hugo }} | Thème - {{ .Theme }}"
# === partials/footer.html ===

# === partials/comment.html ===
Expand Down Expand Up @@ -108,31 +105,30 @@ other = "Partager sur"
[contents]
other = "Contenu"

[publish]
other = "publié le"
[publishedOnDate]
other = "publié le {{ .Date }}"

[included]
other = "inclus dans"
[includedInCategories]
other = "inclus dans {{ .Categories }}"

[wordCount]
other = "environ {{ .Count }} mots"
one = "Un mot"
other = "{{ .Count }} mots"

[readingTime]
other = "{{ .Count }} min"
one = "Une minute"
other = "{{ .Count }} minutes"

[views]
other = "vues"

[author]
other = "Auteur"

[lastMod]
other = "Dernière mise à jour le %s"

[license]
other = "Publié sous licence %s"
[updatedOnDate]
other = "Mis à jour le {{ .Date }}"

[seeMarkdown]
[readMarkdown]
other = "Lire Markdown"

[back]
Expand Down
Loading

0 comments on commit 9c12444

Please sign in to comment.