[MERGE] OPW 573621: web_calendar: fix localisation of calendar view

backport of trunk fme@openerp.com-20120625115839-vgdsq9g5p4d4x51b

lp bug: https://launchpad.net/bugs/958728 fixed

bzr revid: xal@openerp.com-20120629103512-cg9sbfsesxi2jef1
This commit is contained in:
Xavier ALT
2012-06-29 12:35:12 +02:00
parent 06509a0043
commit c576c4c2e9
2 changed files with 155 additions and 19 deletions
+112 -18
View File
@@ -6,21 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"#-#-#-#-# web_calendar.pot (PROJECT VERSION) #-#-#-#-#\n"
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2012-02-06 17:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 0.9.6\n"
"#-#-#-#-# web_calendar.pot.web (PROJECT VERSION) #-#-#-#-#\n"
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2012-03-05 19:34+0100\n"
"POT-Creation-Date: 2012-06-29 12:19+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -35,14 +23,119 @@ msgid "Calendar"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:466
#: addons/web_calendar/static/src/js/calendar.js:467
msgid "Responsible"
#: addons/web_calendar/static/src/js/calendar.js:70
msgid "Filter"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:504
#: addons/web_calendar/static/src/js/calendar.js:505
#: addons/web_calendar/static/src/js/calendar.js:144
msgid "Today"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:145
msgid "Day"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:146
msgid "Week"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:147
msgid "Month"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:148
msgid "New event"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:149
msgid "Save"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:150
msgid "Cancel"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:151
msgid "Details"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:152
msgid "Edit"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:153
msgid "Delete"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:155
msgid "Event will be deleted permanently, are you sure?"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:156
#: addons/web_calendar/static/src/js/calendar.js:169
msgid "Description"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:157
msgid "Time period"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:158
msgid "Full day"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:161
msgid "Do you want to edit the whole set of repeated events?"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:162
msgid "Repeat event"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:163
msgid "Disabled"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:164
msgid "Enabled"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:167
#: addons/web_calendar/static/src/js/calendar.js:175
msgid "Agenda"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:168
msgid "Date"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:172
msgid "Year"
msgstr ""
#. openerp-web
#: addons/web_calendar/static/src/js/calendar.js:543
msgid "Navigator"
msgstr ""
@@ -51,3 +144,4 @@ msgstr ""
#: addons/web_calendar/static/src/xml/web_calendar.xml:6
msgid "&nbsp;"
msgstr ""
+43 -1
View File
@@ -125,7 +125,7 @@ openerp.web_calendar.CalendarView = openerp.web.View.extend({
}
scheduler.config.api_date = "%Y-%m-%d %H:%i";
scheduler.config.multi_day = true; //Multi day events are not rendered in daily and weekly views
scheduler.config.start_on_monday = true;
scheduler.config.start_on_monday = Date.CultureInfo.firstDayOfWeek !== 0; //Sunday = Sunday, Others = Monday
scheduler.config.time_step = 30;
scheduler.config.scroll_hour = 8;
scheduler.config.drag_resize = true;
@@ -133,6 +133,48 @@ openerp.web_calendar.CalendarView = openerp.web.View.extend({
scheduler.config.mark_now = true;
scheduler.config.day_date = '%l %j';
scheduler.locale = {
date:{
month_full: Date.CultureInfo.monthNames,
month_short: Date.CultureInfo.abbreviatedMonthNames,
day_full: Date.CultureInfo.dayNames,
day_short: Date.CultureInfo.abbreviatedDayNames
},
labels:{
dhx_cal_today_button: _t("Today"),
day_tab: _t("Day"),
week_tab: _t("Week"),
month_tab: _t("Month"),
new_event: _t("New event"),
icon_save: _t("Save"),
icon_cancel: _t("Cancel"),
icon_details: _t("Details"),
icon_edit: _t("Edit"),
icon_delete: _t("Delete"),
confirm_closing: "",//Your changes will be lost, are your sure ?
confirm_deleting: _t("Event will be deleted permanently, are you sure?"),
section_description: _t("Description"),
section_time: _t("Time period"),
full_day: _t("Full day"),
/*recurring events*/
confirm_recurring: _t("Do you want to edit the whole set of repeated events?"),
section_recurring: _t("Repeat event"),
button_recurring: _t("Disabled"),
button_recurring_open: _t("Enabled"),
/*agenda view extension*/
agenda_tab: _t("Agenda"),
date: _t("Date"),
description: _t("Description"),
/*year view extension*/
year_tab: _t("Year"),
/* week agenda extension */
week_agenda_tab: _t("Agenda")
}
};
scheduler.init('openerp_scheduler', null, this.mode || 'month');
// Remove hard coded style attributes from dhtmlx scheduler