Sheco / cdda-itembrowser

Cataclysm DDA: Item Browser
MIT License
25 stars 10 forks source link

Is it possible to change language of the database? #14

Open devilstars opened 8 years ago

devilstars commented 8 years ago

Hello!

Is it possible to change language of the database? For example we have a client with russian language.Can i somehow make this item database with russian names, descriptions and etc...?

devilstars commented 8 years ago

Anyone? Is it possible to parse language files so that database could be translated automatically?

Sheco commented 8 years ago

Hello, sorry I hadn't responded.

I don't know how the game currently handles internationalization, I only read the json files directly and it only has english strings there, if there are extra language files to translate these english strings, we would have to add extra code to match these translations.

devilstars commented 8 years ago

Language files are located here - https://github.com/CleverRaven/Cataclysm-DDA/blob/master/lang/po/ Is it possible to do anything with them?

Sheco commented 8 years ago

Interesting, while it is certainly possible to use those gettext translation files, a considerable amount of work is needed to update the item browser to translate all the strings, additionally we might also want to use standard translatable strings for the static text.

On top of that, we would want to add a "language" option to the web interface, to the visitors can switch to the desired language.

This is definitely something that would be great on the item browser, but I don't think I have the time to write this right now.