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

Issue 1705823002: Componentize IDS_NEW_TAB_* & IDS_SAD_TAB_* string to share on iOS. (Closed)

Created:
4 years, 10 months ago by sdefresne
Modified:
4 years, 10 months ago
Reviewers:
droger, Nico
CC:
ajwong+watch_chromium.org, Avi (use Gerrit), chromium-reviews, creis+watch_chromium.org, dbeam+watch-ntp_chromium.org, David Black, dhollowa+watch_chromium.org, donnd+watch_chromium.org, dougw+watch_chromium.org, Jered, jfweitz+watch_chromium.org, kalyank, kmadhusu+watch_chromium.org, melevin+watch_chromium.org, pedrosimonetti+watch_chromium.org, sadrul, samarth+watch_chromium.org, skanuj+watch_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Componentize IDS_NEW_TAB_* & IDS_SAD_TAB_* string to share on iOS. TBR=thakis@chromium.org BUG=568486 Committed: https://crrev.com/957f4a7e1c0d080416046ab562e510c2ec6e685b Cr-Commit-Position: refs/heads/master@{#376151}

Patch Set 1 #

Patch Set 2 : Copy IDS_NEW_TAB_TITLE translation to components_strings_*.xtb to fix browser_tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -44 lines) Patch
M chrome/app/generated_resources.grd View 1 5 chunks +0 lines, -44 lines 0 comments Download
M chrome/browser/memory_details.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/search/local_ntp_source.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.mm View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/core_tab_helper.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/sad_tab_view.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/components_strings.grd View 1 1 chunk +1 line, -0 lines 0 comments Download
A components/new_or_sad_tab_strings.grdp View 1 chunk +53 lines, -0 lines 0 comments Download
M components/strings/components_strings_am.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_ar.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_bg.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_bn.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_ca.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_cs.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_da.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_de.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_el.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_en-GB.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_es.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_es-419.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_et.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_fa.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_fi.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_fil.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_fr.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_gu.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_hi.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_hr.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_hu.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_id.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_it.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_iw.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_ja.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_kn.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_ko.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_lt.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_lv.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_ml.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_mr.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_ms.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_nl.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_no.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_pl.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_pt-BR.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_pt-PT.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_ro.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_ru.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_sk.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_sl.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_sr.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_sv.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_sw.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_ta.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_te.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_th.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_tr.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_uk.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_vi.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_zh-CN.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/strings/components_strings_zh-TW.xtb View 1 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 15 (6 generated)
sdefresne
Please take a look.
4 years, 10 months ago (2016-02-17 17:17:10 UTC) #2
droger
lgtm
4 years, 10 months ago (2016-02-17 17:39:39 UTC) #3
sdefresne
thakis: TBR for OWNERS stamp for the following files chrome/browser/memory_details.cc chrome/browser/search/local_ntp_source.cc chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.mm chrome/browser/ui/search/search_tab_helper.cc ...
4 years, 10 months ago (2016-02-18 10:44:13 UTC) #5
sdefresne
TBR-ing thakis as the changes are trivial (addition of some #include)
4 years, 10 months ago (2016-02-18 12:36:09 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1705823002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1705823002/20001
4 years, 10 months ago (2016-02-18 12:37:11 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-18 12:44:39 UTC) #11
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/957f4a7e1c0d080416046ab562e510c2ec6e685b Cr-Commit-Position: refs/heads/master@{#376151}
4 years, 10 months ago (2016-02-18 12:45:54 UTC) #13
Nico
chrome/ lgtm Why does components/ have the translated versions checked in but chrome doesn't?
4 years, 10 months ago (2016-02-18 14:14:45 UTC) #14
sdefresne
4 years, 10 months ago (2016-02-18 15:07:56 UTC) #15
Message was sent while issue was closed.
On 2016/02/18 at 14:14:45, thakis wrote:
> chrome/ lgtm
> 
> Why does components/ have the translated versions checked in but chrome
doesn't?

Oh, forgot to update the description when I did the change.

There's one test LocalNTPTest.NTPRespectsBrowserLanguageSetting that loads the
"fr" datapack and compare the new tab title with a hard-coded value (see
https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/ui/...).
I think this is bad as it would break if the French translation ever change,
however I didn't want to change the test in that CL (as I assumed there was a
good reason for the test to be written that way).

So, the have the test pass, I did copy the translated string to the
components/strings/components_strings_${locale}.xtb file. Usually the string
would be automatically be added to the .xtb as part of the localisation dump
process and that is why we do not have to copy them when moving string from one
.grd file to another. I did not remove it from
chrome/app/resources/generated_resources_${locale}.xtb as the tool does not mind
if there are obsolete translations in the .xtb file, and because they will be
removed as part of the next localization dump.

TL;DR: I did copy the string to copy a test hard-coding the "fr" translation of
IDS_NEW_TAB_TITLE to "Nouvel Onglet".

Powered by Google App Engine
This is Rietveld 408576698