From 7298d3241bea1272ba316c437007d9c07c4ed8b4 Mon Sep 17 00:00:00 2001 From: Marc Schumann Date: Fri, 18 May 2012 14:09:05 +0200 Subject: The calendar widget is not localizable. r/a=LpSolit https://bugzilla.mozilla.org/show_bug.cgi?id=581365 --- template/en/default/bug/field.html.tmpl | 5 ++-- template/en/default/bug/summarize-time.html.tmpl | 10 +++---- template/en/default/global/calendar.js.tmpl | 33 ++++++++++++++++++++++++ template/en/default/search/field.html.tmpl | 7 ++--- template/en/default/search/form.html.tmpl | 7 ++--- 5 files changed, 49 insertions(+), 13 deletions(-) create mode 100644 template/en/default/global/calendar.js.tmpl (limited to 'template/en/default') diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index e6660256f..1f0ea175a 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -56,8 +56,9 @@
+ [% CASE constants.FIELD_TYPE_BUG_ID %] +
[% END %] diff --git a/template/en/default/global/calendar.js.tmpl b/template/en/default/global/calendar.js.tmpl new file mode 100644 index 000000000..26f3fa023 --- /dev/null +++ b/template/en/default/global/calendar.js.tmpl @@ -0,0 +1,33 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[%# INTERFACE: + # id: The id of the input field the calendar widget is to be assigned to. + #%] + +[%# This template exists because createCalendar accepts additional parameters + # which allow for localization. Please see the YUI documentation at + # http://developer.yahoo.com/yui/calendar/#internationalization for details. + # As an example, here's what you'd specify as additional parameters to + # localize for German calendars; replace the ellipsis ("...") by the original + # parameter (we cannot put it into the example because it'd break this + # template comment): + # + # createCalendar(... + # /* The weekday the week begins on; 0 is Sunday, + # * 1 is Monday and so on: */ + # 1, + # /* Months, full names; first must be January: */ + # ['Januar', 'Februar', 'März', 'April', + # 'Mai', 'Juni', 'Juli', 'August', + # 'September', 'Oktober', 'November', 'Dezember'], + # /* Weekdays, two-letter abbreviations; first must be + # * Sunday: */ + # ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa']); + #%] +createCalendar('[% id FILTER js %]'); diff --git a/template/en/default/search/field.html.tmpl b/template/en/default/search/field.html.tmpl index dd5e1fac7..34a480f31 100644 --- a/template/en/default/search/field.html.tmpl +++ b/template/en/default/search/field.html.tmpl @@ -82,9 +82,10 @@ + [% CASE [ constants.FIELD_TYPE_SINGLE_SELECT, constants.FIELD_TYPE_MULTI_SELECT ] %]
diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index fc6f597cf..48980b633 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -319,9 +319,10 @@ TUI_hide_default('information_query');
(YYYY-MM-DD or relative dates) + -- cgit v1.2.3-24-g4f1b