I've beginning translating templates to Spanish. After doing a checkout of latest cvs source, I've simply copied /koha-tmpl/intranet-tmpl/default/en into /koha-tmpl/intranet-tmpl/default/es and begin translating strings within files. Is this the right way?
Francisco M. Marzoa Alonso a écrit:
I've beginning translating templates to Spanish. After doing a checkout of latest cvs source, I've simply copied /koha-tmpl/intranet-tmpl/default/en into /koha-tmpl/intranet-tmpl/default/es and begin translating strings within files. Is this the right way?
grr... i would be very angry if spanish was done before french :-) :-) :-) But, yes, it's the right way. (of course, there are 4 volunteers for french translation, so we could begin later and finish sooner :-) But do you know the turtle and the rabbit from "Jean de la Fontaine"...) Don't forget to add "opaclanguages / es en" and "opacthemes / default" into your systempreferences file. If you add them, then koha will use the translated templates when they exist, the english one otherwise. If you don't, koha will only use english templates. Note for pate : 1 paragraph for this week newsletter : translation to spanish begins. -- Paul
On Wed, 27 Nov 2002, paul POULAIN wrote:
Francisco M. Marzoa Alonso a �crit:
I've beginning translating templates to Spanish. After doing a checkout of latest cvs source, I've simply copied /koha-tmpl/intranet-tmpl/default/en into /koha-tmpl/intranet-tmpl/default/es and begin translating strings within files. Is this the right way?
grr... i would be very angry if spanish was done before french :-) :-) :-) But, yes, it's the right way. (of course, there are 4 volunteers for french translation, so we could begin later and finish sooner :-) But do you know the turtle and the rabbit from "Jean de la Fontaine"...)
watch out, there are several spanish translators hiding in the wings ;^)
Don't forget to add "opaclanguages / es en" and "opacthemes / default" into your systempreferences file. If you add them, then koha will use the translated templates when they exist, the english one otherwise. If you don't, koha will only use english templates.
Note for pate : 1 paragraph for this week newsletter : translation to spanish begins.
Woohoo! I'll make sure it gets in there! -pate
-- Paul
------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Koha-devel mailing list Koha-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/koha-devel
On Wednesday 27 November 2002 11:49, paul POULAIN wrote: [...]
Don't forget to add "opaclanguages / es en" and "opacthemes / default" into your systempreferences file. If you add them, then koha will use the translated templates when they exist, the english one otherwise. If you don't, koha will only use english templates.
[...] I've not been able to understand this. Where and how should I exactly add 'es' language? Where's (or should be) my systempreferences file? What syntax must I use? TIA
Francisco M. Marzoa Alonso a écrit:
I've not been able to understand this. Where and how should I exactly add 'es' language? Where's (or should be) my systempreferences file? What syntax must I use?
here's a dump of my systempref table : CREATE TABLE systempreferences ( variable char(50) NOT NULL default '', value char(200) default NULL, explanation char(200) NOT NULL default '', PRIMARY KEY (variable) ) TYPE=ISAM PACK_KEYS=1; INSERT INTO systempreferences VALUES ('template', 'default', 'Template default name. Not used for instance'); INSERT INTO systempreferences VALUES ('autoBarcode', '0', '1 or else. If 1, Barcode is auto-calculated'); INSERT INTO systempreferences VALUES ('acquisitions', 'simple', 'normal or simple : will use acquisition system found in directory acqui.simple or acquisition'); INSERT INTO systempreferences VALUES ('autoMemberNum', '1', ''); INSERT INTO systempreferences VALUES ('authoritysep', '--', 'The separator used for authority management'); INSERT INTO systempreferences VALUES ('opaclanguages', 'fr en', 'languages'); INSERT INTO systempreferences VALUES ('opacthemes', 'default', 'themes'); -- Paul
On Monday 02 December 2002 11:48, you wrote:
Francisco M. Marzoa Alonso a écrit:
I've not been able to understand this. Where and how should I exactly add 'es' language?
[...]
INSERT INTO systempreferences
[...] It was right for text, thanks, but I've doubt now about images. Should I change the path to images in each template by the location of Spanish's images or are you thinking about do this in another manner? Thx.
Francisco M. Marzoa Alonso a écrit:
It was right for text, thanks, but I've doubt now about images. Should I change the path to images in each template by the location of Spanish's images or are you thinking about do this in another manner? Thx.
images should be put into koha-html/intranet-html/koha-tmpl/images/default/es (directories must be created). I'll do images/default/en asap. If you've a few minuts, you can do it too and move images from koha-tmpl/images/ to the en directory and modify .inc accordingly -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIBGB libre http://fr.koha.org)
On Monday 02 December 2002 12:44, paul POULAIN wrote:
Francisco M. Marzoa Alonso a écrit:
It was right for text, thanks, but I've doubt now about images. Should I change the path to images in each template by the location of Spanish's images or are you thinking about do this in another manner? Thx.
images should be put into koha-html/intranet-html/koha-tmpl/images/default/es (directories must be created). I'll do images/default/en asap. If you've a few minuts, you can do it too and move images from koha-tmpl/images/ to the en directory and modify .inc accordingly
Ok, I'll do it, but I've been working on images below /koha/koha-tmpl/opac-tmpl/default/es/images as I've had seen that there was a /koha/koha-tmpl/opac-tmpl/default/en/images directory... are those the same? I mean that if it will be enough if a hardcopy all images below that directory to the koha-tmpl/images/default/es... BTW, is that opac-tmpl directory in use or it is deprecated? thx.
Francisco M. Marzoa Alonso a écrit:
Ok, I'll do it, but I've been working on images below /koha/koha-tmpl/opac-tmpl/default/es/images as I've had seen that there was a /koha/koha-tmpl/opac-tmpl/default/en/images directory... are those the same? I mean that if it will be enough if a hardcopy all images below that directory to the koha-tmpl/images/default/es... BTW, is that opac-tmpl directory in use or it is deprecated?
<note for KATIPANS : important, as the opac images are yours> I think it's better not to put on the same dir struct the images and the templates. Otherwise, we must put images and templates on htdocs. So, : * images for opac must be moved to /koha/opac-html/images/default/lang * images for intranet are in /koha/intranet-html/images/default/lang * if you want the same images for opac and intranet, you can create a link and not copy them. One question : do you know the user difference between a librarian interface, and an opac ? -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIBGB libre http://fr.koha.org)
paul POULAIN schrieb:
I think it's better not to put on the same dir struct the images and the templates. Otherwise, we must put images and templates on htdocs.
So, : * images for opac must be moved to /koha/opac-html/images/default/lang * images for intranet are in /koha/intranet-html/images/default/lang * if you want the same images for opac and intranet, you can create a link and not copy them.
once again: Yes, images and templates will be in htdocs. The dirs are [opac|intra]htdocs/<theme>/<language>/images. opachtdocs and intrahtdocs get specified in koha.conf. If you're having some images, which are the same for the opac and intranet, you can save a few bytes by linking them. But please do so only on your local system, since we don't know how the installation is on our "customers" servers (e.g. seperate machines for opac and intranet). We decided a while ago to treat opac and intranet as two completely independent webspaces. And also please remember the 'all'-directory! All images (and all other types of data as well) which are not specific to a language (e.g. images with no text on them), but are specific to a theme should go in [opac|intra]htdocs/<theme>/all/images. Dorian
Dorian Meid a écrit:
once again:
Yes, images and templates will be in htdocs. The dirs are [opac|intra]htdocs/<theme>/<language>/images.
one again, i forgot it :-) So, i repeat : <total recall mode launching> images are stored in the same directory structure as templates. images are stored in the same directory structure as templates. images are stored in the same directory structure as templates. images are stored in the same directory structure as templates. images are stored in the same directory structure as templates. <total recall mode launched> templates in cvs are in koha "package". images in cvs are in "koha-html" package at the moment. It's only because we still need some html files from koha-html. once we will be able to get rid of koha-html in cvs, we will move images to koha "package", under templates directory, and delete koha-html. Then we will modify the installer to move the templates directory into the htdocs. The idea being to keep only one "package" for koha, not 2 (koha & koha-html) as it is at the moment.
And also please remember the 'all'-directory! All images (and all other types of data as well) which are not specific to a language (e.g. images with no text on them), but are specific to a theme should go in [opac|intra]htdocs/<theme>/all/images.
yep. -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIBGB libre http://fr.koha.org)
Hi again, As the proposed directory structure is not implemented yet I'm still a bit lost about what I must translate exactly and how I must distribute it through current CVS tree. I think that the best could be if some/s kaitiaki/s could spent sometime in reorganice the whole CVS structure, even when it may means that development efforts on the CVS must be stopped for awhile. IMMO current chaos could be frustrating for whose, as me, haven't been here since early development stages and find difficulties about what, how and where must be the translations done. On Monday 02 December 2002 22:27, paul POULAIN wrote:
Dorian Meid a écrit:
once again:
Yes, images and templates will be in htdocs. The dirs are [opac|intra]htdocs/<theme>/<language>/images.
one again, i forgot it :-) So, i repeat : <total recall mode launching> images are stored in the same directory structure as templates. images are stored in the same directory structure as templates. images are stored in the same directory structure as templates. images are stored in the same directory structure as templates. images are stored in the same directory structure as templates. <total recall mode launched>
templates in cvs are in koha "package". images in cvs are in "koha-html" package at the moment. It's only because we still need some html files from koha-html. once we will be able to get rid of koha-html in cvs, we will move images to koha "package", under templates directory, and delete koha-html. Then we will modify the installer to move the templates directory into the htdocs.
The idea being to keep only one "package" for koha, not 2 (koha & koha-html) as it is at the moment.
And also please remember the 'all'-directory! All images (and all other types of data as well) which are not specific to a language (e.g. images with no text on them), but are specific to a theme should go in [opac|intra]htdocs/<theme>/all/images.
yep.
On Thu, Dec 05, 2002 at 11:01:56PM +0100, Francisco M. Marzoa Alonso said:
Hi again,
As the proposed directory structure is not implemented yet I'm still a bit lost about what I must translate exactly and how I must distribute it through current CVS tree.
I think I can clear this up All templates / images /includes Live in koha-tmpl .. in the koha CVS tree. so koha-tmpl/intranet-tmpl/theme/language/ koha-tmpl/opac-tmpl/theme/language The way you have set up es is fine koha-tmpl/opac-tmpl/default/es/ koha-tmpl/opac-tmpl/default/es/images koha-tmpl/opac-tmpl/default/es/includes What dorian was saying, and dorian correct me if im wrong Is that if you have images that dont need translatin such as holder.gif .. or something. It lives in koha-tmpl/opac-tmpl/default/all/images IE if its not language specific, there is no need to make it so. All work on translation is done in koha-tmpl Chris -- Chris Cormack Programmer 025 500 789 Katipo Communications Ltd chris@katipo.co.nz www.katipo.co.nz
Francisco M. Marzoa Alonso schrieb:
I've beginning translating templates to Spanish.
After doing a checkout of latest cvs source, I've simply copied /koha-tmpl/intranet-tmpl/default/en into /koha-tmpl/intranet-tmpl/default/es and begin translating strings within files.
Is this the right way?
Please take also care of the image's urls. At the moment most templates make use of the "old" images, which still are in <server-root>/images/ . Images witch are specific to the spanish language now should be in <server-root>/default/es/images/ (only for the default-theme of course). Images which are specific to the theme, but not to a certain language should be in <server-root>/default/all/images/ . In your code you may wish to substitute the words default/es with <TMPL_VAR NAME="themelang"> . Dorian
participants (5)
-
Chris Cormack -
Dorian Meid -
Francisco M. Marzoa Alonso -
Pat Eyler -
paul POULAIN