[Koha-devel] Trouble with CSS files after creating package with translations

Magnus Enger magnus at enger.priv.no
Fri May 27 14:46:31 CEST 2011


Hi!

I recently built my first debian package, based on the 3.4.x branch
from git, and with the addition of having installed translations for
the Nordic languages. (I'll write up the process of doing that on the
wiki, once I'm sure I have the correct steps.)

I used the Perl version of build-git-snapshot provided by attachment
4007 from bug 5602 to build the packages:
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5602
(I'll sign off on the patch once I see the resulting package working,
I promise! ;-)

After installing the package and creating a library I noticed that a
couple of CSS files are missing from the OPAC when it is viewed in any
language other then English, making it look weird:
http://esme.priv.bibkat.no/

Firebug tells me these two files can not be found, when the language
is not English:
http://esme.priv.bibkat.no/opac-tmpl/prog/en/lib/yui/reset-fonts-grids.css
- 404 Not Found
http://esme.priv.bibkat.no/opac-tmpl/prog/en/lib/yui/skin.css - 404 Not Found

But when I view the front page in English, those two files *are*
found, but from a different path:
http://esme.priv.bibkat.no/opac-tmpl/prog/en/css/reset-fonts-grids.css - 200 OK
http://esme.priv.bibkat.no/opac-tmpl/prog/en/css/skin.css - 200 OK

The contents of the css-folders for the two languages are quite different:

http://esme.priv.bibkat.no/opac-tmpl/prog/en/css/
[TXT]	colors.css	05-May-2011 20:59 	0 	
[TXT]	hierarchy.css	05-May-2011 20:59 	1.5K	
[IMG]	menu-button-arrow-disabled.png	22-May-2011 14:59 	173 	
[IMG]	menu-button-arrow.png	22-May-2011 14:59 	173 	
[TXT]	opac.css	22-May-2011 14:59 	34K	
[TXT]	print.css	05-May-2011 20:59 	3.1K	
[TXT]	reset-fonts-grids.css	22-May-2011 14:59 	5.0K	
[TXT]	sanop.css	05-May-2011 20:59 	28K	
[TXT]	sco.css	22-May-2011 14:59 	4.0K	
[TXT]	skin.css	22-May-2011 14:59 	84K	
[IMG]	split-button-arrow-active.png	22-May-2011 14:59 	280 	
[IMG]	split-button-arrow-disabled.png	22-May-2011 14:59 	185 	
[IMG]	split-button-arrow-focus.png	22-May-2011 14:59 	185 	
[IMG]	split-button-arrow-hover.png	22-May-2011 14:59 	185 	
[IMG]	split-button-arrow.png	22-May-2011 14:59 	185 	
[IMG]	sprite.png	22-May-2011 14:59 	3.0K	

(The en folder in the demo on mykoha.co.nz is identical to the folder above:
http://demo.mykoha.co.nz/opac-tmpl/prog/en/css/ )

http://esme.priv.bibkat.no/opac-tmpl/prog/nb-NO/css/
[TXT]	colors.css	22-May-2011 08:34 	0 	
[TXT]	hierarchy.css	22-May-2011 08:34 	1.5K	
[TXT]	opac.css	22-May-2011 08:34 	34K	
[TXT]	print.css	22-May-2011 08:34 	3.1K	
[TXT]	sanop.css	22-May-2011 08:34 	28K	
[TXT]	sco.css	22-May-2011 08:34 	4.0K	

The contents of the lib/yui directory are also different on a regular
dev install:
http://sksk.bibkat.no/opac-tmpl/prog/en/lib/yui/ (5 CSS files, 3
directories, 1 PNG)
and a packaged install:
http://esme.priv.bibkat.no/opac-tmpl/prog/en/lib/yui/ (lots of
directories, no CSS, no PNG)
http://demo.mykoha.co.nz/opac-tmpl/prog/en/lib/yui/

On a non-package (dev) install the contents of the corresponding
folders are the same for en and nb-NO - and they are the same as the 6
files listed for nb-NO above.
http://sksk.bibkat.no/opac-tmpl/prog/en/css/
http://sksk.bibkat.no/opac-tmpl/prog/nb-NO/css/

On a working non-package (dev) installation the files are taken from
the en folder, where they are indeed to be found:
http://sksk.bibkat.no/opac-tmpl/prog/en/lib/yui/
http://sksk.bibkat.no/opac-tmpl/prog/nb-NO/lib/yui/

On the virtual machine where I built the package, the contents of the
two css-directories are also the same, and they are the 6 files listed
for nb-NO above.

Looks to me like the packaging/packages is doing some rearranging of
the CSS files that only works for the English templates and not for
templates translated into other languages? Are there any package gurus
out there who are able to see what is going on?

Best regards,
Magnus Enger
libriotech.no


More information about the Koha-devel mailing list