Skip to content

Commit

Permalink
Add a string for WebLocalizedString::WeekFormatTemplate. The string i…
Browse files Browse the repository at this point in the history
…s converted to an LDML date format pattern in WebKit code.

TEST=will be tested in a WebKit layout test
BUG=none


Review URL: https://chromiumcodereview.appspot.com/11270005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164515 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
tkent@chromium.org committed Oct 27, 2012
1 parent c4f6ba5 commit 2f0605e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webkit/glue/webkit_strings.grd
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@ below:
1024 (Medium Grade)
</message>

<message name="IDS_FORM_INPUT_WEEK_TEMPLATE" desc="A specfic week (1-53) in a specific year shown in a form control">
Week <ph name="WEEKNUMBER">$2<ex>51</ex></ph>, <ph name="YEAR">$1<ex>2012</ex></ph>
</message>
<message name="IDS_FORM_VALIDATION_VALUE_MISSING_MULTIPLE_FILE" desc="Heading or short sentence shown when a file upload control in a webpage requires one or more files selected, but the user didn't specify any files.">
Please select one or more files.
</message>
Expand Down
2 changes: 2 additions & 0 deletions webkit/glue/webkitplatformsupport_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ static int ToMessageID(WebLocalizedString::Name name) {
return IDS_FORM_VALIDATION_VALUE_MISSING_RADIO;
case WebLocalizedString::ValidationValueMissingForSelect:
return IDS_FORM_VALIDATION_VALUE_MISSING_SELECT;
case WebLocalizedString::WeekFormatTemplate:
return IDS_FORM_INPUT_WEEK_TEMPLATE;
// This "default:" line exists to avoid compile warnings about enum
// coverage when we add a new symbol to WebLocalizedString.h in WebKit.
// After a planned WebKit patch is landed, we need to add a case statement
Expand Down

0 comments on commit 2f0605e

Please sign in to comment.