Page 1 of 1

How to localize UI

PostPosted: 01 Nov 2016, 03:38
by hhuimie
Don't wanna translations in code,is there an easy way to localize ui?
Only got a few msg in res/languages/en-US.properties
Code: Select all
language.name = English (US)

splash.loading.examining-cards = Loading cards, examining folder
splash.loading.cards-folders = Loading cards from folders
splash.loading.cards-archive = Loading cards from archive
splash.loading.decks = Loading decks...
Or could someone give me the complete en-US.properties file?
Thanks!

Re: How to localize UI

PostPosted: 02 Nov 2016, 05:10
by KrazyTheFox
We ran into problems building the Android version when a localization library was included in the software. This could probably still be done, but it would take time to build an appropriate solution.

Re: How to localize UI

PostPosted: 02 Nov 2016, 08:48
by Hanmac
the GUI itself might be translatable, i might look how that could be done.

but for the Cards and InGame there are currently many hard coded strings, or worse generated ones.

for the Keywords i did, one of the reasons i did the changes are about using the Keyword Enum was having the format strings as ReminderText.
because of the Format Strings they might be more easy to port to other languages.

i think it would be possible to localize that too, but it probably would take much work.

Re: How to localize UI

PostPosted: 02 Nov 2016, 15:10
by hhuimie
Hanmac wrote:the GUI itself might be translatable, i might look how that could be done.

but for the Cards and InGame there are currently many hard coded strings, or worse generated ones.

for the Keywords i did, one of the reasons i did the changes are about using the Keyword Enum was having the format strings as ReminderText.
because of the Format Strings they might be more easy to port to other languages.

i think it would be possible to localize that too, but it probably would take much work.
Waiting for it.
I think a translatable GUI make it easier to promote and more friendly to the people not good at English.

Re: How to localize UI

PostPosted: 03 Nov 2016, 07:21
by hhuimie
I just looked at the source, it seems that all strings are hard coded? not reference?

If so, localization will be very cumbersome.. :( :(