Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openerp-web/6.1-opw-573621-msh into lp:openerp-web/6.1.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-573621-msh/+merge/104097
Hello,
Fixed the issue of calendar view translation, here the static strings like day
name, month name were not translated, so update the secheduler.locale with _t.
Demo:- Open Any calendar view in the language other than English, you will see
the name of the days, months will remain as it is in English.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-573621-msh/+merge/104097
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/6.1-opw-573621-msh.
=== modified file 'addons/web_calendar/static/src/js/calendar.js'
--- addons/web_calendar/static/src/js/calendar.js 2012-04-17 10:15:17 +0000
+++ addons/web_calendar/static/src/js/calendar.js 2012-04-30 12:21:18 +0000
@@ -158,6 +158,48 @@
}
});
}
+ scheduler.locale = {
+ date:{
+ month_full:[_t("January"), _t("February"), _t("March"), _t("April"), _t("May"), _t("June"), _t("July"), _t("August"), _t("September"), _t("October"), _t("November"), _t("December")],
+ month_short:[_t("Jan"), _t("Feb"), _t("Mar"), _t("Apr"), _t("May"), _t("Jun"), _t("Jul"), _t("Aug"), _t("Sep"), _t("Oct"), _t("Nov"), _t("Dec")],
+ day_full:[_t("Sunday"), _t("Monday"), _t("Tuesday"), _t("Wednesday"), _t("Thursday"), _t("Friday"), _t("Saturday")],
+ day_short:[_t("Sun"), _t("Mon"), _t("Tue"), _t("Wed"), _t("Thu"), _t("Fri"), _t("Sat")]
+ },
+ 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")
+ }
+ };
},
on_view_changed: function(mode, date) {
this.$element.removeClass('oe_cal_day oe_cal_week oe_cal_month').addClass('oe_cal_' + mode);
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp