How to localize UI
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
How to localize UI
by hhuimie » 01 Nov 2016, 03:38
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
Thanks!
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...
Thanks!
- hhuimie
- Posts: 3
- Joined: 01 Nov 2016, 03:27
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to localize UI
by KrazyTheFox » 02 Nov 2016, 05:10
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.
-
KrazyTheFox - Programmer
- Posts: 725
- Joined: 18 Mar 2014, 23:51
- Has thanked: 66 times
- Been thanked: 226 times
Re: How to localize UI
by Hanmac » 02 Nov 2016, 08:48
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.
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
by hhuimie » 02 Nov 2016, 15:10
Waiting for it.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.
I think a translatable GUI make it easier to promote and more friendly to the people not good at English.
- hhuimie
- Posts: 3
- Joined: 01 Nov 2016, 03:27
- Has thanked: 0 time
- Been thanked: 0 time
Re: How to localize UI
by hhuimie » 03 Nov 2016, 07:21
I just looked at the source, it seems that all strings are hard coded? not reference?
If so, localization will be very cumbersome..
If so, localization will be very cumbersome..
- hhuimie
- Posts: 3
- Joined: 01 Nov 2016, 03:27
- Has thanked: 0 time
- Been thanked: 0 time
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 76 guests