GiD - The personal pre and post processor

Strings terminated in end line


It is advisable to avoid the use of "\n" in strings, to facilitate human translation, if you want to print a string with line break at the end in the standard output, instead of using printf, you can use a new alternative function: printfln (defined in trad.h), and similarly sprintfln. For example, instead of writing:

printf(_("My message\n"));

it is better to use:

printfln(_("My message"));

In this way, a "cleaner" string will remain in the database and errors from the human translator will be avoided.

COPYRIGHT © 2022 · GID · CIMNE