Make "Versions" string on the navbar translatable.

This commit is contained in:
TAKAHASHI Shuuji 2020-07-04 09:25:11 +09:00
parent 0aa224d0bc
commit a15b40604c
4 changed files with 21 additions and 7 deletions

View File

@ -222,7 +222,7 @@ no = 'Sorry to hear that. Please <a href="https://github.com/USERNAME/REPOSITORY
url = "https://discuss.kubernetes.io"
icon = "fa fa-envelope"
desc = "Discussion and help from your fellow users"
[[params.links.user]]
name = "Twitter"
url = "https://twitter.com/kubernetesio"
@ -259,7 +259,7 @@ no = 'Sorry to hear that. Please <a href="https://github.com/USERNAME/REPOSITORY
url = "https://git.k8s.io/community/contributors/guide"
icon = "fas fa-edit"
desc = "Contribute to the Kubernetes website"
[[params.links.developer]]
name = "Stack Overflow"
url = "https://stackoverflow.com/questions/tagged/kubernetes"

View File

@ -210,8 +210,11 @@ other = "Your Kubernetes server must be at or later than version "
[version_check_tocheck]
other = "To check the version, enter "
[version_menu]
other = "Versions"
[warning]
other = "Warning:"
[whatsnext_heading]
other = "What's next"
other = "What's next"

View File

@ -58,6 +58,9 @@ other = "このページは役に立ちましたか?"
[feedback_yes]
other = "はい"
[input_placeholder_email_address]
other = "メールアドレス"
[latest_version]
other = "最新バージョン"
@ -187,11 +190,11 @@ other = "作業するKubernetesサーバーは次のバージョン以降のも
[version_check_tocheck]
other = "バージョンを確認するには次のコマンドを実行してください: "
[whatsnext_heading]
other = "次の項目"
[version_menu]
other = "バージョン"
[warning]
other = "警告:"
[input_placeholder_email_address]
other = "メールアドレス"
[whatsnext_heading]
other = "次の項目"

View File

@ -0,0 +1,8 @@
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ T "version_menu" }}
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
{{ range .Site.Params.versions }}
<a class="dropdown-item" href="{{ .url }}">{{ .version }}</a>
{{ end }}
</div>