(Redirected from Viewer Language (block))
This block can be used with the translate () to () block, to translate to or from the end user's set language.
- Showing text in the project viewer's language:
say (translate [This text will appear in your language] to (language:: translate):: translate)
- To inform the user that the project doesn't support their language:
when green flag clicked if <not <(language ::translate) = [English]>> then say (translate [Please note that this project only supports English, which may not be your language.] to (language ::translate) ::translate) for (7) seconds end broadcast (start the project v)
- Confirming if the language set is actually their main language.
. . . ask (join (join [So your language is ](language::translate))[?]) and wait if <(answer) = (translate [yes] to (language::translate)::translate)> then set [language v] to (language::translate) broadcast (continue v) else ask [Then what is your language?] and wait set [language v] to (answer) broadcast (continue v)
- Speaking in the user's language
when gf clicked set language to (language::translate) speak (translate [Hello!] to (language::translate))