[Koha-devel] JSCalendar translation - bug 2307

Fridolyn SOMERS fridolyn.somers at gmail.com
Tue Dec 21 16:04:58 CET 2010


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 ?

   1. In PO files like proposed in bug patch
   2. 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 at gmail.com
-------------- section suivante --------------
Une pi?ce jointe HTML a ?t? nettoy?e...
URL: </pipermail/koha-devel/attachments/20101221/f94f9f50/attachment-0001.htm>
-------------- section suivante --------------
Une pi?ce jointe autre que texte a ?t? nettoy?e...
Nom: calendar_fr.patch
Type: text/x-patch
Taille: 21716 octets
Desc: non disponible
URL: </pipermail/koha-devel/attachments/20101221/f94f9f50/attachment-0001.bin>


More information about the Koha-devel mailing list