Skip to content

Commit 7007075

Browse files
authored
Create zh.toml to enable use of zh-cn translation (#8484)
1 parent a834b11 commit 7007075

File tree

3 files changed

+116
-6
lines changed

3 files changed

+116
-6
lines changed

.warnings-skip-list.txt

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,100 @@
11
_filename-error
22
The following package was not found and will be installed
33

4+
# Missing translation IDs as reported by Hugo's --printI18nWarnings
5+
#
6+
# Note that the pt and zh warnings are related to
7+
# https://github.com/open-telemetry/opentelemetry.io/issues/8481
8+
#
9+
# Not used unless `hugo --printI18nWarnings` is used.
10+
11+
WARN i18n|MISSING_TRANSLATION|bn|ui_search_ai_modal_title
12+
WARN i18n|MISSING_TRANSLATION|bn|ui_search_ai_modal_disclaimer
13+
WARN i18n|MISSING_TRANSLATION|bn|ui_search_ai_popover_content
14+
WARN i18n|MISSING_TRANSLATION|bn|feedback_title
15+
WARN i18n|MISSING_TRANSLATION|bn|feedback_question
16+
WARN i18n|MISSING_TRANSLATION|bn|feedback_positive
17+
WARN i18n|MISSING_TRANSLATION|bn|feedback_negative
18+
WARN i18n|MISSING_TRANSLATION|es|ui_search_ai_modal_title
19+
WARN i18n|MISSING_TRANSLATION|es|ui_search_ai_modal_disclaimer
20+
WARN i18n|MISSING_TRANSLATION|es|ui_search_ai_popover_content
21+
WARN i18n|MISSING_TRANSLATION|fr|ui_search_ai_modal_title
22+
WARN i18n|MISSING_TRANSLATION|fr|ui_search_ai_modal_disclaimer
23+
WARN i18n|MISSING_TRANSLATION|fr|ui_search_ai_popover_content
24+
WARN i18n|MISSING_TRANSLATION|ja|ui_search_ai_modal_title
25+
WARN i18n|MISSING_TRANSLATION|ja|ui_search_ai_modal_disclaimer
26+
WARN i18n|MISSING_TRANSLATION|ja|ui_search_ai_popover_content
27+
WARN i18n|MISSING_TRANSLATION|pt|community_introduce
28+
WARN i18n|MISSING_TRANSLATION|pt|community_learn
29+
WARN i18n|MISSING_TRANSLATION|pt|ui_read_more
30+
WARN i18n|MISSING_TRANSLATION|pt|ui_search_ai_modal_title
31+
WARN i18n|MISSING_TRANSLATION|pt|ui_search_ai_modal_disclaimer
32+
WARN i18n|MISSING_TRANSLATION|pt|community_using
33+
WARN i18n|MISSING_TRANSLATION|pt|community_develop
34+
WARN i18n|MISSING_TRANSLATION|pt|community_contribute
35+
WARN i18n|MISSING_TRANSLATION|pt|community_how_to
36+
WARN i18n|MISSING_TRANSLATION|pt|community_guideline
37+
WARN i18n|MISSING_TRANSLATION|pt|ui_search_ai_popover_content
38+
WARN i18n|MISSING_TRANSLATION|pt|ui_search
39+
WARN i18n|MISSING_TRANSLATION|pt|footer_all_rights_reserved
40+
WARN i18n|MISSING_TRANSLATION|pt|post_view_this
41+
WARN i18n|MISSING_TRANSLATION|pt|post_edit_this
42+
WARN i18n|MISSING_TRANSLATION|pt|post_create_child_page
43+
WARN i18n|MISSING_TRANSLATION|pt|post_create_issue
44+
WARN i18n|MISSING_TRANSLATION|pt|post_byline_by
45+
WARN i18n|MISSING_TRANSLATION|pt|post_last_mod
46+
WARN i18n|MISSING_TRANSLATION|pt|post_posts_in
47+
WARN i18n|MISSING_TRANSLATION|pt|ui_in
48+
WARN i18n|MISSING_TRANSLATION|pt|feedback_title
49+
WARN i18n|MISSING_TRANSLATION|pt|feedback_question
50+
WARN i18n|MISSING_TRANSLATION|pt|feedback_positive
51+
WARN i18n|MISSING_TRANSLATION|pt|feedback_negative
52+
WARN i18n|MISSING_TRANSLATION|pt|ui_pager_prev
53+
WARN i18n|MISSING_TRANSLATION|pt|ui_pager_next
54+
WARN i18n|MISSING_TRANSLATION|uk|ui_search_ai_modal_title
55+
WARN i18n|MISSING_TRANSLATION|uk|ui_search_ai_modal_disclaimer
56+
WARN i18n|MISSING_TRANSLATION|uk|ui_search_ai_popover_content
57+
WARN i18n|MISSING_TRANSLATION|zh|community_introduce
58+
WARN i18n|MISSING_TRANSLATION|zh|community_learn
59+
WARN i18n|MISSING_TRANSLATION|zh|community_using
60+
WARN i18n|MISSING_TRANSLATION|zh|community_develop
61+
WARN i18n|MISSING_TRANSLATION|zh|community_contribute
62+
WARN i18n|MISSING_TRANSLATION|zh|community_how_to
63+
WARN i18n|MISSING_TRANSLATION|zh|community_guideline
64+
WARN i18n|MISSING_TRANSLATION|zh|ui_search_ai_modal_title
65+
WARN i18n|MISSING_TRANSLATION|zh|ui_search_ai_modal_disclaimer
66+
WARN i18n|MISSING_TRANSLATION|zh|ui_search_ai_popover_content
67+
WARN i18n|MISSING_TRANSLATION|zh|ui_search
68+
WARN i18n|MISSING_TRANSLATION|zh|footer_all_rights_reserved
69+
WARN i18n|MISSING_TRANSLATION|zh|post_view_this
70+
WARN i18n|MISSING_TRANSLATION|zh|post_edit_this
71+
WARN i18n|MISSING_TRANSLATION|zh|post_create_child_page
72+
WARN i18n|MISSING_TRANSLATION|zh|post_create_issue
73+
WARN i18n|MISSING_TRANSLATION|zh|post_posts_in
74+
WARN i18n|MISSING_TRANSLATION|zh|ui_in
75+
WARN i18n|MISSING_TRANSLATION|zh|post_last_mod
76+
WARN i18n|MISSING_TRANSLATION|zh|ui_read_more
77+
WARN i18n|MISSING_TRANSLATION|zh|post_byline_by
78+
WARN i18n|MISSING_TRANSLATION|zh|feedback_title
79+
WARN i18n|MISSING_TRANSLATION|zh|feedback_question
80+
WARN i18n|MISSING_TRANSLATION|zh|feedback_positive
81+
WARN i18n|MISSING_TRANSLATION|zh|feedback_negative
82+
WARN i18n|MISSING_TRANSLATION|zh|ui_pager_prev
83+
WARN i18n|MISSING_TRANSLATION|zh|ui_pager_next
84+
485
# Ignore warnings that first appeared in:
586
#
687
# - https://github.com/open-telemetry/opentelemetry.io/pull/8469
788
#
89+
# For more context and tracking see:
90+
#
91+
# - https://github.com/open-telemetry/opentelemetry.io/issues/8481
92+
#
893
# Drop once Hugo is fixed, via https://github.com/gohugoio/hugo/issues/7982
994
# or @chalin's PR (TBC).
1095

96+
# pt
97+
1198
WARN Failed to get translated string for language "pt" and ID "community_introduce": %!s(<nil>)
1299
WARN Failed to get translated string for language "pt" and ID "community_learn": %!s(<nil>)
13100
WARN Failed to get translated string for language "pt" and ID "community_using": %!s(<nil>)
@@ -32,3 +119,30 @@ WARN Failed to get translated string for language "pt" and ID "feedback_positiv
32119
WARN Failed to get translated string for language "pt" and ID "feedback_negative": %!s(<nil>)
33120
WARN Failed to get translated string for language "pt" and ID "ui_pager_prev": %!s(<nil>)
34121
WARN Failed to get translated string for language "pt" and ID "ui_pager_next": %!s(<nil>)
122+
123+
# zh
124+
125+
WARN Failed to get translated string for language "zh" and ID "community_introduce": %!s(<nil>)
126+
WARN Failed to get translated string for language "zh" and ID "community_learn": %!s(<nil>)
127+
WARN Failed to get translated string for language "zh" and ID "community_using": %!s(<nil>)
128+
WARN Failed to get translated string for language "zh" and ID "community_develop": %!s(<nil>)
129+
WARN Failed to get translated string for language "zh" and ID "community_contribute": %!s(<nil>)
130+
WARN Failed to get translated string for language "zh" and ID "community_how_to": %!s(<nil>)
131+
WARN Failed to get translated string for language "zh" and ID "community_guideline": %!s(<nil>)
132+
WARN Failed to get translated string for language "zh" and ID "ui_search": %!s(<nil>)
133+
WARN Failed to get translated string for language "zh" and ID "footer_all_rights_reserved": %!s(<nil>)
134+
WARN Failed to get translated string for language "zh" and ID "post_view_this": %!s(<nil>)
135+
WARN Failed to get translated string for language "zh" and ID "post_edit_this": %!s(<nil>)
136+
WARN Failed to get translated string for language "zh" and ID "post_create_child_page": %!s(<nil>)
137+
WARN Failed to get translated string for language "zh" and ID "post_create_issue": %!s(<nil>)
138+
WARN Failed to get translated string for language "zh" and ID "post_posts_in": %!s(<nil>)
139+
WARN Failed to get translated string for language "zh" and ID "ui_in": %!s(<nil>)
140+
WARN Failed to get translated string for language "zh" and ID "ui_read_more": %!s(<nil>)
141+
WARN Failed to get translated string for language "zh" and ID "post_byline_by": %!s(<nil>)
142+
WARN Failed to get translated string for language "zh" and ID "post_last_mod": %!s(<nil>)
143+
WARN Failed to get translated string for language "zh" and ID "feedback_title": %!s(<nil>)
144+
WARN Failed to get translated string for language "zh" and ID "feedback_question": %!s(<nil>)
145+
WARN Failed to get translated string for language "zh" and ID "feedback_positive": %!s(<nil>)
146+
WARN Failed to get translated string for language "zh" and ID "feedback_negative": %!s(<nil>)
147+
WARN Failed to get translated string for language "zh" and ID "ui_pager_prev": %!s(<nil>)
148+
WARN Failed to get translated string for language "zh" and ID "ui_pager_next": %!s(<nil>)

config/_default/hugo.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ ignoreLogs: [spec-resource-not-found]
99

1010
# Language settings
1111
defaultContentLanguage: en
12-
#
13-
# TODO: Disabling the following for the duration of the Ask AI trial. If we
14-
# decide to keep Ask AI, then locales should provide Ask-AI i18n key entries
15-
# and the following should be re-enabled / uncommented.
16-
#
17-
# enableMissingTranslationPlaceholders: true
1812

1913
languages:
2014
en:

i18n/zh.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# TODO: if/once Hugo is fixed, rename this file to zh-cn.toml
2+
# and add alert IDs for the blockquote alert types.

0 commit comments

Comments
 (0)