I did some research and found out how to change the label of the application when you change the language in the device settings.
In the manifest, insert the line:
SetActivityAttribute("main", android:label, "@string/app_name")
SetActivityAttribute("main", android:configChanges, "locale")
Manifest:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetActivityAttribute("main", android:label, "@string/app_name")
SetActivityAttribute("main", android:configChanges, "locale")
'End of default text.
Then, in folder "Objects\res" create folders for languages, like this:
"values-de"
"values-en"
"values-fr"
"values-it"
"values-nl"
etc...
if you do not expect some languages, for default settings, insert a folder named "values".
In each folder insert an xml file, named "strings.xml" with this content:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Label to display</string>
</resources>
Change the string "Label to display" with the translated one.
Make all folder and file Read Only because b4a will delete!
cb56