Help needed for start page

Bruno Patri bruno.patri at gmail.com
Wed Nov 5 15:01:22 GMT 2008


Le Wednesday 05 November 2008 00:26:18 Matthew Nuzum, vous avez écrit :
> <Sorry for delay, I started this yesterday afternoon but the power in
> my house went out and I got kicked offline for several hours - by then
> it was bed time>
>
> 2008/10/30 Gabor Kelemen <kelemeng at gnome.hu>:
> > Perhaps a silly idea, but what is your locale?
> > Running LANG=en_US.utf8 ./localize.sh generated good looking html's for
> > me with several translations mailed previously to this list.
> > See them here:
> > http://delfin.unideb.hu/~kg0021/start/
>
> $ env | grep -i lang
> LANG=en_US.UTF-8
>
> I've also tried adding -utf8 to the tidy call. Using ru as an example I
> get:
>
> title>Ð"омашнÑÑ Ñтраница Ubuntu</title>

This is because po2html.py use tidy with acsii encoding as default option.

I fixed this bug by adding a missing argument in po2html.py, here's the modified 
script. 


You should overwrite /usr/share/pyshared/translate/convert/test_po2html.py
 with the new script, and regenerate HTML files with your localise.sh script. 
I've tested it and it works fine.

diff :

84c84
<             htmlresult = str(tidy.parseString(htmlresult))
---
>             htmlresult = str(tidy.parseString(htmlresult, 
**{'char_encoding': "utf8"}))



-- 
Bruno
-------------- next part --------------
A non-text attachment was scrubbed...
Name: po2html.py
Type: text/x-python
Size: 4456 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-translators/attachments/20081105/53ac64e2/attachment-0001.py 


More information about the ubuntu-translators mailing list