Skip to content

Commit

Permalink
android Add af .xtb files.
Browse files Browse the repository at this point in the history
This CL adds .xtb files for the "af" locale to all .grd files marked
for translation in translation_expectations.pyl.  "af" is also added
to the list of translated languages in translation_expectations.pyl

The .xtb file is a placeholder file with the following content:

<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>


Once these are imported into the Translation Console a full .xtb file
with correct translations should be created.

It should not effect the build at all.  If this works then .xtb files
for 26 more locales will be added.

Bug: 812837
Change-Id: I9bdaf6c55e68bd2b34681c1c00d120bb820feb0b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1898148
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Ben Mason <benmason@chromium.org>
Reviewed-by: Krishna Govind <govind@chromium.org>
Reviewed-by: Megan Jablonski <megjablon@chromium.org>
Commit-Queue: Trevor  Perrier <perrier@chromium.org>
Cr-Commit-Position: refs/heads/master@{#716688}
  • Loading branch information
Trevor Perrier authored and Commit Bot committed Nov 19, 2019
1 parent 43a60f8 commit 934e774
Show file tree
Hide file tree
Showing 99 changed files with 256 additions and 5 deletions.
1 change: 1 addition & 0 deletions android_webview/java/strings/android_webview_strings.grd
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<output filename="values-zh-rTW/android_webview_strings.xml" lang="zh-TW" type="android" />
</outputs>
<translations>
<file lang="af" path="translations/android_webview_strings_af.xtb" />
<file lang="am" path="translations/android_webview_strings_am.xtb" />
<file lang="ar" path="translations/android_webview_strings_ar.xtb" />
<file lang="bg" path="translations/android_webview_strings_bg.xtb" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
1 change: 1 addition & 0 deletions android_webview/ui/aw_strings.grd
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<output filename="aw_strings_zh-TW.pak" type="data_package" lang="zh-TW" />
</outputs>
<translations>
<file path="translations/aw_strings_af.xtb" lang="af" />
<file path="translations/aw_strings_am.xtb" lang="am" />
<file path="translations/aw_strings_ar.xtb" lang="ar" />
<file path="translations/aw_strings_bg.xtb" lang="bg" />
Expand Down
4 changes: 4 additions & 0 deletions android_webview/ui/translations/aw_strings_af.xtb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
1 change: 1 addition & 0 deletions ash/ash_strings.grd
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ This file contains the strings for ash.
<output filename="ash_strings_zh-TW.pak" type="data_package" lang="zh-TW" />
</outputs>
<translations>
<file path="strings/ash_strings_af.xtb" lang="af" />
<file path="strings/ash_strings_am.xtb" lang="am" />
<file path="strings/ash_strings_ar.xtb" lang="ar" />
<file path="strings/ash_strings_bg.xtb" lang="bg" />
Expand Down
1 change: 1 addition & 0 deletions ash/components/ash_components_strings.grd
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<output filename="ash_components_strings_zh-TW.pak" type="data_package" lang="zh-TW" />
</outputs>
<translations>
<file path="strings/ash_components_strings_af.xtb" lang="af" />
<file path="strings/ash_components_strings_am.xtb" lang="am" />
<file path="strings/ash_components_strings_ar.xtb" lang="ar" />
<file path="strings/ash_components_strings_bg.xtb" lang="bg" />
Expand Down
4 changes: 4 additions & 0 deletions ash/components/strings/ash_components_strings_af.xtb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
4 changes: 4 additions & 0 deletions ash/strings/ash_strings_af.xtb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
12 changes: 10 additions & 2 deletions base/win/embedded_i18n/generate_embedded_i18n.gni
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,15 @@ import("//build/config/locales.gni")
# Some locales exist in |locales| but don't generally have an xtb file on disk
# and some translations don't exist in |locales| but do generally have an xtb
# file on disk.
default_embedded_i18_locales = locales - ["en-US", "he", "nb"] + ["iw", "no"]
default_embedded_i18_locales = locales - [
"en-US",
"he",
"nb",
] +
[
"iw",
"no",
] + xtb_only_locales

template("generate_embedded_i18n") {
assert(defined(invoker.grd_files_info),
Expand Down Expand Up @@ -116,7 +124,7 @@ template("generate_embedded_i18n") {

xtb_locales = grd_file_info[3]

foreach (locale, xtb_locales) {
foreach(locale, xtb_locales) {
expected_xtb_input = "${resource_path}/${grdfile_name}_${locale}.xtb"
args += [
"-x",
Expand Down
3 changes: 3 additions & 0 deletions build/config/locales.gni
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ locales = [
"zh-TW",
]

# New locales with .xtb files only. Eventually all of these will merge into the main locales.
xtb_only_locales = [ "af" ]

# Chrome on iOS uses different names for "es-419" and "pt-BR" (called
# respectively "es-MX" and "pt" on iOS).
if (!is_ios) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<output filename="values-zh-rTW/android_chrome_autofill_assistant_strings.xml" lang="zh-TW" type="android" />
</outputs>
<translations>
<file lang="af" path="translations/android_chrome_autofill_assistant_strings_af.xtb" />
<file lang="am" path="translations/android_chrome_autofill_assistant_strings_am.xtb" />
<file lang="ar" path="translations/android_chrome_autofill_assistant_strings_ar.xtb" />
<file lang="bg" path="translations/android_chrome_autofill_assistant_strings_bg.xtb" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<output filename="values-zh-rTW/android_keyboard_accessory_strings.xml" lang="zh-TW" type="android" />
</outputs>
<translations>
<file lang="af" path="translations/android_keyboard_accessory_strings_af.xtb" />
<file lang="am" path="translations/android_keyboard_accessory_strings_am.xtb" />
<file lang="ar" path="translations/android_keyboard_accessory_strings_ar.xtb" />
<file lang="bg" path="translations/android_keyboard_accessory_strings_bg.xtb" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<output filename="values-zh-rTW/android_chrome_media_router_strings.xml" lang="zh-TW" type="android" />
</outputs>
<translations>
<file lang="af" path="translations/android_chrome_media_router_strings_af.xtb" />
<file lang="am" path="translations/android_chrome_media_router_strings_am.xtb" />
<file lang="ar" path="translations/android_chrome_media_router_strings_ar.xtb" />
<file lang="bg" path="translations/android_chrome_media_router_strings_bg.xtb" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<output filename="values-zh-rTW/android_chrome_start_surface_strings.xml" lang="zh-TW" type="android" />
</outputs>
<translations>
<file lang="af" path="translations/android_chrome_start_surface_strings_af.xtb" />
<file lang="am" path="translations/android_chrome_start_surface_strings_am.xtb" />
<file lang="ar" path="translations/android_chrome_start_surface_strings_ar.xtb" />
<file lang="bg" path="translations/android_chrome_start_surface_strings_bg.xtb" />
Expand Down Expand Up @@ -120,4 +121,4 @@
</message>
</messages>
</release>
</grit>
</grit>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<output filename="values-zh-rTW/android_chrome_tab_ui_strings.xml" lang="zh-TW" type="android" />
</outputs>
<translations>
<file lang="af" path="translations/android_chrome_tab_ui_strings_af.xtb" />
<file lang="am" path="translations/android_chrome_tab_ui_strings_am.xtb" />
<file lang="ar" path="translations/android_chrome_tab_ui_strings_ar.xtb" />
<file lang="bg" path="translations/android_chrome_tab_ui_strings_bg.xtb" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<output filename="values-zh-rTW/android_chrome_vr_strings.xml" lang="zh-TW" type="android" />
</outputs>
<translations>
<file lang="af" path="translations/android_chrome_vr_strings_af.xtb" />
<file lang="am" path="translations/android_chrome_vr_strings_am.xtb" />
<file lang="ar" path="translations/android_chrome_vr_strings_ar.xtb" />
<file lang="bg" path="translations/android_chrome_vr_strings_bg.xtb" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
1 change: 1 addition & 0 deletions chrome/android/webapk/strings/android_webapk_strings.grd
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<output filename="values-zh-rTW/android_webapk_strings.xml" lang="zh-TW" type="android" />
</outputs>
<translations>
<file lang="af" path="translations/android_webapk_strings_af.xtb" />
<file lang="am" path="translations/android_webapk_strings_am.xtb" />
<file lang="ar" path="translations/android_webapk_strings_ar.xtb" />
<file lang="bg" path="translations/android_webapk_strings_bg.xtb" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
1 change: 1 addition & 0 deletions chrome/app/chromium_strings.grd
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ If you update this file, be sure also to update google_chrome_strings.grd. -->
<output filename="chromium_strings_zh-TW.pak" type="data_package" lang="zh-TW" />
</outputs>
<translations>
<file path="resources/chromium_strings_af.xtb" lang="af" />
<file path="resources/chromium_strings_am.xtb" lang="am" />
<file path="resources/chromium_strings_ar.xtb" lang="ar" />
<file path="resources/chromium_strings_bg.xtb" lang="bg" />
Expand Down
1 change: 1 addition & 0 deletions chrome/app/generated_resources.grd
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ are declared in tools/grit/grit_rule.gni.
</if>
</outputs>
<translations>
<file path="resources/generated_resources_af.xtb" lang="af" />
<file path="resources/generated_resources_am.xtb" lang="am" />
<file path="resources/generated_resources_ar.xtb" lang="ar" />
<file path="resources/generated_resources_bg.xtb" lang="bg" />
Expand Down
1 change: 1 addition & 0 deletions chrome/app/google_chrome_strings.grd
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ chromium_strings.grd. -->
<output filename="google_chrome_strings_fake-bidi.pak" type="data_package" lang="fake-bidi" />
</outputs>
<translations>
<file path="resources/google_chrome_strings_af.xtb" lang="af" />
<file path="resources/google_chrome_strings_am.xtb" lang="am" />
<file path="resources/google_chrome_strings_ar.xtb" lang="ar" />
<file path="resources/google_chrome_strings_bg.xtb" lang="bg" />
Expand Down
4 changes: 4 additions & 0 deletions chrome/app/resources/chromium_strings_af.xtb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
4 changes: 4 additions & 0 deletions chrome/app/resources/generated_resources_af.xtb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
4 changes: 4 additions & 0 deletions chrome/app/resources/google_chrome_strings_af.xtb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<output filename="_locales/zh_TW/messages.json" type="chrome_messages_json" lang="zh-TW"/>
</outputs>
<translations>
<file path="camera_strings_af.xtb" lang="af" />
<file path="camera_strings_am.xtb" lang="am" />
<file path="camera_strings_ar.xtb" lang="ar" />
<file path="camera_strings_bg.xtb" lang="bg" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<output filename="_locales/zh_TW/messages.json.gz" type="chrome_messages_json_gzip" lang="zh-TW"/>
</outputs>
<translations>
<file path="chromevox_strings_af.xtb" lang="af" />
<file path="chromevox_strings_am.xtb" lang="am" />
<file path="chromevox_strings_ar.xtb" lang="ar" />
<file path="chromevox_strings_bg.xtb" lang="bg" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<output filename="_locales/zh_TW/messages.json" type="chrome_messages_json" lang="zh-TW"/>
</outputs>
<translations>
<file path="select_to_speak_strings_af.xtb" lang="af" />
<file path="select_to_speak_strings_am.xtb" lang="am" />
<file path="select_to_speak_strings_ar.xtb" lang="ar" />
<file path="select_to_speak_strings_bg.xtb" lang="bg" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
<output filename="_locales/zh_TW/messages.json" type="chrome_messages_json" lang="zh-TW"/>
</outputs>
<translations>
<file path="switch_access_strings_am.xtb" lang="am" />
<file path="switch_access_strings_af.xtb" lang="af" />
<file path="switch_access_strings_am.xtb" lang="am" />
<file path="switch_access_strings_ar.xtb" lang="ar" />
<file path="switch_access_strings_bg.xtb" lang="bg" />
<file path="switch_access_strings_bn.xtb" lang="bn" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<output filename="values-zh-rTW/android_touch_to_fill_strings.xml" lang="zh-TW" type="android" />
</outputs>
<translations>
<file lang="af" path="translations/android_touch_to_fill_strings_af.xtb" />
<file lang="am" path="translations/android_touch_to_fill_strings_am.xtb" />
<file lang="ar" path="translations/android_touch_to_fill_strings_ar.xtb" />
<file lang="bg" path="translations/android_touch_to_fill_strings_bg.xtb" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ CHAR-LIMIT guidelines:
<output filename="values-zh-rTW/android_chrome_strings.xml" lang="zh-TW" type="android" />
</outputs>
<translations>
<file lang="af" path="translations/android_chrome_strings_af.xtb" />
<file lang="am" path="translations/android_chrome_strings_am.xtb" />
<file lang="ar" path="translations/android_chrome_strings_ar.xtb" />
<file lang="bg" path="translations/android_chrome_strings_bg.xtb" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
1 change: 1 addition & 0 deletions chrome/credential_provider/gaiacp/gaia_resources.grd
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<grit current_release="1" latest_public_release="0">
<outputs />
<translations>
<file path="strings/gaia_resources_af.xtb" lang="af" />
<file path="strings/gaia_resources_am.xtb" lang="am" />
<file path="strings/gaia_resources_ar.xtb" lang="ar" />
<file path="strings/gaia_resources_bg.xtb" lang="bg" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
1 change: 1 addition & 0 deletions chromeos/chromeos_strings.grd
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<output filename="chromeos_strings_zh-TW.pak" type="data_package" lang="zh-TW" />
</outputs>
<translations>
<file path="strings/chromeos_strings_af.xtb" lang="af" />
<file path="strings/chromeos_strings_am.xtb" lang="am" />
<file path="strings/chromeos_strings_ar.xtb" lang="ar" />
<file path="strings/chromeos_strings_bg.xtb" lang="bg" />
Expand Down
4 changes: 4 additions & 0 deletions chromeos/strings/chromeos_strings_af.xtb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<output filename="values-zh-rTW/autofill_strings.xml" lang="zh-TW" type="android" />
</outputs>
<translations>
<file lang="af" path="translations/autofill_strings_af.xtb" />
<file lang="am" path="translations/autofill_strings_am.xtb" />
<file lang="ar" path="translations/autofill_strings_ar.xtb" />
<file lang="bg" path="translations/autofill_strings_bg.xtb" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
1 change: 1 addition & 0 deletions components/components_chromium_strings.grd
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<output filename="components_chromium_strings_zh-TW.pak" type="data_package" lang="zh-TW" />
</outputs>
<translations>
<file path="strings/components_chromium_strings_af.xtb" lang="af" />
<file path="strings/components_chromium_strings_am.xtb" lang="am" />
<file path="strings/components_chromium_strings_ar.xtb" lang="ar" />
<file path="strings/components_chromium_strings_bg.xtb" lang="bg" />
Expand Down
1 change: 1 addition & 0 deletions components/components_google_chrome_strings.grd
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<output filename="components_google_chrome_strings_zh-TW.pak" type="data_package" lang="zh-TW" />
</outputs>
<translations>
<file path="strings/components_google_chrome_strings_af.xtb" lang="af" />
<file path="strings/components_google_chrome_strings_am.xtb" lang="am" />
<file path="strings/components_google_chrome_strings_ar.xtb" lang="ar" />
<file path="strings/components_google_chrome_strings_bg.xtb" lang="bg" />
Expand Down
1 change: 1 addition & 0 deletions components/components_strings.grd
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@

</outputs>
<translations>
<file path="strings/components_strings_af.xtb" lang="af" />
<file path="strings/components_strings_am.xtb" lang="am" />
<file path="strings/components_strings_ar.xtb" lang="ar" />
<file path="strings/components_strings_bg.xtb" lang="bg" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<output filename="values-zh-rTW/web_contents_delegate_android_strings.xml" lang="zh-TW" type="android" />
</outputs>
<translations>
<file lang="af" path="translations/web_contents_delegate_android_strings_af.xtb" />
<file lang="am" path="translations/web_contents_delegate_android_strings_am.xtb" />
<file lang="ar" path="translations/web_contents_delegate_android_strings_ar.xtb" />
<file lang="bg" path="translations/web_contents_delegate_android_strings_bg.xtb" />
Expand Down
4 changes: 4 additions & 0 deletions components/strings/components_chromium_strings_af.xtb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
4 changes: 4 additions & 0 deletions components/strings/components_google_chrome_strings_af.xtb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
4 changes: 4 additions & 0 deletions components/strings/components_strings_af.xtb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="af">
</translationbundle>
Loading

0 comments on commit 934e774

Please sign in to comment.