Difference between revisions of "Dynamic Language Translation"

From Lianjapedia
Jump to: navigation, search
Line 4: Line 4:
  
 
=App Settings=
 
=App Settings=
 +
The following [[App Settings]] are available in 'General App Configuration' to configure automatic language translation.
  
 
==Enable user translate==
 
==Enable user translate==
 +
Set to True to enable user translation in web/mobile/tablet Apps.
 +
 +
When True and [[#Enable google translate|Enable google translate]] is also True, a flag representing the current language is displayed in the Page Header.  Clicking the flag displays a pulldown list of languages for user selection.
  
 
==Enable text translator==
 
==Enable text translator==
 +
Set to True to enable text translation in web/mobile/tablet Apps.  This enables dynamic language translation of captions in the UI.
  
 
==Enable google translate==
 
==Enable google translate==
 +
Set to True to enable Google translate in web/mobile/tablet Apps.  This enables dynamic language translation of captions in the UI.
 +
 +
When True and [[#Enable user translate|Enable user translate]] is also True, a flag representing the current language is displayed in the Page Header.  Clicking the flag displays a pulldown list of languages for user selection.
 +
 +
=Lianja.switchLanguage()=
 +
The Lianja.switchLanguage(code) system object method is available in the Lianja Web Framework (web, mobile).  It switches the applicable UI text to the language code specified.
 +
 +
The language code is the [https://cloud.google.com/translate/docs/languages two letter ISO 639-1 code].  e.g.
 +
 +
<code lang="javascript">
 +
Lianja.switchLanguage("de");
 +
</code>
 +
 +
The App must have [[#Enable google translate|Enable google translate]] set to True.
  
 
[[Category:Lianja v5.5]]
 
[[Category:Lianja v5.5]]
 
[[Category:Localization]]
 
[[Category:Localization]]

Revision as of 07:41, 3 November 2020

Under construction, coming soon in v5.5

Overview

App Settings

The following App Settings are available in 'General App Configuration' to configure automatic language translation.

Enable user translate

Set to True to enable user translation in web/mobile/tablet Apps.

When True and Enable google translate is also True, a flag representing the current language is displayed in the Page Header. Clicking the flag displays a pulldown list of languages for user selection.

Enable text translator

Set to True to enable text translation in web/mobile/tablet Apps. This enables dynamic language translation of captions in the UI.

Enable google translate

Set to True to enable Google translate in web/mobile/tablet Apps. This enables dynamic language translation of captions in the UI.

When True and Enable user translate is also True, a flag representing the current language is displayed in the Page Header. Clicking the flag displays a pulldown list of languages for user selection.

Lianja.switchLanguage()

The Lianja.switchLanguage(code) system object method is available in the Lianja Web Framework (web, mobile). It switches the applicable UI text to the language code specified.

The language code is the two letter ISO 639-1 code. e.g.

Lianja.switchLanguage("de");

The App must have Enable google translate set to True.