/
Strings terminated in end line
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.
Related content
_noop() special macro
_noop() special macro
More like this
Marking C/C++ code
Marking C/C++ code
More like this
What's RamTranslator
What's RamTranslator
More like this
Strings with variable parameters
Strings with variable parameters
More like this
Find sentences to be translated
Find sentences to be translated
More like this
Multi-line phrases in Tcl
Multi-line phrases in Tcl
More like this
COPYRIGHT © 2022 · GID · CIMNE