Page 1 of 1

About Language [SOLVED]

PostPosted: 20 Jul 2012, 22:25
by Kuzucuk
Hi everybody, there is a problem about language translating

all Turkish special characters inside play.ttf
ğ, Ğ, ü, Ü ,ı, ş, Ş, ç, Ç, ö,Ö

and play1 and play2.png files has these character inside

but when i try to translate i cant see Turkish characters
sample:
"quit" i translated like "Çıkış" and this is result "k"

Image

Thanks i wish someone can help me:)

Re: About Language

PostPosted: 21 Jul 2012, 02:20
by idkblaze
Well i am complete noob to this stuff but it would be better if you could upload your play.ttf and your play1.png and play2.png...!

Re: About Language

PostPosted: 21 Jul 2012, 02:57
by qreeves
idkblaze {l Wrote}:Well i am complete noob to this stuff but it would be better if you could upload your play.ttf and your play1.png and play2.png...!

That's the font that is bundled with the game.

Re: About Language

PostPosted: 21 Jul 2012, 11:17
by sireus
Make sure menus.cfg is UTF-8 encoded. If it's in some local encoding (ISO 8859-9 or whatever), it won't work. Otherwise, it works for me: http://img4.imageshack.us/img4/7130/retrq.png

Re: About Language

PostPosted: 21 Jul 2012, 12:30
by Kuzucuk
sireus {l Wrote}:Make sure menus.cfg is UTF-8 encoded. If it's in some local encoding (ISO 8859-9 or whatever), it won't work. Otherwise, it works for me: http://img4.imageshack.us/img4/7130/retrq.png

there isn't anything about utf-8 or ISO. encoding inside menus.cfg
where is it? :/

Re: About Language

PostPosted: 21 Jul 2012, 13:38
by TheLastProject
Kuzucuk {l Wrote}:
sireus {l Wrote}:Make sure menus.cfg is UTF-8 encoded. If it's in some local encoding (ISO 8859-9 or whatever), it won't work. Otherwise, it works for me: http://img4.imageshack.us/img4/7130/retrq.png

there isn't anything about utf-8 or ISO. encoding inside menus.cfg
where is it? :/

As far as I know, encoding isn't based on a word or so in the file, you need to look at your text editor to see if it's saving it properly.

Re: About Language

PostPosted: 21 Jul 2012, 13:55
by Kuzucuk
TheLastProject {l Wrote}:
Kuzucuk {l Wrote}:
sireus {l Wrote}:Make sure menus.cfg is UTF-8 encoded. If it's in some local encoding (ISO 8859-9 or whatever), it won't work. Otherwise, it works for me: http://img4.imageshack.us/img4/7130/retrq.png

there isn't anything about utf-8 or ISO. encoding inside menus.cfg
where is it? :/

As far as I know, encoding isn't based on a word or so in the file, you need to look at your text editor to see if it's saving it properly.


sure... i was guest that and i installed office 2010 now:)

Re: About Language

PostPosted: 21 Jul 2012, 14:02
by Kuzucuk
I SOLVED PROBLEM! THANKS ALL REALLY HELPED ME!! :)

IF SOMEONE HAS SAME PROBLEM:
TRANSLATE WITH MICROSOFT OFFICE WORD AND UNICODE UTF-8

Re: About Language [SOLVED]

PostPosted: 21 Jul 2012, 14:24
by Sauer2
That's much of an overkill and Word (or any other text processor) isn't the right tool for the job, even if this worked out for you in this one special case :!:
Word supports different Encodings in an intransparent way and even this differs from Version to Version.
It should suffice to open the .cfg file in a sane text editor. I don't mean notepad.exe here, since Notepad adds the byte order mark (http://stackoverflow.com/questions/2223 ... ithout-bom) according to wikipedia and this might be the problem.

From your post i guess you are using Windows, so in your case Notepad++ (http://notepad-plus-plus.org/) should do the job. You may want to switch the encoding to "UTF8 without BOM" after opening the file in the program.
It also has a better startup time, which might feel better if you are impatient like me. ;)

Re: About Language [SOLVED]

PostPosted: 21 Jul 2012, 19:26
by Kuzucuk
Sauer2 {l Wrote}:That's much of an overkill and Word (or any other text processor) isn't the right tool for the job, even if this worked out for you in this one special case :!:
Word supports different Encodings in an intransparent way and even this differs from Version to Version.
It should suffice to open the .cfg file in a sane text editor. I don't mean notepad.exe here, since Notepad adds the byte order mark (http://stackoverflow.com/questions/2223 ... ithout-bom) according to wikipedia and this might be the problem.

From your post i guess you are using Windows, so in your case Notepad++ (http://notepad-plus-plus.org/) should do the job. You may want to switch the encoding to "UTF8 without BOM" after opening the file in the program.
It also has a better startup time, which might feel better if you are impatient like me. ;)

hmm thanks i will use notepadplusplus :)

Re: About Language [SOLVED]

PostPosted: 22 Jul 2012, 01:50
by Kuzucuk
but in source code same problem
i using Code::Blocks v10.05 for compiling

Re: About Language [SOLVED]

PostPosted: 22 Jul 2012, 09:34
by qreeves
Notepad++ for the win. Can't help you with the source code though, don't think C::B has an option for that.

Re: About Language [SOLVED]

PostPosted: 22 Jul 2012, 13:35
by sireus
Edit > File encoding > UTF-8 in the menu. On Linux, anyway.

Re: About Language [SOLVED]

PostPosted: 22 Jul 2012, 14:32
by qreeves
sireus {l Wrote}:Edit > File encoding > UTF-8 in the menu. On Linux, anyway.

Confirmed, also present in Windows builds. Thanks again, sireus.

Re: About Language [SOLVED]

PostPosted: 23 Jul 2012, 02:19
by Kuzucuk
sireus {l Wrote}:Edit > File encoding > UTF-8 in the menu. On Linux, anyway.

not work for windows:) and its alredy utf-8