Skip to content

Instantly share code, notes, and snippets.

@mochiz
Created July 20, 2012 16:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mochiz/3151584 to your computer and use it in GitHub Desktop.
Save mochiz/3151584 to your computer and use it in GitHub Desktop.
Titaniumでアプリ名表記を変更する方法iOS+Android

Titaniumでアプリ名表記を変更する方法iOS+Android

2.1.0.GAで確認

iOSのアプリ名表記を変更

i18n/[ロケール]/app.xmlを用意する

# i18n/ja/app.xml    
<?xml version="1.0" encoding="UTF-8"?>
<resources>
  <string name="appname">アプリ名をここに</string>
</resources>

Androidのアプリ名表記を変更

i18n/[ロケール]/string.xmlを用意した上で、AndroidManifest.xml�(またはtiapp.xml)のandroid:labelで指定する。

# i18n/ja/strings.xml    
<?xml version="1.0" encoding="UTF-8"?>
<resources>
  <string name="appname">アプリ名をここに</string>
  ...
</resources>


# platform/android/AndroidManifest.xml
# android:label="YourApp" を android:label="@string/appname" に
...
<application android:icon="@drawable/appicon"
    android:label="@string/appname" android:name="YourApplication"
    android:debuggable="false">
    <activity android:name=".YourappActivity"
        android:label="@string/appname" android:theme="@style/Theme.Titanium"
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment