When creating an application, define national language dependencies in resources that are held in resource files separate from the program code. That is:

The language displayed by the application can then be changed by translating the resources, in most cases without changing the application.

However, when translating from one language to another, the length of a text string can change substantially. For example, when translating from English to German, the length of a text string can double in length.

The following table furnishes a general idea of the amount of expansion that can be expected during translation.

Translation Expansion

ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿³For English Phrases           ³Translation Expansion Factors ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³Up to 10 characters           ³101 - 200%                    ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³11 - 20 characters            ³81 - 100%                     ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³21 - 30 characters            ³61 - 80%                      ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³31 - 50 characters            ³41 - 60%                      ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³51 - 70 characters            ³31 - 40%                      ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³Over 70 characters            ³30%                           ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ

When designing your dialog boxes and text string messages, add white space to allow for the expansion that will occur when the text is translated. You might have to adapt the application program to allow for the change in the length of text strings after they are translated. For example, a change in the length of a text string can cause it to become misaligned with other displayed objects.

You can also use the Dialog Box Editor to adjust for misalignments, or to change the size of the dialog box. This would enable you to leave your application program unchanged.

Text strings explicitly displayed by the application program are more of a problem. You will have to include program code that can handle text strings of varying length and format them at runtime according to their size.


[Back] [Next]