gokuney / jquery-events-calendar

Automatically exported from code.google.com/p/jquery-events-calendar
0 stars 0 forks source link

Better localization support #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I'm using jquery-events-calendar in a django project, all is good except 
localization that is partial, for example I can do something like this in 
plugin init

jQuery(document).ready(function() {  
    jQuery("#eventCalendarLimit").eventCalendar({
        eventsjson: '{{prefix}}json/calendar_events/',
        eventsLimit: 2,
        monthNames: [ gettext("January"), gettext("February"), gettext("March"), gettext("April"), gettext("May"), gettext("June"),
                      gettext("July"), gettext("August"), gettext("September"), gettext("October"), gettext("November"), gettext("December") ],
...

marking the month names and other exposed string with gettext nicely integrate 
them in django localization system, however some strings are hard coded 
("loading ...") the month names are tipical english ("July 25th events" should 
be "Eventi del 25 luglio" in italian and other european languange)

so should be useful:

1) expose all hardcoded strings
2) an option to change the date appareance

thanks
Nicola

Original issue reported on code.google.com by drakkan1...@gmail.com on 29 Jul 2012 at 10:41