Android app name localization problem

In iOS , we can modify

build.settings file , add iphone specific  InfoPlist.strings  to set CFBundleLocalizations for different application name under different language, e.g.
iphone = {

plist = {

        CFBundleLocalizations={

            “en”,

           “zh-Hans”,

            “zh-Hant”,
    },

 

    },

}   Is there any equivalent setting in Android ?

I want to make my Android app displays its app name based on the Android system language. What should I do?

Hey Edward,

I have the same problem in here, i need to change the appName(label on the Android Manifest) for different localizations. 

For iOS, i just add the folder en.lproj and pt.lproj on the app root folder, and inside i add the InfoPlist.strings file.

How can i accomplish the same for Android?

Have you resolved your problem Edward?

+1

For Corona Simulator builds, you cannot build one APK whose app name supports multiple languages.  Your only option is to build an APK for every language you want to support, changing the app name to the localized name.

For Corona Enterprise users, yes, this is possible.  You’re building the app with the Android SDK, so you localize the app name according to Google’s documentation here…

   http://developer.android.com/guide/topics/manifest/application-element.html#label

   http://developer.android.com/guide/topics/resources/localization.html

This involves setting your localized app names within a “strings.xml” file under your Android application project’s “res/values” directory and then having your AndroidManifest.xml file’s <application android:label="…"> attribute reference that string.  Google has example on how to do this.

Hey Edward,

I have the same problem in here, i need to change the appName(label on the Android Manifest) for different localizations. 

For iOS, i just add the folder en.lproj and pt.lproj on the app root folder, and inside i add the InfoPlist.strings file.

How can i accomplish the same for Android?

Have you resolved your problem Edward?

+1

For Corona Simulator builds, you cannot build one APK whose app name supports multiple languages.  Your only option is to build an APK for every language you want to support, changing the app name to the localized name.

For Corona Enterprise users, yes, this is possible.  You’re building the app with the Android SDK, so you localize the app name according to Google’s documentation here…

   http://developer.android.com/guide/topics/manifest/application-element.html#label

   http://developer.android.com/guide/topics/resources/localization.html

This involves setting your localized app names within a “strings.xml” file under your Android application project’s “res/values” directory and then having your AndroidManifest.xml file’s <application android:label="…"> attribute reference that string.  Google has example on how to do this.

Ok, but how can i link different builds to different localization on developer console? 

Or you are telling me, that i need two separate projects? In this case, i lose the advantages in download numbers and app use.

I think it would be easier to only have one build that supports multiple languages, provided that it won’t make the APK too big of course.  My point was don’t worry about what languages Google Play thinks your app supports.  On the Google Play developer console, you have to opt-in to what regions your app supports with localized summary pages.  So, the localized app summary pages that end-users see implies that your app supports that region’s language.

Ok, but i guess i am missing something. I need at least, that the user from America downloads the version that display an English DisplayName, and the Brazillian user download the version that shows a portuguese displayName. Can i accomplished that, or solve this somehow with Corona SDK pro?

I used to have Enterprise account, 'cause i needed to use expansion files, but since you implemented this on the Pro version I downgraded my licence, in Enterprise i know it is possible without different builds.

Oh, I see.  I misunderstood your question.

There is currently no means of localizing an Android app’s name in Corona.  The only way to do this is by doing a separate Android build like you were saying.  There is no way for us to do this with a Pro/Starter version of Corona because the Corona Simulator uses pre-built APKs, making it impossible for us to add new string resources to the Android project because that would require a recompile (it involves the Android SDK to generate a new R.java file).

Ok, but i can make separate builds. That is not a problem at all.

But do you know how can i link those builds to their respective languages on Android console? Or i need to create separate App Profiles as well.

I’m trying to create in the same App Profile to keep the synergy on the national downloads and international downloads that improve the SEO of the App. Do you know if this is possible?

Hmm… I think you’re right.  I can’t find a way to do it.  I know that the Google Play developer console allows multiple APKs to be uploaded if you put it into “Advanced Mode” as described here…

   http://developer.android.com/google/play/publishing/multiple-apks.html

But it doesn’t allow multiple APKs with the same AndroidManifest.xml configuration.  That’s a problem if you want to upload different localized versions.  Unless you can find a way to do it.

This only works if you’re doing native development via Corona Enterprise.  There is no way to do this via Corona Simulator builds for the reasons I’ve mentioned up above.

Ok, but how can i link different builds to different localization on developer console? 

Or you are telling me, that i need two separate projects? In this case, i lose the advantages in download numbers and app use.

I think it would be easier to only have one build that supports multiple languages, provided that it won’t make the APK too big of course.  My point was don’t worry about what languages Google Play thinks your app supports.  On the Google Play developer console, you have to opt-in to what regions your app supports with localized summary pages.  So, the localized app summary pages that end-users see implies that your app supports that region’s language.

Ok, but i guess i am missing something. I need at least, that the user from America downloads the version that display an English DisplayName, and the Brazillian user download the version that shows a portuguese displayName. Can i accomplished that, or solve this somehow with Corona SDK pro?

I used to have Enterprise account, 'cause i needed to use expansion files, but since you implemented this on the Pro version I downgraded my licence, in Enterprise i know it is possible without different builds.

Oh, I see.  I misunderstood your question.

There is currently no means of localizing an Android app’s name in Corona.  The only way to do this is by doing a separate Android build like you were saying.  There is no way for us to do this with a Pro/Starter version of Corona because the Corona Simulator uses pre-built APKs, making it impossible for us to add new string resources to the Android project because that would require a recompile (it involves the Android SDK to generate a new R.java file).

Ok, but i can make separate builds. That is not a problem at all.

But do you know how can i link those builds to their respective languages on Android console? Or i need to create separate App Profiles as well.

I’m trying to create in the same App Profile to keep the synergy on the national downloads and international downloads that improve the SEO of the App. Do you know if this is possible?

Hmm… I think you’re right.  I can’t find a way to do it.  I know that the Google Play developer console allows multiple APKs to be uploaded if you put it into “Advanced Mode” as described here…

   http://developer.android.com/google/play/publishing/multiple-apks.html

But it doesn’t allow multiple APKs with the same AndroidManifest.xml configuration.  That’s a problem if you want to upload different localized versions.  Unless you can find a way to do it.

This only works if you’re doing native development via Corona Enterprise.  There is no way to do this via Corona Simulator builds for the reasons I’ve mentioned up above.

Seems like you guys should think harder about how to do this … it can be done using command line tools … can’t you give us some GUI support for multiple languages on android and then use the command line tools to unpack and repack the apk and then resign it with the info we already gave you.

Supporting multiple languages needs to be made easy … what has to be done currently is not a solution … it is a hack at best.

Please figure this out for us all.