зеркало из https://github.com/mozilla/gecko-dev.git
Bug 303379 likelyTimezone is unfriendly to L10n r=mvl
This commit is contained in:
Родитель
8efd40cc9d
Коммит
8845d8ebb4
|
@ -303,6 +303,14 @@ function guessSystemTimezone()
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
var stringBundleTZ = gCalendarBundle.getString("likelyTimezone");
|
var stringBundleTZ = gCalendarBundle.getString("likelyTimezone");
|
||||||
|
|
||||||
|
if (stringBundleTZ.indexOf("/mozilla.org/") == -1) {
|
||||||
|
// This happens if the l10n team didn't know how to get a time from
|
||||||
|
// tzdata.c. To convert an Olson time to a ics-timezone-string we
|
||||||
|
// need to append this prefix.
|
||||||
|
stringBundleTZ = "/mozilla.org/20050126_1/" + stringBundleTZ;
|
||||||
|
}
|
||||||
|
|
||||||
switch (checkTZ(stringBundleTZ)) {
|
switch (checkTZ(stringBundleTZ)) {
|
||||||
case 0: break;
|
case 0: break;
|
||||||
case 1:
|
case 1:
|
||||||
|
|
|
@ -208,7 +208,9 @@ readOnlyMode=There has been an error reading data for calendar: %1$S. It has bee
|
||||||
minorError=There has been an error reading data for calendar: %1$S. However, this error is believed to be minor, so the program will attempt to continue.
|
minorError=There has been an error reading data for calendar: %1$S. However, this error is believed to be minor, so the program will attempt to continue.
|
||||||
stillReadOnlyError=There has been an error reading data for calendar: %1$S.
|
stillReadOnlyError=There has been an error reading data for calendar: %1$S.
|
||||||
|
|
||||||
# Translators, please put the most likely timezone that the people using your
|
# LOCALIZATION NOTE (likelyTimezone):
|
||||||
# locale will be in. This needs to be a long name taken from
|
# Translators, please put the most likely timezone that the people using your
|
||||||
# mozilla/calendar/base/src/tzdata.c
|
# locale will be in. Ideally, this would be a long name taken from
|
||||||
likelyTimezone=/mozilla.org/20050126_1/America/New_York
|
# mozilla/calendar/base/src/tzdata.c. If you don't understand that file or
|
||||||
|
# these instructions, simply put the Olson-timezone name in English, ie "America/New_York"
|
||||||
|
likelyTimezone=America/New_York
|
||||||
|
|
Загрузка…
Ссылка в новой задаче