Tutorial: How to Support Multi language in Android using App Inventor | ...
Published sábado, 5 de noviembre de 2016 by Unknown inSupporting different languages in your Android App made with App Inventor. Help me and Like the video! Please :(
In programming is always a good practice to extract UI strings from your app code and keep them in an "external" file. In Android Studio or Eclipse having support for a Multi Language app is easy to make because of the resource folder " /res" . Within this res/ directory are subdirectories for various resource types. There are also a few default files such as res/values/strings.xml, which holds your string values in other words all the text used in your app in one file. So to add a different language you just duplicate one of the default languages XML file and translate all the strings inside of the app.
Unfortunately in App Inventor, to have an multi language app things work differently, but we can try to use some of the principles from Android Studio to support multi language .
The idea is to have an effective way to translate, or add more translations to our app with out lots of complications.
To achieve that we have to try to "extract" or in this case, to keep the UI strings organized and not directly inserted into the "main blocks code" ,the blocks that make our app interact with users, as much is possible. So we want to keep strings or texts away from the "code" .
I show you in this video the following ideas about Supporting different languages in your app and make it ready to add more languages and best of all EASYLY!!! By the way the app in the video supports 2 languages at the beginning, Spanish (default) and English.
🌟 1st. I show you How to organize your strings using list of lists.
🌟 2nd A result Procedure to simplify the process of storing and selecting strings
🌟 3rd I use 2 examples to show you the whole process adding 2 components to the app in the video, one with a Spinner with several elements, and the other one with an extra button.
🌟 4th I show you the process to add an extra language (Portuguese) using Google Translator and the procedures here shown.
Hope you find this tutorial useful and please don't forget to subscribe and share this video.
0 comentarios:
Publicar un comentario