Bug 303379 likelyTimezone is unfriendly to L10n r=mvl

This commit is contained in:
jminta%gmail.com 2005-12-03 16:43:49 +00:00
Родитель 8efd40cc9d
Коммит 8845d8ebb4
2 изменённых файлов: 14 добавлений и 4 удалений

Просмотреть файл

@ -303,6 +303,14 @@ function guessSystemTimezone()
}
try {
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)) {
case 0: break;
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.
stillReadOnlyError=There has been an error reading data for calendar: %1$S.
# LOCALIZATION NOTE (likelyTimezone):
# Translators, please put the most likely timezone that the people using your
# locale will be in. This needs to be a long name taken from
# mozilla/calendar/base/src/tzdata.c
likelyTimezone=/mozilla.org/20050126_1/America/New_York
# locale will be in. Ideally, this would be a long name taken from
# 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