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

Issue 18323017: Localized Chromoting Host on Windows. (Closed)

Created:
7 years, 5 months ago by alexeypa (please no reviews)
Modified:
3 years, 3 months ago
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 Windows. This CL introduces remoting/tools/localize.py script. The script is based on Jinja2 templating language. It is used to generate localizable resources (string table, dialogs, message table and version information) from a common template. The translated strings are taken from json files (used by the webapp as well), which, in turn, are generated from remoting_strings.grd. Collateral changes: - Branding of Window resources has been moved to remoting_strings.grd. .ver files are not used anymore. - Updated verify_resources.py so that it could recognize strings used by Jinja2 templates. - Fixed the dialog layouts for RTL languages. TBR=cpu@chromium.org BUG=155204 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210591

Patch Set 1 #

Total comments: 8

Patch Set 2 : Made the language table consistent. #

Patch Set 3 : CR feedback. #

Patch Set 4 : rebased #

Patch Set 5 : Fix Windows-only dependency. #

Patch Set 6 : - #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1201 lines, -298 lines) Patch
M remoting/branding_Chrome View 1 2 3 4 5 1 chunk +1 line, -7 lines 0 comments Download
M remoting/branding_Chromium View 1 2 3 4 5 1 chunk +1 line, -7 lines 0 comments Download
D remoting/host/plugin/remoting_host_plugin.ver View 1 chunk +0 lines, -5 lines 0 comments Download
D remoting/host/remoting_host_messages.mc View 1 chunk +0 lines, -61 lines 1 comment Download
D remoting/host/win/core.rc View 1 chunk +0 lines, -87 lines 0 comments Download
A remoting/host/win/core.rc.jinja2 View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
M remoting/host/win/core_resource.h View 1 2 1 chunk +8 lines, -8 lines 0 comments Download
A remoting/host/win/host_messages.mc.jinja2 View 1 2 1 chunk +89 lines, -0 lines 0 comments Download
D remoting/host/win/remoting_core.ver View 1 chunk +0 lines, -4 lines 0 comments Download
D remoting/host/win/remoting_desktop.ver View 1 chunk +0 lines, -4 lines 0 comments Download
D remoting/host/win/remoting_host.ver View 1 chunk +0 lines, -4 lines 0 comments Download
A remoting/host/win/version.rc.jinja2 View 1 2 1 chunk +72 lines, -0 lines 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 19 chunks +170 lines, -45 lines 0 comments Download
M remoting/resources/remoting_strings.grd View 3 chunks +69 lines, -0 lines 0 comments Download
M remoting/tools/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A remoting/tools/localize.py View 1 2 3 4 5 1 chunk +718 lines, -0 lines 0 comments Download
M remoting/tools/verify_resources.py View 1 2 2 chunks +5 lines, -1 line 0 comments Download
D remoting/version.rc.version View 1 chunk +0 lines, -65 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
alexeypa (please no reviews)
PTAL
7 years, 5 months ago (2013-07-03 17:33:04 UTC) #1
alexeypa (please no reviews)
Just a friendly post 4th of July ping. :-)
7 years, 5 months ago (2013-07-08 17:09:15 UTC) #2
garykac
https://codereview.chromium.org/18323017/diff/1/remoting/host/win/core_resource.h File remoting/host/win/core_resource.h (right): https://codereview.chromium.org/18323017/diff/1/remoting/host/win/core_resource.h#newcode11 remoting/host/win/core_resource.h:11: // |IDS_CONTROLLER| and |IDD_VERIFY_CONFIG_DIALOG| are hardcoded in IDS_CONTROLLER_NAME https://codereview.chromium.org/18323017/diff/1/remoting/remoting.gyp ...
7 years, 5 months ago (2013-07-09 00:34:12 UTC) #3
alexeypa (please no reviews)
https://codereview.chromium.org/18323017/diff/1/remoting/host/win/core_resource.h File remoting/host/win/core_resource.h (right): https://codereview.chromium.org/18323017/diff/1/remoting/host/win/core_resource.h#newcode11 remoting/host/win/core_resource.h:11: // |IDS_CONTROLLER| and |IDD_VERIFY_CONFIG_DIALOG| are hardcoded in On 2013/07/09 ...
7 years, 5 months ago (2013-07-09 01:05:23 UTC) #4
alexeypa (please no reviews)
Adding cpu@ because of this: ** Presubmit Messages ** Missing LGTM from OWNERS of directories ...
7 years, 5 months ago (2013-07-09 01:19:54 UTC) #5
garykac
lgtm
7 years, 5 months ago (2013-07-09 01:30:08 UTC) #6
cpu_(ooo_6.6-7.5)
yeah, just TBR me.
7 years, 5 months ago (2013-07-09 02:34:15 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/18323017/24001
7 years, 5 months ago (2013-07-09 15:38:23 UTC) #8
commit-bot: I haz the power
Change committed as 210591
7 years, 5 months ago (2013-07-09 17:27:35 UTC) #9
Nico
https://codereview.chromium.org/18323017/diff/24001/remoting/host/remoting_host_messages.mc File remoting/host/remoting_host_messages.mc (left): https://codereview.chromium.org/18323017/diff/24001/remoting/host/remoting_host_messages.mc#oldcode7 remoting/host/remoting_host_messages.mc:7: Why did we localize the .mc file? This is ...
3 years, 3 months ago (2017-09-02 23:13:37 UTC) #11
Jamie
On 2017/09/02 23:13:37, Nico wrote: > https://codereview.chromium.org/18323017/diff/24001/remoting/host/remoting_host_messages.mc > File remoting/host/remoting_host_messages.mc (left): > > https://codereview.chromium.org/18323017/diff/24001/remoting/host/remoting_host_messages.mc#oldcode7 > ...
3 years, 3 months ago (2017-09-05 21:03:25 UTC) #12
Nico
3 years, 3 months ago (2017-09-05 21:07:36 UTC) #13
Message was sent while issue was closed.
On Tue, Sep 5, 2017 at 5:03 PM, <jamiewalch@chromium.org> wrote:

> On 2017/09/02 23:13:37, Nico wrote:
> >
> https://codereview.chromium.org/18323017/diff/24001/
> remoting/host/remoting_host_messages.mc
> > File remoting/host/remoting_host_messages.mc (left):
> >
> >
> https://codereview.chromium.org/18323017/diff/24001/
> remoting/host/remoting_host_messages.mc#oldcode7
> > remoting/host/remoting_host_messages.mc:7:
> > Why did we localize the .mc file? This is only used for log output,
> which is
> for
> > devs / sysadmins mostly, right? We don't localize our other .mc files.
> Would
> > anyone have a problem with me undoing this change? (Or maybe changing the
> .jinja
> > template so that it only passes through english?)
>
> I don't remember us ever discussing it; I suspect Alex just did it
> automatically
> as it contains English strings. I think unlocalizing this file is fine, but
> please don't undo this entire change--I'm sure that wasn't what you were
> suggesting :)
>

Here's what I had in mind:
https://chromium-review.googlesource.com/c/chromium/src/+/649886

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698