[Koha-devel] CSS and translation

Galen Charlton gmc at esilibrary.com
Wed Nov 6 14:42:51 CET 2013


Hi Fridolin,

On Wed, Nov 6, 2013 at 8:08 AM, Fridolin SOMERS <
fridolin.somers at biblibre.com> wrote:

> There are in CCSR theme some translatable strings in mobile.css.
> Like : body#opac-detail #holdingst td.itype:before {content: "Item type :
> ";}
>
> But this text is not present in PO file.
>
> Are in fact the css files translatable with PO files ?
>

To my knowledge, not at present.  There are several options available to us:

[1] Remove displayable strings from the CSS files.
[2] Teach the translation tools how to grab content strings from CSS files
and apply PO files to them.  If we go down that route, I think it might be
simplest to put CSS rules containing displayable strings into a separate
file so one doesn't have to run the translation scripts every time one
wants to tweak normal CSS rules.
[3] Convert the CSS files into templates that are processed by Template
Toolkit and which can use a plugin to grab translations from the database.
 I'm not sure how well that approach would play with Bootstrap and using
LESS, however.

Regards,

Galen
-- 
Galen Charlton
Manager of Implementation
Equinox Software, Inc. / The Open Source Experts
email:  gmc at esilibrary.com
direct: +1 770-709-5581
cell:   +1 404-984-4366
skype:  gmcharlt
web:    http://www.esilibrary.com/
Supporting Koha and Evergreen: http://koha-community.org &
http://evergreen-ils.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20131106/71e0a48e/attachment.html>


More information about the Koha-devel mailing list