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

Issue 11659006: [Android] Generate localized strings.xml files at build time. (Closed)

Created:
8 years ago by newt (away)
Modified:
7 years, 11 months ago
Reviewers:
shashi, cjhopman, Yaron, Nico, jam
CC:
chromium-reviews
Visibility:
Public.

Description

[Android] Generate localized strings.xml files at build time. This generates localized strings.xml files (e.g. values-fr/strings.xml) from grd and xtb files at build time. This means we no longer need to check in localized strings.xml files. Note: the xtb files are empty until translations are available. Benefits: - 41 fewer extraneous results when grepping Java string IDs - Switching from maintaining strings in strings.xml over to using a grd file is One Trivial CL* away: just include English in the list of languages for which we generate strings.xml files. *Restrictions may apply BUG=167248 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176134

Patch Set 1 #

Total comments: 3

Patch Set 2 : add java_strings_grd variable to specify name of grd file #

Total comments: 2

Patch Set 3 : moved conditions clause #

Patch Set 4 : localize strings for apks too #

Total comments: 5

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : rebase onto https://codereview.chromium.org/11829009/ #

Patch Set 8 : rebase onto origin/master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -14 lines) Patch
M build/grit_action.gypi View 1 chunk +1 line, -1 line 0 comments Download
M build/java.gypi View 1 2 3 4 5 6 4 chunks +33 lines, -3 lines 0 comments Download
M build/java_apk.gypi View 1 2 3 4 5 6 5 chunks +41 lines, -10 lines 0 comments Download
M chrome/chrome.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/content.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
newt (away)
What say you? p.s. This CL only touches chrome/, but I'll add other folders once ...
8 years ago (2012-12-21 08:06:13 UTC) #1
newt (away)
https://codereview.chromium.org/11659006/diff/1/build/grit_action.gypi File build/grit_action.gypi (right): https://codereview.chromium.org/11659006/diff/1/build/grit_action.gypi#newcode31 build/grit_action.gypi:31: '-f', '<(grit_resource_ids)', this is needed to enable passing the ...
8 years ago (2012-12-21 08:12:41 UTC) #2
newt (away)
+thakis for chrome/ +yfriedman for chrome/android PTAL. Thanks!
7 years, 11 months ago (2013-01-03 01:15:37 UTC) #3
cjhopman
https://codereview.chromium.org/11659006/diff/5001/build/java.gypi File build/java.gypi (right): https://codereview.chromium.org/11659006/diff/5001/build/java.gypi#newcode133 build/java.gypi:133: 'action_name': 'generate_localized_strings_xml', If this happens before the 'process_resources' action ...
7 years, 11 months ago (2013-01-03 01:38:03 UTC) #4
Nico
Once this looks good to other reviews, this lgtm from an owners perspective.
7 years, 11 months ago (2013-01-03 01:45:37 UTC) #5
newt (away)
https://codereview.chromium.org/11659006/diff/5001/build/java.gypi File build/java.gypi (right): https://codereview.chromium.org/11659006/diff/5001/build/java.gypi#newcode133 build/java.gypi:133: 'action_name': 'generate_localized_strings_xml', On 2013/01/03 01:38:03, cjhopman wrote: > If ...
7 years, 11 months ago (2013-01-03 02:23:02 UTC) #6
newt (away)
I added support for generating strings.xml in apks, too. PTAL, thanks! https://codereview.chromium.org/11659006/diff/15001/build/java_apk.gypi File build/java_apk.gypi (right): ...
7 years, 11 months ago (2013-01-04 00:17:27 UTC) #7
shashi
Thanks Newton. lgtm, mostly nits. https://codereview.chromium.org/11659006/diff/15001/build/java.gypi File build/java.gypi (right): https://codereview.chromium.org/11659006/diff/15001/build/java.gypi#newcode82 build/java.gypi:82: 'grit_grd_file': '<(java_in_dir)/grd/<(java_strings_grd)', Can this ...
7 years, 11 months ago (2013-01-04 00:40:45 UTC) #8
newt (away)
https://codereview.chromium.org/11659006/diff/15001/build/java.gypi File build/java.gypi (right): https://codereview.chromium.org/11659006/diff/15001/build/java.gypi#newcode82 build/java.gypi:82: 'grit_grd_file': '<(java_in_dir)/grd/<(java_strings_grd)', On 2013/01/04 00:40:45, shashi wrote: > Can ...
7 years, 11 months ago (2013-01-04 01:00:58 UTC) #9
cjhopman
lgtm
7 years, 11 months ago (2013-01-08 00:11:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/newt@chromium.org/11659006/21001
7 years, 11 months ago (2013-01-08 00:14:19 UTC) #11
newt (away)
since https://codereview.chromium.org/11829009/ adds all the xtb files, they can be removed from this CL. I ...
7 years, 11 months ago (2013-01-09 00:56:31 UTC) #12
newt (away)
+jam for content.gyp
7 years, 11 months ago (2013-01-09 00:59:52 UTC) #13
jam
On 2013/01/09 00:59:52, newt wrote: > +jam for content.gyp lgtm
7 years, 11 months ago (2013-01-09 16:43:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/newt@chromium.org/11659006/35002
7 years, 11 months ago (2013-01-10 17:18:03 UTC) #15
commit-bot: I haz the power
7 years, 11 months ago (2013-01-10 19:42:45 UTC) #16
Retried try job too often on linux_chromeos for step(s) browser_tests

Powered by Google App Engine
This is Rietveld 408576698