Hie Koha users,
I'm opening a mail on the translation of JavaScript Calendar used in both OPAC and Intranet.
(JSCalendar, unknown version but < 1.0).
The bug 2307 refers to this :
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2307
I think it's can be a great improvement for users.
(We French use a wery different date format).
How can we propose translation ?
- In PO files like proposed in bug patch
- With the language files found in JSCalendar project and put them all in lib/calendar folder.
In my opinion, PO files is not necessary.
Because :
- language files (calendar-[language].js) are very small (4 Ko).
- they manage not only translation but also country-specific preferences (such as first day of week). So using PO files will miss the comments that explains those preferences.
In second case :
In Templates, use :
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-<!-- TMPL_VAR name="lang" -->.js"></script>
In this case, we just have to rename lang files : calendar-fr.js -> calendar-fr-FR.js, calendar-fr-CA.js ...
You'll find a test patch I used for French lang.
PS :
I add to correct a bug on "first day of week" (Calendar._FD) preference to have it work.
Regards,
Happy Christmas.
--
Fridolyn SOMERS
ICT engineer
PROGILONE - Lyon - France
fridolyn.somers@gmail.com