How to configure multiple languages

ThumbsUp Survey • November 9, 2024 • 2 years ago

By default, ThumbsUpSurvey is using English as the default language. And until now (v1.4.0), it was the only language available. But now, we support more languages. In this article, we’ll check how we can configure more than one languages.

When it comes to the Survey Builder, by default, there’s no visible change at all. The first change we see is in the advanced settings, where we can see the options for default and other languages:

Default language

This is the default settings; English as “default language” and no other languages selected. The idea of the “default language” compared to the other languages, is that in case we don’t define the language being used, it will use the “default language”. More for this, below on this article.

Starting with the default language, you can change it to your preference, even if it’s just one language you’re using. This is used, not only for statistical purposes, but also for the default labels and messages. So, the “Submit form” label will become “Formular senden” if you select German or “Soumettre le formulaire” in case of French.

Besides that, just switching the default language is the easiest change you can do and nothing else is necessary. The system will use your selected “default language” by default and that’s it.

Adding more languages

Before we see how we can add more languages, keep this in mind:

If you want to add more languages, all you have to do is to select which extra languages you want to have. For the sake of our example, let’s select Italian. As soon as you select Italian, two things will happen:

First, the Italian language is selected. Quite obvious. The second though, as you can see on the image, top left, there’s something new there: the language selector.

Before we use it, let’s fill up the survey with a few blocks, using the default language:

Now, it’s time to switch language. So, let’s click on the Language menu on the top of the blocks, to the Italian one. At this point, all fields will be empty (since we’re in the Italian version) but all placeholders are using the default (English in our case) options, to help us with the proper translations:

Let’s fill up the values and save the survey. And, that’s it! We have our first multilingual survey!

Preview on multiple languages

Now that we have added two languages, it’s time to preview them and see if it correlates with what we have done. By default and when we have only one language, the “preview” button is quite simple:

But on multiple languages, the preview language is synced with the selected language on the editor:

And like this, we can see the survey on each language:

And this is how we configure and test a survey in multiple languages! In next articles, we’ll see how can call the survey on each language, how we can autodetect the language (WordPress only) and how we can use some custom Javascript code to set the correct language for the survey.