4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: budduke on June 27, 2009, 09:18:16 PM
-
What am I overlooking????
I thought I could easily copy translated words from English to Russian into the Russian lang folder but nooooo way...
Here is what I tried...
I went to google's translate, put in my English sentence, clicked translate, copied translated sentence, pasted it in the Russian language file and it displayed all ?????????????????? for the sentence.
I then went to bing.com translator and it copied the data better but still not right.
I then opened the lang file in regular windows notepad, pasted the info into the file, it looked correct.
when I went to save it, it says I needed to save it as unicode format and I said yes.
Then the entire file from top to bottom was destroyed with all sorts of weird characters and nothing on the webpage was displayed correctly anymore so I had to revert back to the original lang file...
What am I not doing correctly and what is the proper way of doing this?
thanks for any help!
-
did you change $lang['charset'] ?
-
No,
I just added my own variables at the end of the russian main.php file.
When I pasted the russian translation in the file that is when everything happened.
So I gave up trying until I can figure out what I am doing wrong
-
you must set proper charset in $lang['charset']
plus, don't use notepad or wordpad because if it saved in UTF8, then you must use another text editor can save without BOM
-
I use notepad++, it seems to get around most of the strange stuff...
I looked in the russian file that I am modifying and it says...
$lang['charset'] = "windows-1251";
my english file says
$lang['charset'] = "iso-8859-1";
how should I paste converted text into this Russian file without any issues?
Thanks V@no, you have always been a big help
-
if your saved text is UTF8, then you should change charset to UTF8.
-
I tried changing the charset in the russian file to utf8 and iso-8859-1
I tried all ways of saving the file in my editor but no good...
Loosing brain cells over this one, I thought maybe it would be easy.
Is there a good editor for charset windows-1251 ?
I think I will just stick with the english files and let someone else worry about translating them...