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" url = "https://discuss.kubernetes.io"
icon = "fa fa-envelope" icon = "fa fa-envelope"
desc = "Discussion and help from your fellow users" desc = "Discussion and help from your fellow users"
[[params.links.user]] [[params.links.user]]
name = "Twitter" name = "Twitter"
url = "https://twitter.com/kubernetesio" 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" url = "https://git.k8s.io/community/contributors/guide"
icon = "fas fa-edit" icon = "fas fa-edit"
desc = "Contribute to the Kubernetes website" desc = "Contribute to the Kubernetes website"
[[params.links.developer]] [[params.links.developer]]
name = "Stack Overflow" name = "Stack Overflow"
url = "https://stackoverflow.com/questions/tagged/kubernetes" 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] [version_check_tocheck]
other = "To check the version, enter " other = "To check the version, enter "
[version_menu]
other = "Versions"
[warning] [warning]
other = "Warning:" other = "Warning:"
[whatsnext_heading] [whatsnext_heading]
other = "What's next" other = "What's next"

View File

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