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

Unified Diff: Source/web/resources/calendarPicker.js

Issue 703043002: Language.{h,cpp} clean-up. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« Source/platform/Language.cpp ('K') | « Source/platform/Language.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/resources/calendarPicker.js
diff --git a/Source/web/resources/calendarPicker.js b/Source/web/resources/calendarPicker.js
index e1caf267b26f00a3565726c1b88e310c141d431d..2378cffdca4b6342f25d5f4d1c2252ce2a95986e 100644
--- a/Source/web/resources/calendarPicker.js
+++ b/Source/web/resources/calendarPicker.js
@@ -49,7 +49,7 @@ var WeekDay = {
var global = {
picker: null,
params: {
- locale: "en_US",
+ locale: "en-US",
weekStartDay: WeekDay.Sunday,
dayLabels: ["S", "M", "T", "W", "T", "F", "S"],
shortMonthLabels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec"],
@@ -75,7 +75,7 @@ function hasInaccuratePointingDevice() {
* @return {!string} lowercase locale name. e.g. "en-us"
*/
function getLocale() {
- return (global.params.locale || "en-us").toLowerCase().replace(/_/g, '-');
+ return global.params.locale || "en-us";
}
/**
« Source/platform/Language.cpp ('K') | « Source/platform/Language.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698