Sticky flags are flags that are set on an entry when the PO template file is created, and that remain attached to it throughout the workflow.
There are two kinds of sticky flags:
*-format flags,
that are inferred from the msgid
and from the source code that surrounds the msgid.
The following *-format flags exist.
More can be added in future GNU gettext releases.
c-format ¶no-c-formatThese flags should not be added by a human. Instead only the
xgettext program adds them. In an automated PO file processing
system as proposed here, the user’s changes would be thrown away again as
soon as the xgettext program generates a new template file.
The c-format flag indicates that the untranslated string and the
translation are supposed to be C format strings. The no-c-format
flag indicates that they are not C format strings, even though the untranslated
string happens to look like a C format string (with ‘%’ directives).
When the c-format flag is given for a string the msgfmt
program does some more tests to check the validity of the translation.
See Invoking the msgfmt Program, Special Comments preceding Keywords and C Format Strings.
objc-format ¶no-objc-formatLikewise for Objective C, see Objective C Format Strings.
c++-format ¶no-c++-formatLikewise for C++, see C++ Format Strings.
python-format ¶no-python-formatLikewise for Python, see Python Format Strings.
python-brace-format ¶no-python-brace-formatLikewise for Python brace, see Python Format Strings.
java-format ¶no-java-formatLikewise for Java MessageFormat format strings, see Java Format Strings.
java-printf-format ¶no-java-printf-formatLikewise for Java printf format strings, see Java Format Strings.
csharp-format ¶no-csharp-formatLikewise for C#, see C# Format Strings.
javascript-format ¶no-javascript-formatLikewise for JavaScript, see JavaScript Format Strings.
scheme-format ¶no-scheme-formatLikewise for Scheme, see Scheme Format Strings.
lisp-format ¶no-lisp-formatLikewise for Lisp, see Lisp Format Strings.
elisp-format ¶no-elisp-formatLikewise for Emacs Lisp, see Emacs Lisp Format Strings.
librep-format ¶no-librep-formatLikewise for librep, see librep Format Strings.
rust-format ¶no-rust-formatLikewise for Rust, see Rust Format Strings.
go-format ¶no-go-formatLikewise for Go, see Go Format Strings.
ruby-format ¶no-ruby-formatLikewise for Ruby, see Ruby Format Strings.
sh-format ¶no-sh-formatLikewise for Shell format strings, see Shell Format Strings.
sh-printf-format ¶no-sh-printf-formatLikewise for Shell printf format strings, see Shell Format Strings.
awk-format ¶no-awk-formatLikewise for awk, see awk Format Strings.
lua-format ¶no-lua-formatLikewise for Lua, see Lua Format Strings.
object-pascal-format ¶no-object-pascal-formatLikewise for Object Pascal, see Object Pascal Format Strings.
modula2-format ¶no-modula2-formatLikewise for Modula-2, see Modula-2 Format Strings.
d-format ¶no-d-formatLikewise for D, see D Format Strings.
smalltalk-format ¶no-smalltalk-formatLikewise for Smalltalk, see Smalltalk Format Strings.
qt-format ¶no-qt-formatLikewise for Qt, see Qt Format Strings.
qt-plural-format ¶no-qt-plural-formatLikewise for Qt plural forms, see Qt Format Strings.
kde-format ¶no-kde-formatLikewise for KDE, see KDE Format Strings.
boost-format ¶no-boost-formatLikewise for Boost, see Boost Format Strings.
tcl-format ¶no-tcl-formatLikewise for Tcl, see Tcl Format Strings.
perl-format ¶no-perl-formatLikewise for Perl, see Perl Format Strings.
perl-brace-format ¶no-perl-brace-formatLikewise for Perl brace, see Perl Format Strings.
php-format ¶no-php-formatLikewise for PHP, see PHP Format Strings.
gcc-internal-format ¶no-gcc-internal-formatLikewise for the GCC sources, see GCC internal Format Strings.
gfc-internal-format ¶no-gfc-internal-formatLikewise for the GNU Fortran Compiler sources up to GCC 14.x, see GFC internal Format Strings. These flags are deprecated.
ycp-format ¶no-ycp-formatLikewise for YCP, see YCP Format Strings.
Other flags, assigned by the programmer, are:
no-wrap ¶This flag influences the presentation of the entry in the PO file. By default, when a PO file is output by a GNU gettext program and the option ‘--no-wrap’ is not specified, message lines that exceed the output page width are split into several lines. This flag inhibits this line breaking for the entry. This is useful for entries whose lines are close to 80 columns wide.