Russian translation

blotunga
Flottenkapitän
Flottenkapitän
Beiträge: 855
phpbb forum styles
Registriert: Montag 26. Mai 2014, 15:05

Re: Russian translation

Beitrag von blotunga »

next time hat geschrieben:
ISO-8859-1 aka "Latin-1".
I've kept the original Windows encoding because I wanted it to be easy for changes to be exchanged between the original version and the Java version.
ISO-8859-1 doesn't have Cyrillic symbols, I think so.
What encoding should I use? What’s the best choice in this case?
(UTF-8, ISO-8859-5, CP-1251 or other...)
I'll try to look for a solution in this direction.
Take whatever suits you, I will adapt the code to use the encoding. I just hope the fonts have all the characters. Just notify me about what you've decided and I'll map it to "--lang=ru"
next time
Kadett
Kadett
Beiträge: 23
Registriert: Sonntag 10. Juli 2016, 05:08

Re: Russian translation

Beitrag von next time »

Take whatever suits you, I will adapt the code to use the encoding. I just hope the fonts have all the characters. Just notify me about what you've decided and I'll map it to "--lang=ru"
Great. UTF-8 or Windows-1251.
How can I test?
next time
Kadett
Kadett
Beiträge: 23
Registriert: Sonntag 10. Juli 2016, 05:08

Re: Russian translation

Beitrag von next time »

Windows1251 (=CP1251) rather than UTF-8, I assume.
blotunga
Flottenkapitän
Flottenkapitän
Beiträge: 855
Registriert: Montag 26. Mai 2014, 15:05

Re: Russian translation

Beitrag von blotunga »

next time hat geschrieben:
Take whatever suits you, I will adapt the code to use the encoding. I just hope the fonts have all the characters. Just notify me about what you've decided and I'll map it to "--lang=ru"
Great. UTF-8 or Windows-1251.
How can I test?
End of next week I'll be back from vacation, then I'll create a version for you to play around with, with support for the encoding.
blotunga
Flottenkapitän
Flottenkapitän
Beiträge: 855
Registriert: Montag 26. Mai 2014, 15:05

Re: Russian translation

Beitrag von blotunga »

next time hat geschrieben:Windows1251 (=CP1251) rather than UTF-8, I assume.
Ok, I've created a modified version for you which accepts --ru and for that assumes charset windows-1251 for the files inside data/ru
You can replace those with your translated files to test.
You can get it from here
next time
Kadett
Kadett
Beiträge: 23
Registriert: Sonntag 10. Juli 2016, 05:08

Re: Russian translation

Beitrag von next time »

Sorry. It doesn't work, displays incorrect.
I've used Wine to run on Linux.

Maybe UTF-8 or KOI8-R.
blotunga
Flottenkapitän
Flottenkapitän
Beiträge: 855
Registriert: Montag 26. Mai 2014, 15:05

Re: Russian translation

Beitrag von blotunga »

next time hat geschrieben:Sorry. It doesn't work, displays incorrect.
I've used Wine to run on Linux.

Maybe UTF-8 or KOI8-R.
Have you changed the charset of the files, I've left the original charset untouched. If you use linux you can use the bote launcher and jre from the linux version, just overwrite the desktop-xxx.jar and copy the data folder over to the one from itch.io. The main menu's texts are in the strings.xml. Convert the entire file to windows-1251. If it doesn't works than I will add a parameter to the game to use an option --charset="..." to make testing easier. UTF-16 would be probably the best...
blotunga
Flottenkapitän
Flottenkapitän
Beiträge: 855
Registriert: Montag 26. Mai 2014, 15:05

Re: Russian translation

Beitrag von blotunga »

I've just realized that changing the charset isn't enough. The fonts that I use don't support russian well, so we'll have to use for russian different fonts. Btw, I'd go with UTF8 for the text, I'll modify the game accordingly.
blotunga
Flottenkapitän
Flottenkapitän
Beiträge: 855
Registriert: Montag 26. Mai 2014, 15:05

Re: Russian translation

Beitrag von blotunga »

next time hat geschrieben:Sorry. It doesn't work, displays incorrect.
I've used Wine to run on Linux.

Maybe UTF-8 or KOI8-R.
For now I've overwritten the fonts with some that support russian, I'm not entirely happy with the main menu font, but for now it will do. The League Gothic is fine.
You can test using: ./bote --charset=utf8 --lang=ru --res=1440x810
You can download for Linux here and for Windows here
next time
Kadett
Kadett
Beiträge: 23
Registriert: Sonntag 10. Juli 2016, 05:08

Re: Russian translation

Beitrag von next time »

For now I've overwritten the fonts with some that support russian, I'm not entirely happy with the main menu font, but for now it will do. The League Gothic is fine.
I've installed League Gothic Cyrillic.
So, I've
1) downloaded the game, unpacked it,
2) opened the file 'buildings.txt' (data/ru/buildings),
3) 'Primitive Farm' (erased the phrase) = 'Простая ферма' (typed it),
4) saved the file 'buildings.txt' (utf-8, League Gothic Cyrillic),
5) started the game (double clicked the file 'bote').
You can test using: ./bote --charset=utf8 --lang=ru --res=1440x810
?
Dateianhänge
2016-09-05-210018_1024x768_scrot.png
2016-09-05-210018_1024x768_scrot.png (95.38 KiB) 13571 mal betrachtet
2016-09-05-210034_1024x768_scrot.png
2016-09-05-210034_1024x768_scrot.png (105.47 KiB) 13571 mal betrachtet
2016-09-05-210112_1024x768_scrot.png
2016-09-05-210112_1024x768_scrot.png (551.78 KiB) 13571 mal betrachtet
blotunga
Flottenkapitän
Flottenkapitän
Beiträge: 855
Registriert: Montag 26. Mai 2014, 15:05

Re: Russian translation

Beitrag von blotunga »

next time hat geschrieben: So, I've
1) downloaded the game, unpacked it,
2) opened the file 'buildings.txt' (data/ru/buildings),
3) 'Primitive Farm' (erased the phrase) = 'Простая ферма' (typed it),
4) saved the file 'buildings.txt' (utf-8, League Gothic Cyrillic),
5) started the game (double clicked the file 'bote').
You can test using: ./bote --charset=utf8 --lang=ru --res=1440x810
?
I've just tested with the same text, using utf-8 and for me it shows like in the picture.
Don't double-click BotE, use the parameters: --charset=utf8 --lang=ru
Use the 0.7.8 version that I've uploaded to my drive, only that one has variable charset and ru support.
Dateianhänge
russian.png
russian.png (1.1 MiB) 13569 mal betrachtet
next time
Kadett
Kadett
Beiträge: 23
Registriert: Sonntag 10. Juli 2016, 05:08

Re: Russian translation

Beitrag von next time »

I have removed that font and have installed League Gothic from the folder 'font' ('League Gothic.ttf'). The same result, characters look incorrect.
Zuletzt geändert von next time am Montag 5. September 2016, 18:56, insgesamt 1-mal geändert.
next time
Kadett
Kadett
Beiträge: 23
Registriert: Sonntag 10. Juli 2016, 05:08

Re: Russian translation

Beitrag von next time »

Don't double-click BotE, use the parameters: --charset=utf8 --lang=ru
Yes! :)
What should I do in order to use the parameters?
blotunga
Flottenkapitän
Flottenkapitän
Beiträge: 855
Registriert: Montag 26. Mai 2014, 15:05

Re: Russian translation

Beitrag von blotunga »

next time hat geschrieben:
Don't double-click BotE, use the parameters: --charset=utf8 --lang=ru
Yes! :)
What should I do in order to use the parameters?
Run a Linux terminal, go to where BotE is and run ./bote --charset=utf-8 --lang=ru

Or create a short script like this:
#!/bin/sh
./bote --charset=utf-8 --lang=ru

Save it, make it executable and run it.
next time
Kadett
Kadett
Beiträge: 23
Registriert: Sonntag 10. Juli 2016, 05:08

Re: Russian translation

Beitrag von next time »

It works. Thanks.
:D :D
Antworten

Zurück zu „BotE Android Translations“