android - Internationalization in Manifest file -
i have label in manifest file has english text how can have them in other languages also.for e.g.
<activity android:name=".activity.mainmenuactivity" android:label="main menu options" android:configchanges="locale" > </activity>
i want covert lable persian text.how can it.please help.
just add label value in strings.xml exemple:
<?xml version="1.0" encoding="utf-8"?> <resources> <!-- string resources --> <string name="main_menu_activity">Ø¬Ø±Ø§Û Ø¨Ø±ÙØ§Ù
Ù ÙÙ
ÛâØªÙØ§Ù</string> </resources>
and call in manifest android:label="@string/main_menu_activity"
edit: menu item use this:
<menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/add" android:icon="@android:drawable/ic_menu_add" android:title="@string/mu_title_1"/> <item android:id="@+id/help" android:icon="@android:drawable/ic_menu_help" android:title="@string/mu_title_2"/> </menu>
Comments
Post a Comment