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

Krombel add i18n #61

Merged
merged 11 commits into from
Mar 31, 2019
Prev Previous commit
Next Next commit
update i18n to support counts; add german translation
  • Loading branch information
krombel committed Aug 27, 2018
commit c2ce44c4c4c7a363ba8b9240e659e836ee806325
33 changes: 33 additions & 0 deletions i18n/de.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[view]
other = "Anzeigen"
[code]
other = "Code"
[viewAll]
other = "Alles anzeigen"
[letsChat]
other = "Lass uns Chatten"
[name]
other = "Name"
[email]
other = "Email"
[subject]
other = "Betreff"
[message]
other = "Nachricht"
[send]
other = "Sende"
[thanksForYourEmail]
other = "Danke für deine Email!"
[minuteRead]
one = "Eine Minute zu lesen"
other = "{{.Count}} Minuten zu lesen"
[latestPosts]
other = "Letzte Posts"
[enableJavaScript]
other = "Bitte aktiviere JavaScript um die Kommentare anzuzeigen von"
[404Message]
other = "WAS HAST DU GETAN?!"
[themeDevelopedBy]
other = "Theme entwickelt von"
[copyright]
other = "Copyright"
41 changes: 41 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[view]
other = "View"
[code]
other = "Code"
[viewAll]
other = "View All"
[letsChat]
other = "Let's Chat"
[name]
other = "Name"
[email]
other = "Email"
[subject]
other = "Subject"
[message]
other = "Message"
[send]
other = "Send"
[thanksForYourEmail]
other = "Thanks for your email!"
[minuteRead]
one = "One minute read"
other = "{{.Count}} minutes read"
[latestPosts]
other = "Latest Posts"
[enableJavaScript]
other = "Please enable JavaScript to view comments powered by"
[404Message]
other = "WHAT DID YOU DO?!"
[themeDevelopedBy]
other = "Theme developed by"
[copyright]
other = "Copyright"
[facebook]
other = "Facebook"
[github]
other = "GitHub"
[linkedin]
other = "LinkedIn"
[twitter]
other = "Twitter"
42 changes: 0 additions & 42 deletions i18n/en.yaml

This file was deleted.

30 changes: 30 additions & 0 deletions i18n/sv.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[view]
other = "Visa"
[code]
other = "Kod"
[viewAll]
other = "Visa alla"
[letsChat]
other = "Låt oss prata"
[name]
other = "Namn"
[email]
other = "E-post"
[subject]
other = "Rubrik"
[message]
other = "Meddelande"
[send]
other = "Skicka"
[thanksForYourEmail]
other = "Tack för ditt mail!"
[minuteRead]
other = "minuters läsning"
[latestPosts]
other = "Senaste inläggen"
[enableJavaScript]
other = "Vänligen aktivera Javascript för att visa kommentarer med hjälp av"
[404Message]
other = "Vad hände?"
[themeDevelopedBy]
other = "Temat utvecklat av"
42 changes: 0 additions & 42 deletions i18n/sv.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<article>
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<div class=sub-header>
{{ .Date.Format (.Site.Params.dateform | default "January 2, 2006") }} · {{ .ReadingTime }} {{ i18n "minuteRead" }}
{{ .Date.Format (.Site.Params.dateform | default "January 2, 2006") }} · {{ i18n "minuteRead" .ReadingTime }}
</div>
</article>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<h1>{{ if .Params.heading }} {{ .Params.heading }} {{ else }} {{ .Title }} {{ end }}</h1>

<div class="sub-header">
{{ .Date.Format (.Site.Params.dateform | default "January 2, 2006") }} · {{ .ReadingTime }} {{ i18n "minuteRead" }}
{{ .Date.Format (.Site.Params.dateform | default "January 2, 2006") }} · {{ i18n "minuteRead" .ReadingTime }}
</div>

<article class="entry-content">
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<article>
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<div class=sub-header>
{{ .Date.Format (.Site.Params.dateform | default "January 2, 2006") }} · {{ .ReadingTime }} {{ i18n "minuteRead" }}
{{ .Date.Format (.Site.Params.dateform | default "January 2, 2006") }} · {{ i18n "minuteRead" .ReadingTime }}
</div>
</article>
{{ end }}
Expand Down