Combined Strings

Combined Strings is a feature that breaks one string to parts. This means that a single text will be split into several parts. Combine string rule decides how the breaking is done. Sisulizer uses regular expressions to describe the breaking rule. After converting a plain string into a combined string, Sisulizer project will have several rows instead of one single row.

Let's have an example. Before taking combined string in used our project contains the following row:

One;Two;Three

As you can see the string contains three sub strings separated by semi colon. If we set the row using combined string and #;#;# regular expression Sisulizer will replace the original row with three different rows.

One
Two
Three

Each row is a separate translation entity and it is translated independently. The advantage of combined string is that in most cases the string format must be exactly right. For example if must contain the specific separator characters. If the string is shows 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.

Examples

Let's have few combined string expression examples:

Expression Sample string Strings
#;#;# One;Two;Three One
Two
Three
"#" "This is a string" This is a string

Sources

Combines strings can be used in the following source types:

Platform Description Sample that demonstrates how to use combined strings
.NET .NET assemblies and resource files <sldir>\NET\CSharp\Combined
<sldir>\NET\CSharp\Resource
Databases Database tables <sldir>\Database\Combined
Ini Ini files <sldir>\Text\Ini\Combined.*
Source code Source code files <sldir>\Source\Pascal.*
XML XML files <sldir>\XML\Combined.*