2017년 5월 31일 수요일

Yandex Translate - how to translate full app


We're trying to make an app that a user selects the language before beginning and then the app is translated for the user throughout. 

Using Yandex Translate, here's what we did so far:

1. Set a variable called "global languageCode"
2. Created a Spinner to select the language with multiple languages listed
3. Called the Yandex Translate

How do we get that call to propagate to all pages?

--
generally use TinyDB to pass values between screens

but the question is, why do you need different screens?

Use different screens wisely
Before starting to create another screen, first you should think about is it really necessary? See also Building apps with many screens and SteveJG's post about advantages/disadvantagesbecause in only one screen you also can use vertical arrangements to simulate different screens, just set the arrangements to visible = true/false as needed... See also Martyn_HK's example about how to use Tabs in App Inventor and another example from Cyd.
The recommended method of switching screens in App Inventor
manager.aia
--

댓글 없음:

댓글 쓰기