Commit 3cf30103 authored by sergeyu@chromium.org's avatar sergeyu@chromium.org

make utf-8 default encoding for remoting_localize.py

Review URL: https://codereview.chromium.org/140793007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245489 0039d316-1c4b-4281-b951-d872f2087c98
parent 253b1c48
...@@ -805,7 +805,6 @@ ...@@ -805,7 +805,6 @@
'--template', 'host/plugin/host_plugin-InfoPlist.strings.jinja2', '--template', 'host/plugin/host_plugin-InfoPlist.strings.jinja2',
'--locale_output', '--locale_output',
'<(SHARED_INTERMEDIATE_DIR)/remoting/host_plugin_resources/@{json_suffix}.lproj/InfoPlist.strings', '<(SHARED_INTERMEDIATE_DIR)/remoting/host_plugin_resources/@{json_suffix}.lproj/InfoPlist.strings',
'--encoding', 'utf-8',
'<@(remoting_locales)', '<@(remoting_locales)',
], ],
}, },
...@@ -827,7 +826,6 @@ ...@@ -827,7 +826,6 @@
'--template', 'host/remoting_me2me_host-InfoPlist.strings.jinja2', '--template', 'host/remoting_me2me_host-InfoPlist.strings.jinja2',
'--locale_output', '--locale_output',
'<(SHARED_INTERMEDIATE_DIR)/remoting/host_resources/@{json_suffix}.lproj/InfoPlist.strings', '<(SHARED_INTERMEDIATE_DIR)/remoting/host_resources/@{json_suffix}.lproj/InfoPlist.strings',
'--encoding', 'utf-8',
'<@(remoting_locales)', '<@(remoting_locales)',
], ],
}, },
...@@ -849,7 +847,6 @@ ...@@ -849,7 +847,6 @@
'--template', 'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2', '--template', 'host/mac/me2me_preference_pane-InfoPlist.strings.jinja2',
'--locale_output', '--locale_output',
'<(SHARED_INTERMEDIATE_DIR)/remoting/preference_pane_resources/@{json_suffix}.lproj/InfoPlist.strings', '<(SHARED_INTERMEDIATE_DIR)/remoting/preference_pane_resources/@{json_suffix}.lproj/InfoPlist.strings',
'--encoding', 'utf-8',
'<@(remoting_locales)', '<@(remoting_locales)',
], ],
}, },
...@@ -871,7 +868,6 @@ ...@@ -871,7 +868,6 @@
'--template', 'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strings.jinja2', '--template', 'host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strings.jinja2',
'--locale_output', '--locale_output',
'<(SHARED_INTERMEDIATE_DIR)/remoting/uninstaller_resources/@{json_suffix}.lproj/InfoPlist.strings', '<(SHARED_INTERMEDIATE_DIR)/remoting/uninstaller_resources/@{json_suffix}.lproj/InfoPlist.strings',
'--encoding', 'utf-8',
'<@(remoting_locales)', '<@(remoting_locales)',
], ],
}, },
...@@ -1642,6 +1638,7 @@ ...@@ -1642,6 +1638,7 @@
'--locale_dir', '<(webapp_locale_dir)', '--locale_dir', '<(webapp_locale_dir)',
'--template', '<(RULE_INPUT_PATH)', '--template', '<(RULE_INPUT_PATH)',
'--output', '<@(_outputs)', '--output', '<@(_outputs)',
'--encoding', 'utf-16',
'<@(remoting_locales)', '<@(remoting_locales)',
], ],
'message': 'Localizing the dialogs and strings' 'message': 'Localizing the dialogs and strings'
...@@ -2265,7 +2262,6 @@ ...@@ -2265,7 +2262,6 @@
'--template', '<(input)', '--template', '<(input)',
'--locale_output', '--locale_output',
'<(output)', '<(output)',
'--encoding', 'utf-8',
'en', 'en',
], ],
}, },
......
...@@ -590,7 +590,7 @@ def ReadMessagesFromFile(file_name): ...@@ -590,7 +590,7 @@ def ReadMessagesFromFile(file_name):
return values return values
def WriteIfChanged(file_name, contents, encoding='utf-16'): def WriteIfChanged(file_name, contents, encoding):
""" """
Writes the specified contents to the specified file_name Writes the specified contents to the specified file_name
iff the contents are different than the current contents. iff the contents are different than the current contents.
...@@ -743,8 +743,8 @@ def DoMain(argv): ...@@ -743,8 +743,8 @@ def DoMain(argv):
'-d', '--define', dest='define', action='append', type='string', '-d', '--define', dest='define', action='append', type='string',
help='define a variable (NAME=VALUE).') help='define a variable (NAME=VALUE).')
parser.add_option( parser.add_option(
'--encoding', dest='encoding', type='string', default='utf-16', '--encoding', dest='encoding', type='string', default='utf-8',
help="set the encoding of <output>. 'utf-16' is the default.") help="set the encoding of <output>. 'utf-8' is the default.")
parser.add_option( parser.add_option(
'--jinja2', dest='jinja2', type='string', '--jinja2', dest='jinja2', type='string',
help="specifies path to the jinja2 library.") help="specifies path to the jinja2 library.")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment