summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-21 04:44:03 +0000
committertkent@chromium.org <tkent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-21 04:44:03 +0000
commitb6f52124fbccd3db6e1f666da3b22daa5d995655 (patch)
tree22900cca128b7edac1eea7e34537350b2e2773d6
parent0af7fb6fa364f8f9687ea6984395f7ecb1e8fc0a (diff)
downloadchromium_src-b6f52124fbccd3db6e1f666da3b22daa5d995655.zip
chromium_src-b6f52124fbccd3db6e1f666da3b22daa5d995655.tar.gz
chromium_src-b6f52124fbccd3db6e1f666da3b22daa5d995655.tar.bz2
Add a localizable string for the default label of <details>.
This is a follow-up of http://trac.webkit.org/changeset/90195. BUG=none TEST=Covered by layout tests; fast/html/details-*.html Review URL: http://codereview.chromium.org/7453020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93335 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--webkit/glue/webkit_strings.grd3
-rw-r--r--webkit/glue/webkitclient_impl.cc2
2 files changed, 5 insertions, 0 deletions
diff --git a/webkit/glue/webkit_strings.grd b/webkit/glue/webkit_strings.grd
index cf5d766..2b4e180 100644
--- a/webkit/glue/webkit_strings.grd
+++ b/webkit/glue/webkit_strings.grd
@@ -257,6 +257,9 @@ below:
<ph> element). You can also use the 'grit add' tool to help you identify
nontranslateable parts and create placeholders for them. -->
+ <message name="IDS_DETAILS_WITHOUT_SUMMARY_LABEL" desc="Clickable label to show detailed information or to hide the detailed information.">
+ Details
+ </message>
<message name="IDS_SEARCHABLE_INDEX_INTRO" desc="Text that appears at the start of nearly-obsolete web pages in the form of a 'searchable index'.">
This is a searchable index. Enter search keywords: '''
</message>
diff --git a/webkit/glue/webkitclient_impl.cc b/webkit/glue/webkitclient_impl.cc
index 8dc0d3a..d8f88f4 100644
--- a/webkit/glue/webkitclient_impl.cc
+++ b/webkit/glue/webkitclient_impl.cc
@@ -129,6 +129,8 @@ static int ToMessageID(WebLocalizedString::Name name) {
return IDS_FORM_FILE_NO_FILE_LABEL;
case WebLocalizedString::MultipleFileUploadText:
return IDS_FORM_FILE_MULTIPLE_UPLOAD;
+ case WebLocalizedString::DetailsLabel:
+ return IDS_DETAILS_WITHOUT_SUMMARY_LABEL;
case WebLocalizedString::SearchableIndexIntroduction:
return IDS_SEARCHABLE_INDEX_INTRO;
case WebLocalizedString::SearchMenuNoRecentSearchesText: