Author Topic: regarding lang files...  (Read 4466 times)

0 Members and 1 Guest are viewing this topic.

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
regarding lang files...
« 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!
Buddy Duke
www.budduke.com

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: regarding lang files...
« Reply #1 on: June 27, 2009, 09:27:46 PM »
did you change $lang['charset'] ?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: regarding lang files...
« Reply #2 on: June 27, 2009, 09:40:30 PM »
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
Buddy Duke
www.budduke.com

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: regarding lang files...
« Reply #3 on: June 27, 2009, 09:55:54 PM »
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
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: regarding lang files...
« Reply #4 on: June 27, 2009, 10:20:26 PM »
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
Buddy Duke
www.budduke.com

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: regarding lang files...
« Reply #5 on: June 27, 2009, 10:22:01 PM »
if your saved text is UTF8, then you should change charset to UTF8.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: regarding lang files...
« Reply #6 on: June 27, 2009, 10:40:06 PM »
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...
Buddy Duke
www.budduke.com