[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:misc:internationalization_and_localization_of_shell_scripts [2014/12/28 23:40 (UTC)] – Remove one dash. alienbob | howtos:misc:internationalization_and_localization_of_shell_scripts [2015/12/22 22:31 (UTC)] (current) – [Processes diagrams] Typo fix didierspaier | ||
---|---|---|---|
Line 7: | Line 7: | ||
This document is intended to help developers, maintainers and translators to write/ | This document is intended to help developers, maintainers and translators to write/ | ||
- | The reference document is the manual entitled [[http:// | + | The reference document is the manual entitled [[http:// |
The manual encompasses all programming languages usable with gettext, with a special focus on the C language. | The manual encompasses all programming languages usable with gettext, with a special focus on the C language. | ||
Line 55: | Line 55: | ||
Among these actions are execution of some programs of the gettext suite: | Among these actions are execution of some programs of the gettext suite: | ||
- | * gettetxt: marks strings to be insternationalized, then displays localized messages during scripts' | + | * gettetxt: marks strings to be internationalized, then displays localized messages during scripts' |
* xgettext: extracts marked strings from a set of shell scripts to build a POT or a PO file | * xgettext: extracts marked strings from a set of shell scripts to build a POT or a PO file | ||
* msgcmp: | * msgcmp: | ||
Line 65: | Line 65: | ||
=== (1) Internationalization === | === (1) Internationalization === | ||
- | + | ||
Set of shell scripts ───> | Set of shell scripts ───> | ||
Line 141: | Line 141: | ||
This variant of the process is shorter: | This variant of the process is shorter: | ||
- | + | ||
╭─ [msgcmp] <── < | ╭─ [msgcmp] <── < | ||
│ | │ | ||
Line 303: | Line 303: | ||
In particular, I recommend to favor options which take as first argument a text string instead of a file, to allow line wrapping. It is still possible to preserve the intended layout using white spaces for indentation. | In particular, I recommend to favor options which take as first argument a text string instead of a file, to allow line wrapping. It is still possible to preserve the intended layout using white spaces for indentation. | ||
- | For instance,\\ dialog < | + | For instance, |
+ | | ||
+ | can be replaced with | ||
+ | | ||
==== Practical recommendations for translators ==== | ==== Practical recommendations for translators ==== | ||
Line 333: | Line 336: | ||
* The translation text should include a "new line" character (or line feed, represented by " | * The translation text should include a "new line" character (or line feed, represented by " | ||
* A single backslash character " | * A single backslash character " | ||
- | |||
- | To " | ||
To check your translation against gettext' | To check your translation against gettext' |