General Information


With Purple DS apps you have the option, to display the app menu in the users' device language.




Instructions



The app menu can be edited in the dynamic content folders of your app. There you will find the file app_menu.xml. You can edit this file with an HTML editor.


We will show you how to make an app menu multilingual using the example of an entry for a bookmark in the app menu.



<navigationNode targetURL="purple://app/bookmarks/open">


    <title>bookmark</title>


    <iconURL>menuicons/bookmarks.png</iconURL>


</navigationNode>


The only thing that is important for a multilingual menu here is the tag "title". In this segment, another title entry can be added using the country code and the value "locale".


If you would like to offer English and French versions for example, the following entries are required: 


The two letter language codes, in our case "en" and "fr"

The translated words for the titles ( Bookmarks and Signets )


Here's the result:


<navigationNode targetURL="purple://app/bookmarks/open">

<title>Lesezeichen</title>

<title locale="en">Bookmarks</title>

<title locale="fr">Signets</title>

<iconURL>menuicons/bookmarks.png</iconURL>

</navigationNode>



By applying the same principle, you can set up all menu items in multiple languages.