Skip to content

Commit

Permalink
Use i18n for site navigation link tooltips (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
littleninja committed Oct 1, 2021
1 parent 1ae24ad commit 08d842f
Show file tree
Hide file tree
Showing 17 changed files with 62 additions and 14 deletions.
5 changes: 4 additions & 1 deletion i18n/bg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ other = "Задължително е да предоставите адрес н
other = "Изпрати"

[taxonomyPageList]
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"

[pageTitle]
other = "{{ .Name }} страница"
5 changes: 4 additions & 1 deletion i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ other = "Eine Email Adresse wird benötigt."
other = "Senden"

[taxonomyPageList]
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"

[pageTitle]
other = "{{ .Name }} Seite"
5 changes: 4 additions & 1 deletion i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ other = "An email address is required."
other = "Send"

[taxonomyPageList]
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"

[pageTitle]
other = "{{ .Name }} page"
5 changes: 4 additions & 1 deletion i18n/es.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ other = "Se requiere una dirección de correo electrónico."
other = "Enviar"

[taxonomyPageList]
other = "A continuación encontrará las páginas asociadas a “{{ .Title }}”"
other = "A continuación encontrará las páginas asociadas a “{{ .Title }}”"

[pageTitle]
other = "{{ .Name }} pagina"
5 changes: 4 additions & 1 deletion i18n/fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ other = "Une adresse e-mail est requise."
other = "Envoyer"

[taxonomyPageList]
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"

[pageTitle]
other = "{{ .Name }} page"
5 changes: 4 additions & 1 deletion i18n/hu.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ other = "E-mail cím megadása kötelező."
other = "Küldés"

[taxonomyPageList]
other = "Ezen a lapon a(z) {{ .Title }} kategóriába tartozó cikkeket találod"
other = "Ezen a lapon a(z) {{ .Title }} kategóriába tartozó cikkeket találod"

[pageTitle]
other = "{{ .Name }} oldal"
5 changes: 4 additions & 1 deletion i18n/it.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ other = "Indirizzo email obbligatorio."
other = "Invia"

[taxonomyPageList]
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"

[pageTitle]
other = "{{ .Name }} pagina"
5 changes: 4 additions & 1 deletion i18n/nl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ other = "Een e-mailadres is vereist."
other = "Stuur"

[taxonomyPageList]
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"

[pageTitle]
other = "{{ .Name }} pagina"
5 changes: 4 additions & 1 deletion i18n/no.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ other = "E-postadresse er påkrevd"
other = "Sende"

[taxonomyPageList]
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"

[pageTitle]
other = "{{ .Name }} side"
3 changes: 3 additions & 0 deletions i18n/pt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ other = "Enviar"

[taxonomyPageList]
other = "Abaixo você encontrará as páginas que utilizam o termo de taxonomia “{{ .Title }}”"

[pageTitle]
other = "{{ .Name }} página"
3 changes: 3 additions & 0 deletions i18n/ru.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ other = "Отправить"

[taxonomyPageList]
other = "Ниже вы найдете страницы, на которых используется термин таксономии “{{ .Title }}”"

[pageTitle]
other = "{{ .Name }} страница"
5 changes: 4 additions & 1 deletion i18n/sv.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ other = "En e-postadress krävs."
other = "Skicka"

[taxonomyPageList]
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"

[pageTitle]
other = "{{ .Name }} sida"
3 changes: 3 additions & 0 deletions i18n/tr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ other = "Gönder"

[taxonomyPageList]
other = "Aşağıda, “{{ .Title }}” sınıflandırma terimini kullanan sayfaları bulacaksınız."

[pageTitle]
other = "{{ .Name }} sayfa"
5 changes: 4 additions & 1 deletion i18n/uk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ other = "Електронна пошта обов'язкова"
other = "Надіслати"

[taxonomyPageList]
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"
other = "Below you will find pages that utilize the taxonomy term “{{ .Title }}”"

[pageTitle]
other = "{{ .Name }} сторінки"
5 changes: 4 additions & 1 deletion i18n/zh-tw.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ other = "必須填寫 Email"
other = "送出"

[taxonomyPageList]
other = "標籤為 “{{ .Title }}” 的頁面如下"
other = "標籤為 “{{ .Title }}” 的頁面如下"

[pageTitle]
other = "{{ .Name }} 頁"
5 changes: 4 additions & 1 deletion i18n/zh.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ other = "需要电子邮件地址。"
other = "发送"

[taxonomyPageList]
other = "标签为“{{ .Title }}”的页面如下"
other = "标签为“{{ .Title }}”的页面如下"

[pageTitle]
other = "{{ .Name }} 页"
2 changes: 1 addition & 1 deletion layouts/partials/site-navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ul class="pl0 mr3">
{{ range .Site.Menus.main }}
<li class="list f5 f4-ns fw4 dib pr3">
<a class="hover-white no-underline white-90" href="{{ .URL }}" title="{{ .Name }} page">
<a class="hover-white no-underline white-90" href="{{ .URL }}" title="{{ i18n "pageTitle" . }}">
{{ .Name }}
</a>
</li>
Expand Down

0 comments on commit 08d842f

Please sign in to comment.