Skip to main content
June 21, 2011
Question

Localize app name for AIR-Android app

  • June 21, 2011
  • 2 replies
  • 2047 views

Hello,

I need to localize the name of the application I'm bulding in AIR for Android platform.

I tried to specify different app names in the application.xml : (doc http://adobe.ly/mpo0av)

<name>

    <text xml:lang="en">Hello AIR</text>

    <text xml:lang="fr">Bonjour AIR</text>

    <text xml:lang="es">Hola AIR</text>

</name>

But the application won't install anymore on the device when the APK is created using this application.xml.

It works when I revert to a simple <name>Hello AIR</name> node.

Does someone has an idea how can I localize the AIR android app name please ?

Thank you,

Alex

This topic has been closed for replies.

2 replies

appandrew
Inspiring
August 26, 2011

Hi,

I just published an Adobe AIR 2.7 multilanguage app (English and German) via the Android Market:

https://market.android.com/details?id=air.Kuckuck_MULTI&feature=search_result (BTW, please download and rate, it's free and kids love it)

It was easy to put the English and German app names ("Frankie Frog" and "Kuckuck") and the descriptions in both languages  into the Android Market, using the web interface.

All worked well, the informations for the published app appears in German in the German Android Market and e.g. in English in the US Android Market.

But:

When you download the app onto your device, the app name always is the English name "Frankie Frog", even in Germany!

What happened:

This is the XML file from Flash Pro CS5.5 for the app:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<application xmlns="http://ns.adobe.com/air/application/2.7">

    <id>Kuckuck-MULTI</id>

    <versionNumber>1.0</versionNumber>

    <filename>App_Kuckuck_MULTI_2.7.1_32</filename>

    <description></description>

    <!-- To localize the name, use the following format for the name element. -->

    <name>

        <text xml:lang="de">Kuckuck</text>

        <text xml:lang="en">Frankie Frog</text>

    </name>

...

As you can see, I put the different names into the <name> section.

This method works fine with iOS, on e.g. my iPad the name changes when I switch the country preferences.

But on Android, it doesn't work. This is the AndroidManifest.xml, I pulled it from the APK using APKTool:

<?xml version="1.0" encoding="utf-8"?>

<manifest package="air.Kuckuck_MULTI" android:versionCode="1000000" android:versionName="1.0"

  xmlns:android="http://schemas.android.com/apk/res/android">

    <application android:label="Frankie Frog" android:icon="@drawable/icon">

        <activity android:theme="@style/Theme.NoShadow" android:label="Frankie Frog" android:name=".AppEntry" ...

...

As you can see, the android:label is set to "Frankie Frog". I expected something like

<application android:label="@string/application_name" ...

because the label should be localized and the different app names should have been placed in strings.

Is there a solution for this problem? And thanks for reading this!

June 24, 2011

Anyone ?

I used a generic app name for the moment, but I really need a correct solution...

Thx

hellojohnny
Participant
July 24, 2011