Localization on iOS


#1

Has anyone managed to localize their iOS app using the newish TRANS macro in juce, so that the language displayed matches the language settings of the phone?


#2

Yeap, I'm not sure how Jules uses this macro himself, but what I did was I wrote a python script that parses out all the text surrounded by the trans macro and writes it to a property file with a default where the key equals the value.  If the property file exists already, it just updates the file with the new keys and doesn't overwrite any existing translations.  Whenever there are any variables that need to be replaced in a display string, I've been using the String replace method to actually do so like this: TRANS("Loading preset '$1'").replace("$1", preset->getName())