summaryrefslogtreecommitdiffstats
path: root/remoting/host
diff options
context:
space:
mode:
authorjamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-24 17:13:20 +0000
committerjamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-24 17:13:20 +0000
commit99d88771a76f5355e4cc271f501880ddd8cc64b4 (patch)
tree010041ea0b52d0b6d4234aba6ec2c508ed0e290a /remoting/host
parentac239a8025e5d779f9372a0fe559e8c1ce1e42f7 (diff)
downloadchromium_src-99d88771a76f5355e4cc271f501880ddd8cc64b4.zip
chromium_src-99d88771a76f5355e4cc271f501880ddd8cc64b4.tar.gz
chromium_src-99d88771a76f5355e4cc271f501880ddd8cc64b4.tar.bz2
Add build step to verify the l10n strings are not out of sync.
BUG=None TEST=Manual Review URL: http://codereview.chromium.org/7631055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98064 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host')
-rw-r--r--remoting/host/plugin/host_script_object.cc22
1 files changed, 13 insertions, 9 deletions
diff --git a/remoting/host/plugin/host_script_object.cc b/remoting/host/plugin/host_script_object.cc
index b02135d..d1f65af 100644
--- a/remoting/host/plugin/host_script_object.cc
+++ b/remoting/host/plugin/host_script_object.cc
@@ -651,22 +651,26 @@ void HostNPScriptObject::LocalizeStrings() {
LocalizeString("@@bidi_dir", &direction);
ui_strings.direction = UTF16ToUTF8(direction) == "rtl" ?
remoting::UiStrings::RTL : remoting::UiStrings::LTR;
- LocalizeString("PRODUCT_NAME", &ui_strings.product_name);
- LocalizeString("DISCONNECT_BUTTON", &ui_strings.disconnect_button_text);
+ LocalizeString(/*i18n-content*/"PRODUCT_NAME", &ui_strings.product_name);
+ LocalizeString(/*i18n-content*/"DISCONNECT_BUTTON",
+ &ui_strings.disconnect_button_text);
LocalizeString(
#if defined(OS_WIN)
- "DISCONNECT_BUTTON_PLUS_SHORTCUT_WINDOWS",
+ /*i18n-content*/"DISCONNECT_BUTTON_PLUS_SHORTCUT_WINDOWS",
#elif defined(OS_MAC)
- "DISCONNECT_BUTTON_PLUS_SHORTCUT_MAC_OS_X",
+ /*i18n-content*/"DISCONNECT_BUTTON_PLUS_SHORTCUT_MAC_OS_X",
#else
- "DISCONNECT_BUTTON_PLUS_SHORTCUT_LINUX",
+ /*i18n-content*/"DISCONNECT_BUTTON_PLUS_SHORTCUT_LINUX",
#endif
&ui_strings.disconnect_button_text_plus_shortcut);
- LocalizeString("CONTINUE_PROMPT", &ui_strings.continue_prompt);
- LocalizeString("CONTINUE_BUTTON", &ui_strings.continue_button_text);
- LocalizeString("STOP_SHARING_BUTTON",
+ LocalizeString(/*i18n-content*/"CONTINUE_PROMPT",
+ &ui_strings.continue_prompt);
+ LocalizeString(/*i18n-content*/"CONTINUE_BUTTON",
+ &ui_strings.continue_button_text);
+ LocalizeString(/*i18n-content*/"STOP_SHARING_BUTTON",
&ui_strings.stop_sharing_button_text);
- LocalizeString("MESSAGE_SHARED", &ui_strings.disconnect_message);
+ LocalizeString(/*i18n-content*/"MESSAGE_SHARED",
+ &ui_strings.disconnect_message);
host_->SetUiStrings(ui_strings);
}