Hie, 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 ? Best regards, PS : you may notice I changed from Fridolyn to Fridolin, it his may original first name. -- Fridolin SOMERS Biblibre - Pôle support fridolin.somers@biblibre.com
Hi Fridolin, On Wed, Nov 6, 2013 at 8:08 AM, Fridolin SOMERS < fridolin.somers@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@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
Hie, For me n°1 is better. Putting texts in CSS in juste not the right way. It concerns only the CCSR theme so it is a pb with switching from normal to mobile view. I bet this can be managed with a real UI framework like JQueryUI. Le 06/11/2013 14:42, Galen Charlton a écrit :
Hi Fridolin,
On Wed, Nov 6, 2013 at 8:08 AM, Fridolin SOMERS < fridolin.somers@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
-- Fridolin SOMERS Biblibre - Pôle support fridolin.somers@biblibre.com
[1] Remove displayable strings from the CSS files.
This to me is the logical choice until someone can come up with a really compelling reason why language strings should be in CSS. -- Owen -- Web Developer Athens County Public Libraries http://www.myacpl.org
I agree, and since CCSR theme is about to be obsolete, there is no problem. Le 07/11/2013 14:41, Owen Leonard a écrit :
[1] Remove displayable strings from the CSS files.
This to me is the logical choice until someone can come up with a really compelling reason why language strings should be in CSS.
-- Owen
-- Fridolin SOMERS Biblibre - Pôle support fridolin.somers@biblibre.com
participants (3)
-
Fridolin SOMERS -
Galen Charlton -
Owen Leonard