diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-18 00:29:56 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-18 00:29:56 +0000 |
commit | e4844e11f1f5a9ee8707b1f6f79aa3de54db2248 (patch) | |
tree | b9fbe2fa44b3c3788c48ce7f2608519f089dfc75 /chrome/app | |
parent | 2996fcdd802f1fbe7531d8e67a7cd3daa805396e (diff) | |
download | chromium_src-e4844e11f1f5a9ee8707b1f6f79aa3de54db2248.zip chromium_src-e4844e11f1f5a9ee8707b1f6f79aa3de54db2248.tar.gz chromium_src-e4844e11f1f5a9ee8707b1f6f79aa3de54db2248.tar.bz2 |
step 1 on getting strings in linux: create a locale_settings.grd
based on locale_settings_en-US.rc.
We don't use this anywhere yet, just putting things in place.
- Fix preprocessor defines in grit vcproj files (needs to be defined
everywhere) and update grit_localized_resources.rules to pass the
preprocessor define to grit.
- Add generated .h files to chrome_strings.vcproj so people can ctrl+alt+a
open them.
- Update GRIT so it knows how to substitute [GRITLANGCODE] in strings
to the locale value.
Review URL: http://codereview.chromium.org/20440
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9922 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r-- | chrome/app/chrome_resources.vcproj | 1 | ||||
-rw-r--r-- | chrome/app/chrome_strings.vcproj | 22 | ||||
-rwxr-xr-x | chrome/app/resources/locale_settings.grd | 265 |
3 files changed, 285 insertions, 3 deletions
diff --git a/chrome/app/chrome_resources.vcproj b/chrome/app/chrome_resources.vcproj index fa7acc9..11d1dc1 100644 --- a/chrome/app/chrome_resources.vcproj +++ b/chrome/app/chrome_resources.vcproj @@ -50,6 +50,7 @@ /> <Tool Name="GRIT Generated Resources" + PreprocessorDefinitions="$(CHROMIUM_BUILD)" /> <Tool Name="VCCustomBuildTool" diff --git a/chrome/app/chrome_strings.vcproj b/chrome/app/chrome_strings.vcproj index 8789892..165e2ea 100644 --- a/chrome/app/chrome_strings.vcproj +++ b/chrome/app/chrome_strings.vcproj @@ -23,30 +23,46 @@ ConfigurationType="10" InheritedPropertySheets="$(SolutionDir)..\build\common.vsprops;$(SolutionDir)..\build\debug.vsprops" > + <Tool + Name="GRIT Generated Localized Resources" + PreprocessorDefinitions="$(CHROMIUM_BUILD)" + /> </Configuration> <Configuration Name="Release|Win32" ConfigurationType="10" InheritedPropertySheets="$(SolutionDir)..\build\common.vsprops;$(SolutionDir)..\build\release.vsprops" > + <Tool + Name="GRIT Generated Localized Resources" + PreprocessorDefinitions="$(CHROMIUM_BUILD)" + /> </Configuration> </Configurations> <Files> <File - RelativePath=".\generated_resources.grd" + RelativePath=".\chromium_strings.grd" > </File> <File - RelativePath=".\google_chrome_strings.grd" + RelativePath="$(IntDir)\chromium_strings.h" > </File> <File - RelativePath=".\chromium_strings.grd" + RelativePath=".\generated_resources.grd" > </File> <File RelativePath="$(IntDir)\generated_resources.h" > </File> + <File + RelativePath=".\google_chrome_strings.grd" + > + </File> + <File + RelativePath="$(IntDir)\google_chrome_strings.h" + > + </File> </Files> </VisualStudioProject> diff --git a/chrome/app/resources/locale_settings.grd b/chrome/app/resources/locale_settings.grd new file mode 100755 index 0000000..2838285 --- /dev/null +++ b/chrome/app/resources/locale_settings.grd @@ -0,0 +1,265 @@ +<?xml version="1.0" encoding="UTF-8"?> +<grit latest_public_release="0" current_release="1"> + <outputs> + <output filename="locale_settings.h" type="rc_header"> + <emit emit_type='prepend'></emit> + </output> + <output filename="locale_settings_ar.rc" type="rc_all" lang="ar" /> + <output filename="locale_settings_bg.rc" type="rc_all" lang="bg" /> + <output filename="locale_settings_bn.rc" type="rc_all" lang="bn" /> + <output filename="locale_settings_ca.rc" type="rc_all" lang="ca" /> + <output filename="locale_settings_cs.rc" type="rc_all" lang="cs" /> + <output filename="locale_settings_da.rc" type="rc_all" lang="da" /> + <output filename="locale_settings_de.rc" type="rc_all" lang="de" /> + <output filename="locale_settings_el.rc" type="rc_all" lang="el" /> + <output filename="locale_settings_en-GB.rc" type="rc_all" lang="en-GB" /> + <output filename="locale_settings_en-US.rc" type="rc_all" lang="en-US" /> + <output filename="locale_settings_es.rc" type="rc_all" lang="es" /> + <output filename="locale_settings_es-419.rc" type="rc_all" lang="es-419" /> + <output filename="locale_settings_et.rc" type="rc_all" lang="et" /> + <output filename="locale_settings_fi.rc" type="rc_all" lang="fi" /> + <output filename="locale_settings_fil.rc" type="rc_all" lang="fil" /> + <output filename="locale_settings_fr.rc" type="rc_all" lang="fr" /> + <output filename="locale_settings_gu.rc" type="rc_all" lang="gu" /> + <output filename="locale_settings_he.rc" type="rc_all" lang="he" /> + <output filename="locale_settings_hi.rc" type="rc_all" lang="hi" /> + <output filename="locale_settings_hr.rc" type="rc_all" lang="hr" /> + <output filename="locale_settings_hu.rc" type="rc_all" lang="hu" /> + <output filename="locale_settings_id.rc" type="rc_all" lang="id" /> + <output filename="locale_settings_it.rc" type="rc_all" lang="it" /> + <output filename="locale_settings_ja.rc" type="rc_all" lang="ja" /> + <output filename="locale_settings_kn.rc" type="rc_all" lang="kn" /> + <output filename="locale_settings_ko.rc" type="rc_all" lang="ko" /> + <output filename="locale_settings_lt.rc" type="rc_all" lang="lt" /> + <output filename="locale_settings_lv.rc" type="rc_all" lang="lv" /> + <output filename="locale_settings_ml.rc" type="rc_all" lang="ml" /> + <output filename="locale_settings_mr.rc" type="rc_all" lang="mr" /> + <output filename="locale_settings_nl.rc" type="rc_all" lang="nl" /> + <!-- The translation console uses 'no' for Norwegian Bokmål. It should + be 'nb'. --> + <output filename="locale_settings_nb.rc" type="rc_all" lang="no" /> + <output filename="locale_settings_or.rc" type="rc_all" lang="or" /> + <output filename="locale_settings_pl.rc" type="rc_all" lang="pl" /> + <output filename="locale_settings_pt-BR.rc" type="rc_all" lang="pt-BR" /> + <output filename="locale_settings_pt-PT.rc" type="rc_all" lang="pt-PT" /> + <output filename="locale_settings_ro.rc" type="rc_all" lang="ro" /> + <output filename="locale_settings_ru.rc" type="rc_all" lang="ru" /> + <output filename="locale_settings_sk.rc" type="rc_all" lang="sk" /> + <output filename="locale_settings_sl.rc" type="rc_all" lang="sl" /> + <output filename="locale_settings_sr.rc" type="rc_all" lang="sr" /> + <output filename="locale_settings_sv.rc" type="rc_all" lang="sv" /> + <output filename="locale_settings_ta.rc" type="rc_all" lang="ta" /> + <output filename="locale_settings_te.rc" type="rc_all" lang="te" /> + <output filename="locale_settings_th.rc" type="rc_all" lang="th" /> + <output filename="locale_settings_tr.rc" type="rc_all" lang="tr" /> + <output filename="locale_settings_uk.rc" type="rc_all" lang="uk" /> + <output filename="locale_settings_vi.rc" type="rc_all" lang="vi" /> + <output filename="locale_settings_zh-CN.rc" type="rc_all" lang="zh-CN" /> + <output filename="locale_settings_zh-TW.rc" type="rc_all" lang="zh-TW" /> + + <output filename="locale_settings_en-US.pak" type="data_package" lang="en-US" /> + </outputs> + <release seq="1" allow_pseudo="false"> + <includes> + <if expr="pp_ifdef('_google_chrome')"> + <!-- TODO(tc): This won't work yet since we don't substitute + GRITLANGCODE in random attributes. --> + <include name="IDR_TERMS_HTML" file="terms\terms_[GRITLANGCODE].html" type="BINDATA" /> + </if> + <if expr="not pp_ifdef('_google_chrome')"> + <include name="IDR_TERMS_HTML" file="terms\terms_chromium.html" type="BINDATA" /> + </if> + </includes> + <messages fallback_to_english="true"> + <message name="IDS_WEB_FONT_FAMILY"> + Arial + </message> + <message name="IDS_ACCEPT_LANGUAGES"> + en-US,en + </message> + <message name="IDS_DEFAULT_ENCODING"> + ISO-8859-1 + </message> + <message name="IDS_STANDARD_FONT_IS_SERIF"> + true + </message> + <message name="IDS_FIXED_FONT_FAMILY"> + Courier New + </message> + <message name="IDS_SERIF_FONT_FAMILY"> + Times New Roman + </message> + <message name="IDS_SANS_SERIF_FONT_FAMILY"> + Arial + </message> + <message name="IDS_CURSIVE_FONT_FAMILY"> + Comic Sans MS + </message> + <message name="IDS_FANTASY_FONT_FAMILY"> + Impact + </message> + <message name="IDS_DEFAULT_FONT_SIZE"> + 16 + </message> + <message name="IDS_DEFAULT_FIXED_FONT_SIZE"> + 13 + </message> + <message name="IDS_MINIMUM_FONT_SIZE"> + 1 + </message> + <message name="IDS_MINIMUM_LOGICAL_FONT_SIZE"> + 6 + </message> + <message name="IDS_USES_UNIVERSAL_DETECTOR"> + false + </message> + <message name="IDS_SPELLCHECK_DICTIONARY"> + en-US + </message> + <message name="IDS_LEARN_MORE_MALWARE_URL"> + http://www.google.com/support/bin/answer.py?answer=45449&topic=360&hl=en&sa=X&oi=malwarewarninglink&resnum=1&ct=help + </message> + <message name="IDS_LEARN_MORE_PHISHING_URL"> + http://www.google.com/support/bin/answer.py?answer=106318&hl=[GRITLANGCODE] + </message> + <message name="IDS_OPTIONS_DIALOG_WIDTH_CHARS"> + 98 + </message> + <message name="IDS_OPTIONS_DIALOG_HEIGHT_LINES"> + 36 + </message> + <message name="IDS_OPTIONS_DIALOG_LEFT_COLUMN_WIDTH_CHARS"> + 23 + </message> + <message name="IDS_BUGREPORT_DIALOG_WIDTH_CHARS"> + 85 + </message> + <message name="IDS_BUGREPORT_DIALOG_HEIGHT_LINES"> + 17 + </message> + <message name="IDS_CLEARDATA_DIALOG_WIDTH_CHARS"> + 63 + </message> + <message name="IDS_CLEARDATA_DIALOG_HEIGHT_LINES"> + 15.5 + </message> + <message name="IDS_IMPORT_DIALOG_WIDTH_CHARS"> + 60 + </message> + <message name="IDS_IMPORT_DIALOG_HEIGHT_LINES"> + 14 + </message> + <message name="IDS_ABOUT_DIALOG_WIDTH_CHARS"> + 70 + </message> + <message name="IDS_ABOUT_DIALOG_MINIMUM_HEIGHT_LINES"> + 4 + </message> + <message name="IDS_FONTSLANG_DIALOG_WIDTH_CHARS"> + 96 + </message> + <message name="IDS_FONTSLANG_DIALOG_HEIGHT_LINES"> + 26 + </message> + <message name="IDS_FONTSLANG_LABEL_WIDTH"> + 18 + </message> + <message name="IDS_PAGEINFO_DIALOG_WIDTH_CHARS"> + 70 + </message> + <message name="IDS_PAGEINFO_DIALOG_HEIGHT_LINES"> + 25 + </message> + <message name="IDS_SEARCHENGINES_DIALOG_WIDTH_CHARS"> + 95 + </message> + <message name="IDS_SEARCHENGINES_DIALOG_HEIGHT_LINES"> + 25 + </message> + <message name="IDS_SHELFITEM_DIALOG_WIDTH_CHARS"> + 80 + </message> + <message name="IDS_SHELFITEM_DIALOG_HEIGHT_LINES"> + 30 + </message> + <message name="IDS_EDITBOOKMARK_DIALOG_WIDTH_CHARS"> + 70 + </message> + <message name="IDS_EDITBOOKMARK_DIALOG_HEIGHT_LINES"> + 25 + </message> + <message name="IDS_FIRSTRUN_DIALOG_WIDTH_CHARS"> + 90 + </message> + <message name="IDS_FIRSTRUN_DIALOG_HEIGHT_LINES"> + 16 + </message> + <message name="IDS_FIRSTRUNCUSTOMIZE_DIALOG_WIDTH_CHARS"> + 90 + </message> + <message name="IDS_FIRSTRUNCUSTOMIZE_DIALOG_HEIGHT_LINES"> + 17 + </message> + <message name="IDS_COOKIES_DIALOG_WIDTH_CHARS"> + 80 + </message> + <message name="IDS_COOKIES_DIALOG_HEIGHT_LINES"> + 29 + </message> + <message name="IDS_IMPORTPROGRESS_DIALOG_WIDTH_CHARS"> + 75 + </message> + <message name="IDS_IMPORTPROGRESS_DIALOG_HEIGHT_LINES"> + 16 + </message> + <message name="IDS_IMPORTLOCK_DIALOG_WIDTH_CHARS"> + 50 + </message> + <message name="IDS_IMPORTLOCK_DIALOG_HEIGHT_LINES"> + 8 + </message> + <message name="IDS_FIRSTRUNBUBBLE_DIALOG_WIDTH_CHARS"> + 93 + </message> + <message name="IDS_FIRSTRUNBUBBLE_DIALOG_HEIGHT_LINES"> + 12 + </message> + <message name="IDS_HELP_CONTENT_URL"> + http://www.google.com/support/chrome/?hl=[GRITLANGCODE] + </message> + <message name="IDS_BUGREPORT_POST_URL"> + http://web-bug.appspot.com/bugreport + </message> + <message name="IDS_STATIC_ENCODING_LIST"> + ISO-8859-1,windows-1252 + </message> + <message name="IDS_WELCOME_PAGE_URL"> + http://tools.google.com/chrome/intl/[GRITLANGCODE]/welcome.html + </message> + <message name="IDS_LEARN_MORE_INCOGNITO_URL"> + http://www.google.com/support/chrome/bin/answer.py?answer=95464&hl=[GRITLANGCODE] + </message> + <message name="IDS_LEARN_MORE_PRIVACY_URL"> + http://www.google.com/support/chrome/bin/answer.py?answer=114836&hl=[GRITLANGCODE] + </message> + <message name="IDS_BOOKMARK_MANAGER_DIALOG_WIDTH_CHARS"> + 150 + </message> + <message name="IDS_BOOKMARK_MANAGER_DIALOG_HEIGHT_LINES"> + 40 + </message> + <message name="IDS_DOWNLOAD_BIG_PROGRESS_SIZE"> + 52 + </message> + <message name="IDS_SELECT_PROFILE_DIALOG_WIDTH_CHARS"> + 60 + </message> + <message name="IDS_SELECT_PROFILE_DIALOG_HEIGHT_LINES"> + 5 + </message> + <message name="IDS_NEW_PROFILE_DIALOG_WIDTH_CHARS"> + 60 + </message> + </messages> + </release> +</grit> |