about translations...

ermannob
ermannob's picture

Joined: 2004-01-22
Posts: 28
Posted: Mon, 2007-01-08 10:45

Hi all,
I'm working on Italian translation for G2. (I'm the one in the list of last translators...)

In the past I used to write in po files characters like èéòàù... with html entities. Now I discovered that maybe it's not necessary... Am I right? Is enough that po file is in UTF8?

Thank you

-ermanno baschiera

 
joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Mon, 2007-01-08 10:50

hi!

1. Bud Spencer RULZ! :D

2. Yes, UTF8, no need for html entities (=not allowed;)

Theme Contest - Show your creativity : http://codex.gallery2.org/index.php/Gallery2:Theme_Contest

 
ermannob
ermannob's picture

Joined: 2004-01-22
Posts: 28
Posted: Mon, 2007-01-08 11:09

Hi,

Not so sure... In core plugin characters are ok, but (for example) in captcha and useralbum plugins they are not converted in html entities. Both po files are UTF-8. What's happening?

[EDIT] I mean, they should be converted in HTML entities, right? Those characters are not html compliant. [/EDIT]

Thanks

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-01-08 16:07

Do you have a specific example of a page that shows illegal or wrong characters in Italian?
And what browser are you using? Is your G2 embedded in another page? Do you override manually the charset declared by the page?

And no, the characters don't get converted to HTML entities, there's no need to.
We declare the charset (UTF8) and the content type text/html UTF8 as HTML and HTTP headers. UTF-8 characters are legal.

--------------
Enter the Gallery 2 Theme Contest today!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2007-01-08 18:17

[moved to translations forum]

 
ermannob
ermannob's picture

Joined: 2004-01-22
Posts: 28
Posted: Wed, 2007-01-10 13:18

Sorry valiant, I didn't see that the charset of the page is UTF8.

No, I have not any example where there are illegal characters... Everything works fine.

(I learned something!)

-erm