Hello,
I want to set language depends on the settings, for intance if user has set English I show my app labels, buttons, etc in English. I already do with the buttons and labels, however when I try to apply in the actionBar I get this: ALLOY_EXPR--L('actionPet'), I am doing it in android so I have my files platform/android/res/values-en and values-es.
My tss is:
'#actionPet': { icon: '/actionicon.png', displayHomeAsUp: true, title: L('actionPet') //backgroundImage: "/actionbackground.png" }My index.xml is:
<Alloy> <Window id="pet" class="container" layout="vertical" theme="Light" > <!--MENU --> <ActionBar id="actionPet" /> <!-- onHomeIconItemSelected="onClick"--> <Menu> <MenuItem title="Nuevo" onClick="galeria" /> <MenuItem title="verMascota" onClick="verMascota"></MenuItem> </Menu> <!--END MENU --> <View> <TableView id="table" onClick="openDetail"></TableView> </View> </Window> </Alloy>And my string.xml is: (Only for english for this example)
<?xml version="1.0" encoding="UTF-8" ?> <resources> <string name="lblUsuario">username</string> <string name="lblPassword">password</string> <string name="btnSignIn">Sign in</string> <!-- ActionBars --> <string name="actionPet">My Pet</string> </resources>
Do you have any thoughts to solve this issue?
I already set directly the title from the .tss file and works, I already check many times the names and all match.
Thank you in advance for any help.