Charset encoding problem with translations
Added by Miguel Pinto 11 months ago
Hi, I'm building an app with Zend Framework and i'm using elrte in my backend.
Every thing work the way i need execpt for the translations, i have my views set to UTF-8, as well as the translations files encoding.
I've translated elrte to portuguese and tested it and all special chars appear messed up, i thought maybe it was a problem with my editor but i've tried with the ES translation as well as the german one and got the same problem.
The only way i could get it to work, was going back to the elrte.pt.js and change all special chars with the HTML equivalent, ex:
ã becomes ã
ç becomes ¸
and so on...
Any way i can get with working without the hack?
Replies (11)
RE: Charset encoding problem with translations
-
Added by Troex Nevelin 11 months ago
Thanks for the translation!
Are you talking about translation itself or about content you put inside editor?
Can you please post screenshot to better understand us where is the problem?
RE: Charset encoding problem with translations
-
Added by Miguel Pinto 11 months ago
Thanks for the fast replay i'm talking about the translation it self, i attached an image.
And that is strange at least in the demo in spanish all looks ok, but in my app it dosent, check the image to see the legend (tooltip) for the buttons.
The example illustrate the problem i'm having with tooltips but the same happens with the image selection window inside elrte.
CapturaEcra-2.png - error in the tooltip (107.1 kB)
RE: Charset encoding problem with translations
-
Added by Troex Nevelin 11 months ago
What page encoding is used on your page? elRTE/elFinder work only with utf-8 encoding.
RE: Charset encoding problem with translations
-
Added by Miguel Pinto 11 months ago
The entire project is UTF-8 as Zend framework uses UTF-8 By default.
I've set my view files as UTF-8 as well.
Even the database is set to UTF-8, that is why i dont understand why the chars are showing messed up.
RE: Charset encoding problem with translations
-
Added by Miguel Pinto 11 months ago
Ok apparently i've solved the problem, i think my editor was changing the charset without i realize it, if anyone else has the same problem here is my solution (this worked fine for me):
http://www.iezzi.ch/archives/371
Thanks again, i'll be updating the Portuguese translation soon.
RE: Charset encoding problem with translations
-
Added by Troex Nevelin 11 months ago
Good you found the solution and sorry I had no time to check it myself. Usually before commiting translations to the projects I use dos2unix utility to convert line endings.
Thanks for website translation!
RE: Charset encoding problem with translations
-
Added by Miguel Pinto 11 months ago
you're wellcome, if you've got the documentation files ready to be translated as well, i can translate the documentation to portuguese.
And by the way my translation is for locale pt_PT not pt_BR, but brasilian's can read and understand pt_PT, there are a few differences as in en_UK and en_US, but both are portuguese.
RE: Charset encoding problem with translations
-
Added by Troex Nevelin 11 months ago
I know they are very similar.
Right now is not the best time to translate documentation for elFinder because next release 2.0 is on the way (and we prepare new website for elFinder), but elRTE probably still be version 1.x for next half year.
I have give you the right to edit Wiki pages, all elRTE wiki is only 4 pages:
Intro_PT
Docs_PT
JavaScript_API_PT
Download_PT
You can just click the links and start editing them, right now they contain English version.
Here is the link to all wiki pages
http://elrte.org/redmine/projects/elrte/wiki/index
That would be great contribution to the project, thanks for what you have already done!
RE: Charset encoding problem with translations
-
Added by Dmitry Levashov 11 months ago
Miguel, thanks for your help!
RE: Charset encoding problem with translations
-
Added by Miguel Pinto 11 months ago
Done wiki pages are now translated to portuguese as well.
RE: Charset encoding problem with translations
-
Added by Troex Nevelin 11 months ago
Thanks again Muguel, I'll update website shortly
(1-11/11)