For Android, the main bundle path is set to the executable directory, which is something like /system/bin/app_process32. As a result, things like localized strings do not work.
This PR allows the bundle path to be set by the CFFIXED_USER_HOME environmental variable.
I then copy the files from the asset manager into the files directory. This includes Info.plist which configures the bundle identifier and development region, and en.lproj/Localizable.strings which contain the English strings.
Once these are in place, I can call NSLocalizedString to get the string.
For Android, the main bundle path is set to the executable directory, which is something like
/system/bin/app_process32
. As a result, things like localized strings do not work.This PR allows the bundle path to be set by the
CFFIXED_USER_HOME
environmental variable.In my case, I set this as follows...
I then copy the files from the asset manager into the files directory. This includes
Info.plist
which configures the bundle identifier and development region, anden.lproj/Localizable.strings
which contain the English strings.Once these are in place, I can call
NSLocalizedString
to get the string.