You can now upload translations for any ThingLink scene you create instead of creating multiple versions of each scene.
Preparing & uploading translations
- Start editing the scene, then go to in-editor settings and click 'Download sample' under 'Upload translations':
This will download a JSON file that will contain all text strings from this scene. - Open the JSON file using any text editor. The file contains presets for translations in German ("de"), Spanish ("es") and French ("fr"). The text is structured as follows:
{
In the example above, if you wanted to add a German translation for text string 1, you'd enter it in quotation marks after the original text string like this:
"de": {
"Original_text_string_1": "Enter_translated_text_string_1_here",
"Original_text_string_2": "Enter_translated_text_string_2_here"
},
"es": {
"Original_text_string_1": "Enter_translated_text_string_1_here",
"Original_text_string_2": "Enter_translated_text_string_2_here"
},
}{
If you want to add another language, copy one of the presets then replace the language code and translations (e.g. copy the German preset with the "de" code and replace it with "fi" for Finnish, then replace the translated text strings).
"de": {
"Strait of Gibraltar": "Straße von Gibraltar"}
} - Go back to the scene and upload the updated JSON file. If you need to update the translation, simply upload an updated JSON file.
Tips & notes
- If a text string is not translated, ThingLink will show the original text string instead.
- Answers in poll tags are separated with \n. For example, if your poll tag has two answers - South America and Australia - put a \n between the translated answers, e.g. Etelä-Amerikka\nAustralia:
{
"fi": {
"Where should we go next time?": " Minne meidän pitäisi mennä ensi kerralla?",
"South America\nAustralia": "Etelä-Amerikka\nAustralia",
},
- If you are creating a tour, you'll need to translate each scene separately.
- You can change the URLs inside text & media tags or embed tags to lead to translated web pages. In the example below, the link button in the original version leads to a Wikipedia article in English, while the link button in the Finnish version leads to the Finnish version of the same article.
Sharing translated versions
Once you've uploaded the translation, exit the editor then click 'Share' and open the 'Embed on website' tab. Use the language selector at the bottom of the popup window to select which language version you'd like to embed:
Examples
Here's the original scene in English (link):
And here's the translated version in Finnish (link):
Limitations
- Translations do not work with scenarios yet.
- Translations do not work with the accessibility player yet. The accessibility player will always use the original language.
- Questions & answers for conditional transitions cannot be translated.
- The translation file cannot be longer than 16000 characters. This limit might be increased in the future.
If you have any questions or suggestions, please contact our team.
Comments
0 comments
Please sign in to leave a comment.