Document home

Text

Structured strings

Structured string is a feature that breaks a string into parts. Structure rule decides how the breaking is done. Soluling uses regular expressions in breaking rules. The reason to use structured strings is that in some cases the string format must be specific. For example if must contain the specific characters that are not part of the meaningful string. If the string is shown on the translation sheet as it is, it is possible that translator will enter string in invalid format. To prevent that you can split combined strings into plain part using expressions

Let's have an example. We might have a structured string line this:

Car;Bike;Airplane

As you can see the string contains three sub strings separated by semi colon. Normally the string would be extract as whole. This makes it difficult to translate because the translator might break the format. If we specify an structure expression to be used when scanning the data Soluling can break the original string into three sub strings. The structure expression marks sub string as # character. You separated # characters with regular expression. If we specify take an #;#;# as expression for the above string Soluling will extract three strings:

Car
Bike
Airplane

Each string gets into its own row and is translated is translated independently.

Samples

The following table show some expression examples:

Structure rule Sample string Strings that are extracted
#;#;# Car;Bike;Airplace Car
Bike
Airplane
"#" "This is a sample" This is a sample