Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(674)

Unified Diff: chrome/app/generated_resources.grd

Side-by-side diff isn't available for this file because of its large size.
Issue 23591040: Use ICU for string pluralization in the extension permission dialog. (Closed) Base URL: http://git.chromium.org/chromium/src.git@gtk-extension-install-dialog
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
Index: chrome/app/generated_resources.grd
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd
index 7699b1afeda7d73c1341168b51a0450b943a7797..6f003c9ced402159c18de6d8be4e5e410f18a79d 100644
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -4052,10 +4052,76 @@ Make sure you do not expose any sensitive information.
<message name="IDS_EXTENSION_PROMPT_OAUTH_PERMISSIONS_HEADER" desc="A line of explanatory text that precedes all GAIA account permissions that an extension might request. This is shown when an app requests permissions which are optional.">
On your <ph name="ACCOUNT_EMAIL">$1<ex>user@example.com</ex></ph> account, it could:
</message>
- <message name="IDS_EXTENSION_PROMPT_RETAINED_FILES" desc="A line of explanatory text that precedes the list of files the app has permanent access to, showing how the number of files. This is shown when an app has persistent access to files.">
- It has permanent access to <ph name="NUMBER_OF_FILES">$1<ex>5</ex></ph> files.
+ <message name="IDS_EXTENSION_PROMPT_RETAINED_FILES_DEFAULT"
+ desc="A line of explanatory text that precedes the list of files the app has permanent access to, showing how the number of files. This is shown when an app has persistent access to files. This is necessary for every language. This is the default for all the numbers NOT covered by special cases (singular, dual/two, few, many) some languages need. For CJK, Vietnamese, Turkish and Kannada, this is the only string necessary. For languages with singular-plural distinction, this is the generic plural. For Lithuanian, NUMBER_DEFAULT is 11 .. 19.">
+ It has permanent access to <ph name="NUMBER_OF_FILES">#<ex>5</ex></ph> files.
</message>
+ <if expr="lang not in ['zh-CN', 'zh-TW', 'ko', 'ja', 'vi', 'tr', 'kn']">
+ <message name="IDS_EXTENSION_PROMPT_RETAINED_FILE_SINGULAR"
+ desc="A line of explanatory text that precedes the list of files the app has permanent access to, showing how the number of files. This is shown when an app has persistent access to files. NUMBER_ONE is one or one-like numbers : 1 (many European and most Indian languages), 1 and 0 (French, Brazilian Portuguese and Hindi), 1,21,31, .. (Russian, Ukrainian, Croatian, Serbian, Latvian, Lithuanian), or 1, 101, 201, .. (Slovenian). Do NOT translate this for CJK, Vietnamese, Turkish and Kannada">
tony 2013/09/20 16:56:44 NUMBER_ONE should be replaced with NUMBER_OF_FILES
Sam McNally 2013/09/22 22:53:03 Done.
+ It has permanent access to <ph name="NUMBER_OF_FILES">#<ex>1</ex></ph> file.
+ </message>
+ </if>
+ <if expr="lang in ['zh-CN', 'zh-TW', 'ko', 'ja', 'vi', 'tr', 'kn']">
+ <message translateable="false" name="IDS_EXTENSION_PROMPT_RETAINED_FILE_SINGULAR"
+ desc="">
+ NA
+ </message>
+ </if>
+
+ <if expr="lang in ['ar', 'ro', 'lv']">
+ <message name="IDS_EXTENSION_PROMPT_RETAINED_FILES_ZERO"
+ desc="A line of explanatory text that precedes the list of files the app has permanent access to, showing how the number of files. This is shown when an app has persistent access to files. NUMBER_ZERO is 0 (Arabic, Latvian) or 0, 2..19, 101..119, ... (Romanian). For other languages, do NOT translate.">
+ It has permanent access to <ph name="NUMBER_OF_FILES">#<ex>0</ex></ph> files.
+ </message>
+ </if>
+ <if expr="lang not in ['ar', 'ro', 'lv']">
+ <message translateable="false" name="IDS_EXTENSION_PROMPT_RETAINED_FILES_ZERO"
+ desc="">
+ NA
+ </message>
+ </if>
+
+ <if expr="lang in ['ga', 'sl', 'ar']">
+ <message name="IDS_EXTENSION_PROMPT_RETAINED_FILES_TWO"
+ desc="A line of explanatory text that precedes the list of files the app has permanent access to, showing how the number of files. This is shown when an app has persistent access to files. NUMBER_TWO is two or two-like/dual numbers : 2 (Arabic and Irish) or 2, 102, 202 ... (Slovenian). For other languages, do NOT translated.">
+ It has permanent access to <ph name="NUMBER_OF_FILES">#<ex>2</ex></ph> files.
+ </message>
+ </if>
+ <if expr="lang not in ['ga', 'sl', 'ar']">
+ <message translateable="false" name="IDS_EXTENSION_PROMPT_RETAINED_FILES_TWO"
+ desc="">
+ NA
+ </message>
+ </if>
+
+ <if expr="lang in ['ru', 'lt', 'hr', 'uk', 'cs', 'sk', 'pl', 'sl', 'ar']">
+ <message name="IDS_EXTENSION_PROMPT_RETAINED_FILES_FEW"
+ desc="A line of explanatory text that precedes the list of files the app has permanent access to, showing how the number of files. This is shown when an app has persistent access to files. NUMBER_FEW is few or few-like numbers in Arabic, Russian, Polish, Croatian, Serbian, Ukrainian, Czech, Slovak, Slovenian, Latvian. For other languages, do NOT translate.">
+ It has permanent access to <ph name="NUMBER_OF_FILES">#<ex>3</ex></ph> files.
+ </message>
+ </if>
+ <if expr="lang not in ['ru', 'lt', 'hr', 'uk', 'cs', 'sk', 'pl', 'sl', 'ar']">
+ <message translateable="false" name="IDS_EXTENSION_PROMPT_RETAINED_FILES_FEW"
+ desc="">
+ NA
+ </message>
+ </if>
+
+ <if expr="lang == 'ar'">
+ <message name="IDS_EXTENSION_PROMPT_RETAINED_FILES_MANY"
+ desc="A line of explanatory text that precedes the list of files the app has permanent access to, showing how the number of files. This is shown when an app has persistent access to files. NUMBER_MANY is 11 through 99 in Arabic. For all other languages, do NOT translate.">
+ It has permanent access to <ph name="NUMBER_OF_FILES">#<ex>23</ex></ph> files.
+ </message>
+ </if>
+ <if expr="lang != 'ar'">
+ <message translateable="false" name="IDS_EXTENSION_PROMPT_RETAINED_FILES_MANY"
+ desc="">
+ NA
+ </message>
+ </if>
+
<if expr="is_android">
<message name="IDS_EXTENSION_PROMPT_WARNING_FULL_ACCESS" desc="Mobile: Permission string for full access to the device and all websites.">
Access all data on your device and the websites you visit
@@ -4078,9 +4144,75 @@ Make sure you do not expose any sensitive information.
<message name="IDS_EXTENSION_PROMPT_WARNING_3_HOSTS" desc="Permission string for access to data on three websites.">
Access your data on <ph name="WEBSITE_1">$1<ex>www.google.com</ex></ph>, <ph name="WEBSITE_2">$2<ex>www.reddit.com</ex></ph>, and <ph name="WEBSITE_3">$3<ex>news.ycombinator.com</ex></ph>
</message>
- <message name="IDS_EXTENSION_PROMPT_WARNING_HOSTS" desc="Permission string for access to data on four or more websites.">
- Access your data on <ph name="NUMBER_OF_OTHER_WEBSITES">$1<ex>5</ex></ph> website(s)
+ <message name="IDS_EXTENSION_PROMPT_WARNING_HOSTS_DEFAULT"
+ desc="Permission string for access to data on four or more websites. This is necessary for every language. This is the default for all the numbers NOT covered by special cases (singular, dual/two, few, many) some languages need. For CJK, Vietnamese, Turkish and Kannada, this is the only string necessary. For languages with singular-plural distinction, this is the generic plural. For Lithuanian, NUMBER_DEFAULT is 11 .. 19.">
+ Access your data on <ph name="NUMBER_OF_WEBSITES">#<ex>5</ex></ph> websites
</message>
+
+ <if expr="lang not in ['zh-CN', 'zh-TW', 'ko', 'ja', 'vi', 'tr', 'kn']">
+ <message name="IDS_EXTENSION_PROMPT_WARNING_HOST_SINGULAR"
+ desc="Permission string for access to data on four or more websites. NUMBER_ONE is one or one-like numbers : 1 (many European and most Indian languages), 1 and 0 (French, Brazilian Portuguese and Hindi), 1,21,31, .. (Russian, Ukrainian, Croatian, Serbian, Latvian, Lithuanian), or 1, 101, 201, .. (Slovenian). Do NOT translate this for CJK, Vietnamese, Turkish and Kannada">
+ Access your data on <ph name="NUMBER_OF_WEBSITES">#<ex>1</ex></ph> websites
+ </message>
+ </if>
+ <if expr="lang in ['zh-CN', 'zh-TW', 'ko', 'ja', 'vi', 'tr', 'kn']">
+ <message translateable="false" name="IDS_EXTENSION_PROMPT_WARNING_HOST_SINGULAR"
+ desc="">
+ NA
+ </message>
+ </if>
+
+ <if expr="lang in ['ar', 'ro', 'lv']">
+ <message name="IDS_EXTENSION_PROMPT_WARNING_HOSTS_ZERO"
+ desc="Permission string for access to data on four or more websites. NUMBER_ZERO is 0 (Arabic, Latvian) or 0, 2..19, 101..119, ... (Romanian). For other languages, do NOT translate.">
+ Access your data on <ph name="NUMBER_OF_WEBSITES">#<ex>0</ex></ph> websites
+ </message>
+ </if>
+ <if expr="lang not in ['ar', 'ro', 'lv']">
+ <message translateable="false" name="IDS_EXTENSION_PROMPT_WARNING_HOSTS_ZERO"
+ desc="">
+ NA
+ </message>
+ </if>
+
+ <if expr="lang in ['ga', 'sl', 'ar']">
+ <message name="IDS_EXTENSION_PROMPT_WARNING_HOSTS_TWO"
+ desc="Permission string for access to data on four or more websites. NUMBER_TWO is two or two-like/dual numbers : 2 (Arabic and Irish) or 2, 102, 202 ... (Slovenian). For other languages, do NOT translated.">
+ Access your data on <ph name="NUMBER_OF_WEBSITES">#<ex>2</ex></ph> websites
+ </message>
+ </if>
+ <if expr="lang not in ['ga', 'sl', 'ar']">
+ <message translateable="false" name="IDS_EXTENSION_PROMPT_WARNING_HOSTS_TWO"
+ desc="">
+ NA
+ </message>
+ </if>
+
+ <if expr="lang in ['ru', 'lt', 'hr', 'uk', 'cs', 'sk', 'pl', 'sl', 'ar']">
+ <message name="IDS_EXTENSION_PROMPT_WARNING_HOSTS_FEW"
+ desc="Permission string for access to data on four or more websites. NUMBER_FEW is few or few-like numbers in Arabic, Russian, Polish, Croatian, Serbian, Ukrainian, Czech, Slovak, Slovenian, Latvian. For other languages, do NOT translate.">
+ Access your data on <ph name="NUMBER_OF_WEBSITES">#<ex>3</ex></ph> websites
+ </message>
+ </if>
+ <if expr="lang not in ['ru', 'lt', 'hr', 'uk', 'cs', 'sk', 'pl', 'sl', 'ar']">
+ <message translateable="false" name="IDS_EXTENSION_PROMPT_WARNING_HOSTS_FEW"
+ desc="">
+ NA
+ </message>
+ </if>
+
+ <if expr="lang == 'ar'">
+ <message name="IDS_EXTENSION_PROMPT_WARNING_HOSTS_MANY"
+ desc="Permission string for access to data on four or more websites. NUMBER_MANY is 11 through 99 in Arabic. For all other languages, do NOT translate.">
+ Access your data on <ph name="NUMBER_OF_WEBSITES">#<ex>23</ex></ph> websites
+ </message>
+ </if>
+ <if expr="lang != 'ar'">
+ <message translateable="false" name="IDS_EXTENSION_PROMPT_WARNING_HOSTS_MANY"
+ desc="">
+ NA
+ </message>
+ </if>
<message name="IDS_EXTENSION_PROMPT_WARNING_HOST_LIST" desc="Permission string (heading) for a list of websites.">
Access your data on the following websites:
</message>
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_install_prompt.cc » ('j') | ui/base/l10n/l10n_util_internal.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698