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

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

Issue 806943003: Use the unicode value for non ASCII characters (kanji) in calendarPicker.js (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 months 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
« no previous file with comments | « no previous file | 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 2378cffdca4b6342f25d5f4d1c2252ce2a95986e..b5a1701d757e290d200a213dfe83fe271b4fea7f 100644
--- a/Source/web/resources/calendarPicker.js
+++ b/Source/web/resources/calendarPicker.js
@@ -114,19 +114,19 @@ function formatJapaneseImperialEra(year, month) {
if (year > ImperialEraLimit)
return "";
if (year > 1989)
- return "(平成" + localizeNumber(year - 1988) + "年)";
+ return "(\u5e73\u6210" + localizeNumber(year - 1988) + "\u5e74)";
if (year == 1989)
- return "(平成元年)";
+ return "(\u5e73\u6210\u5143\u5e74)";
if (year >= 1927)
- return "(昭和" + localizeNumber(year - 1925) + "年)";
+ return "(\u662d\u548c" + localizeNumber(year - 1925) + "\u5e74)";
if (year > 1912)
- return "(大正" + localizeNumber(year - 1911) + "年)";
+ return "(\u5927\u6b63" + localizeNumber(year - 1911) + "\u5e74)";
if (year == 1912 && month >= 7)
- return "(大正元年)";
+ return "(\u5927\u6b63\u5143\u5e74)";
if (year > 1868)
- return "(明治" + localizeNumber(year - 1867) + "年)";
+ return "(\u660e\u6cbb" + localizeNumber(year - 1867) + "\u5e74)";
if (year == 1868)
- return "(明治元年)";
+ return "(\u660e\u6cbb\u5143\u5e74)";
return "";
}
@@ -769,7 +769,7 @@ Month.prototype.toString = function() {
*/
Month.prototype.toLocaleString = function() {
if (global.params.locale === "ja")
- return "" + this.year + "年" + formatJapaneseImperialEra(this.year, this.month) + " " + (this.month + 1) + "月";
+ return "" + this.year + "\u5e74" + formatJapaneseImperialEra(this.year, this.month) + " " + (this.month + 1) + "\u6708";
return window.pagePopupController.formatMonth(this.year, this.month);
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698