Languages - a little buggy Joomla :)
Posted: Sun Mar 04, 2012 10:01 pm
Hi guys,
I faced one small bug which, kills some amount of my nerves and some time. I want to use some joomla functionality to get my joomla module work on different languages. So , I wrote some ini files with translation texts and put them on right place.
When I opened page where shoud appear my translated texts I faced that some texts are translated and some aren't. It was so strange.
After some time I tried to shift all texts in my language ini file one line down. So , all my texts was translated correctly. It's a Magic !!!
Actually when we save files in utf-8 or unicode format - editors at first 2 bytes store special information - which identifies that theses files are utf8 or unicode files ... these 2 bytes are some ascii sumbols which we can't see. Due to this first line of ini file is unusable when we want to put there translation.
I Hope that Joomla guys can fix this issue .. if not - that they will write in documentation in upper case - "DO NOT USE" first line of ini files to put there translation texts.
I faced one small bug which, kills some amount of my nerves and some time. I want to use some joomla functionality to get my joomla module work on different languages. So , I wrote some ini files with translation texts and put them on right place.
When I opened page where shoud appear my translated texts I faced that some texts are translated and some aren't. It was so strange.
After some time I tried to shift all texts in my language ini file one line down. So , all my texts was translated correctly. It's a Magic !!!
Actually when we save files in utf-8 or unicode format - editors at first 2 bytes store special information - which identifies that theses files are utf8 or unicode files ... these 2 bytes are some ascii sumbols which we can't see. Due to this first line of ini file is unusable when we want to put there translation.
I Hope that Joomla guys can fix this issue .. if not - that they will write in documentation in upper case - "DO NOT USE" first line of ini files to put there translation texts.