Simulate translations
You can simulate translation in Rigi, for example, to:
check what the application looks like with longer texts.
ensure that the texts in the language with Rigi tokens are longer so that the captured HTML Previews use more space. This is especially useful if the previews are not resized, such as for WPF and mobile apps.
To simulate translation, perform the following steps:
Open the required project.
In the project menu, select Workspace > Files.
From the Advanced dropdown in the top right-hand corner, select Simulate translation.
The Simulate translations popup will be displayed.
(Optional) Select another language for the simulated translation.
The language selection will only affect the file’s name, not its content.
Configure the following settings for the simulated translation:
Percentages. Use these fields to make translations longer, depending on the length of the source text. This can be used to see what happens if the application is translated into a language in which texts are usually longer than in the source language (for example, the German translation for the 4-character word "Undo" is "Wiederherstellen").
Prefix and postfix. Enclose the simulated translations in special characters. This helps to detect hardcoded and concatenated strings.
Expansion characters. These characters will be used to lengthen translations. By default, there is one character, '-'. However, it is possible to enter a sequence, such as 'ABC', or special characters.
Group size. The number you enter in this field will define the maximum length of the ‘word’ created with expansion characters.
Example 23. ExampleIf the expansion character is set to '-' and the group size is set to '5', the simulated translation can either look like 'source text ----- ----- -----' or 'source text ----- --', depending on the length-increase percentage values set above.
To specify that you want Rigi tokens to be added to a simulated translation so that it can be used as a Rigi tokenized language, select the Add Rigi tokens checkbox.
Click the Generate button.
A file containing the simulated texts will be generated for the selected language.
