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

Issue 19803010: Localized Chromoting Host on Mac and Linux. (Closed)

Created:
7 years, 5 months ago by alexeypa (please no reviews)
Modified:
7 years, 4 months ago
Reviewers:
Sergey Ulanov, garykac
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, weitaosu+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Localized Chromoting Host on Mac and Linux. This CL implements generation of localizable strings from remoting_strings.grd file. Depending on the platform the localized resources are placed to: - Mac: localized .string and .pak resources are added to each application bundle under 'Resources/<locale>.lproj' - Linux: localized .pak files are placed under 'remoting_locales' directory next to the binary locading them. - Windows: .rc resources are generated from .jinja2 templates and embedded into a relevant binary. Chrome l10n and i18n APIs are used to retrieve the current locale and RTL flag (Mac & Linux). The it2me plugin sets the locale to match the locale of the browser. Collateral changes: - UiString is not used any more. - Increased width of disconnect window message on Mac. - The host plugin version is correctly reported on Mac. - Dialogs use RTL templates in case of RTL languages. No more updating the templates dynamically (Windows). - remoting_unittests.ResourcesTest row runs on Mac, LInux and Windows. - '@' is used for variable substitutions by remoting_localize.py. - HOST_PLUGIN_MIME_TYPE is defined in one place now. - Deleted unused commong_resources.grd. Mac installer and preference panel are not localized yet. BUG=155204 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213997

Patch Set 1 #

Total comments: 14

Patch Set 2 : LoadResources() does not require ifdefs #

Patch Set 3 : Adding a missing dependency #

Total comments: 8

Patch Set 4 : feedback. #

Patch Set 5 : rebased #

Patch Set 6 : Make sure the string match across platforms. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+605 lines, -672 lines) Patch
M remoting/base/resources.h View 1 1 chunk +6 lines, -2 lines 0 comments Download
D remoting/base/resources.cc View 1 chunk +0 lines, -35 lines 0 comments Download
A remoting/base/resources_linux.cc View 1 1 chunk +44 lines, -0 lines 0 comments Download
A remoting/base/resources_mac.mm View 1 1 chunk +43 lines, -0 lines 0 comments Download
M remoting/base/resources_unittest.cc View 1 1 chunk +19 lines, -25 lines 0 comments Download
A remoting/base/resources_win.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download
M remoting/branding_Chrome View 2 chunks +0 lines, -5 lines 0 comments Download
M remoting/branding_Chromium View 2 chunks +0 lines, -5 lines 0 comments Download
M remoting/host/basic_desktop_environment.h View 5 chunks +1 line, -10 lines 0 comments Download
M remoting/host/basic_desktop_environment.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M remoting/host/continue_window.h View 3 chunks +1 line, -7 lines 0 comments Download
M remoting/host/continue_window.cc View 1 chunk +1 line, -2 lines 0 comments Download
M remoting/host/continue_window_gtk.cc View 5 chunks +11 lines, -11 lines 0 comments Download
M remoting/host/continue_window_mac.mm View 7 chunks +14 lines, -22 lines 0 comments Download
M remoting/host/continue_window_win.cc View 3 chunks +5 lines, -7 lines 0 comments Download
M remoting/host/desktop_process_main.cc View 3 chunks +1 line, -7 lines 0 comments Download
M remoting/host/disconnect_window_gtk.cc View 1 2 3 4 5 8 chunks +13 lines, -16 lines 0 comments Download
M remoting/host/disconnect_window_mac.h View 1 chunk +2 lines, -8 lines 0 comments Download
M remoting/host/disconnect_window_mac.mm View 1 2 3 4 5 5 chunks +17 lines, -26 lines 0 comments Download
M remoting/host/disconnect_window_win.cc View 6 chunks +7 lines, -42 lines 0 comments Download
M remoting/host/host_main.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M remoting/host/host_window.h View 1 chunk +2 lines, -5 lines 0 comments Download
M remoting/host/installer/mac/uninstaller/remoting_uninstaller-Info.plist View 2 chunks +0 lines, -4 lines 0 comments Download
A remoting/host/installer/mac/uninstaller/remoting_uninstaller-InfoPlist.strings.jinja2 View 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/host/it2me_desktop_environment.h View 2 chunks +2 lines, -4 lines 0 comments Download
M remoting/host/it2me_desktop_environment.cc View 4 chunks +6 lines, -10 lines 0 comments Download
M remoting/host/mac/me2me_preference_pane-Info.plist View 2 chunks +0 lines, -6 lines 0 comments Download
A remoting/host/mac/me2me_preference_pane-InfoPlist.strings.jinja2 View 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/host/me2me_desktop_environment.h View 2 chunks +1 line, -3 lines 0 comments Download
M remoting/host/me2me_desktop_environment.cc View 4 chunks +3 lines, -7 lines 0 comments Download
M remoting/host/plugin/constants.h View 1 2 3 1 chunk +0 lines, -25 lines 0 comments Download
M remoting/host/plugin/host_plugin.cc View 1 2 3 4 5 8 chunks +47 lines, -10 lines 0 comments Download
M remoting/host/plugin/host_plugin-Info.plist View 1 chunk +2 lines, -6 lines 0 comments Download
A remoting/host/plugin/host_plugin-InfoPlist.strings.jinja2 View 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/host/plugin/host_script_object.h View 2 chunks +0 lines, -4 lines 0 comments Download
M remoting/host/plugin/host_script_object.cc View 1 2 3 4 5 chunks +13 lines, -26 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 3 chunks +1 line, -6 lines 0 comments Download
M remoting/host/remoting_me2me_host-Info.plist View 1 chunk +0 lines, -2 lines 0 comments Download
A remoting/host/remoting_me2me_host-InfoPlist.strings.jinja2 View 1 chunk +1 line, -0 lines 0 comments Download
D remoting/host/ui_strings.h View 1 chunk +0 lines, -50 lines 0 comments Download
D remoting/host/ui_strings.cc View 1 chunk +0 lines, -34 lines 0 comments Download
M remoting/host/win/core.rc.jinja2 View 3 chunks +3 lines, -3 lines 0 comments Download
M remoting/host/win/session_desktop_environment.h View 2 chunks +0 lines, -3 lines 0 comments Download
M remoting/host/win/session_desktop_environment.cc View 2 chunks +1 line, -4 lines 0 comments Download
M remoting/host/win/version.rc.jinja2 View 2 chunks +2 lines, -1 line 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 28 chunks +190 lines, -59 lines 0 comments Download
D remoting/resources/common_resources.grd View 1 chunk +0 lines, -18 lines 0 comments Download
M remoting/resources/remoting_strings.grd View 1 2 3 4 5 4 chunks +68 lines, -45 lines 0 comments Download
M remoting/resources/resource_ids View 1 chunk +0 lines, -3 lines 0 comments Download
A + remoting/tools/build/remoting_copy_locales.py View 6 chunks +14 lines, -72 lines 0 comments Download
M remoting/tools/build/remoting_localize.py View 1 2 3 3 chunks +12 lines, -2 lines 0 comments Download
M remoting/tools/verify_resources.py View 2 chunks +2 lines, -2 lines 0 comments Download
A + remoting/unittests-Info.plist View 2 chunks +1 line, -10 lines 0 comments Download
M remoting/webapp/build-webapp.py View 1 chunk +16 lines, -14 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
alexeypa (please no reviews)
PTAL.
7 years, 5 months ago (2013-07-23 21:42:04 UTC) #1
Sergey Ulanov
How is that supposed to work in It2Me? can we include .pak file in a ...
7 years, 5 months ago (2013-07-23 22:19:47 UTC) #2
Sergey Ulanov
https://chromiumcodereview.appspot.com/19803010/diff/1/remoting/base/resources_win.cc File remoting/base/resources_win.cc (right): https://chromiumcodereview.appspot.com/19803010/diff/1/remoting/base/resources_win.cc#newcode13 remoting/base/resources_win.cc:13: NOTREACHED(); Is that right? ResourceTest still calls this function. ...
7 years, 5 months ago (2013-07-23 22:45:39 UTC) #3
alexeypa (please no reviews)
On 2013/07/23 22:19:47, Sergey Ulanov wrote: > How is that supposed to work in It2Me? ...
7 years, 5 months ago (2013-07-23 23:25:56 UTC) #4
alexeypa (please no reviews)
I'll update the code shortly. https://chromiumcodereview.appspot.com/19803010/diff/1/remoting/base/resources_win.cc File remoting/base/resources_win.cc (right): https://chromiumcodereview.appspot.com/19803010/diff/1/remoting/base/resources_win.cc#newcode13 remoting/base/resources_win.cc:13: NOTREACHED(); On 2013/07/23 22:45:40, ...
7 years, 5 months ago (2013-07-23 23:35:26 UTC) #5
alexeypa (please no reviews)
I updated the code. PTAL.
7 years, 4 months ago (2013-07-24 17:44:24 UTC) #6
alexeypa (please no reviews)
ping
7 years, 4 months ago (2013-07-25 16:24:58 UTC) #7
Sergey Ulanov
https://chromiumcodereview.appspot.com/19803010/diff/1/remoting/host/plugin/host_plugin.cc File remoting/host/plugin/host_plugin.cc (right): https://chromiumcodereview.appspot.com/19803010/diff/1/remoting/host/plugin/host_plugin.cc#newcode462 remoting/host/plugin/host_plugin.cc:462: *reinterpret_cast<const char**>(value) = g_ui_name->c_str(); On 2013/07/23 23:35:26, alexeypa wrote: ...
7 years, 4 months ago (2013-07-25 18:40:57 UTC) #8
alexeypa (please no reviews)
https://chromiumcodereview.appspot.com/19803010/diff/1/remoting/host/plugin/host_plugin.cc File remoting/host/plugin/host_plugin.cc (right): https://chromiumcodereview.appspot.com/19803010/diff/1/remoting/host/plugin/host_plugin.cc#newcode462 remoting/host/plugin/host_plugin.cc:462: *reinterpret_cast<const char**>(value) = g_ui_name->c_str(); On 2013/07/25 18:40:57, Sergey Ulanov ...
7 years, 4 months ago (2013-07-25 18:48:02 UTC) #9
alexeypa (please no reviews)
Gary, ping^2
7 years, 4 months ago (2013-07-26 15:48:28 UTC) #10
garykac
lgtm https://codereview.chromium.org/19803010/diff/20001/remoting/remoting.gyp File remoting/remoting.gyp (right): https://codereview.chromium.org/19803010/diff/20001/remoting/remoting.gyp#newcode50 remoting/remoting.gyp:50: # These values must match host/plugin/constants.h The comment ...
7 years, 4 months ago (2013-07-26 16:20:15 UTC) #11
Sergey Ulanov
lgtm https://chromiumcodereview.appspot.com/19803010/diff/1/remoting/host/plugin/host_plugin.cc File remoting/host/plugin/host_plugin.cc (right): https://chromiumcodereview.appspot.com/19803010/diff/1/remoting/host/plugin/host_plugin.cc#newcode462 remoting/host/plugin/host_plugin.cc:462: *reinterpret_cast<const char**>(value) = g_ui_name->c_str(); On 2013/07/25 18:48:03, alexeypa ...
7 years, 4 months ago (2013-07-26 17:58:24 UTC) #12
alexeypa (please no reviews)
https://chromiumcodereview.appspot.com/19803010/diff/1/remoting/host/plugin/host_plugin.cc File remoting/host/plugin/host_plugin.cc (right): https://chromiumcodereview.appspot.com/19803010/diff/1/remoting/host/plugin/host_plugin.cc#newcode462 remoting/host/plugin/host_plugin.cc:462: *reinterpret_cast<const char**>(value) = g_ui_name->c_str(); On 2013/07/26 17:58:25, Sergey Ulanov ...
7 years, 4 months ago (2013-07-26 18:55:01 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/19803010/56001
7 years, 4 months ago (2013-07-26 20:48:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/19803010/56001
7 years, 4 months ago (2013-07-26 21:27:20 UTC) #15
commit-bot: I haz the power
7 years, 4 months ago (2013-07-26 22:55:08 UTC) #16
Message was sent while issue was closed.
Change committed as 213997

Powered by Google App Engine
This is Rietveld 408576698