003 File Manager
Current Path:
/usr/src/contrib/libxo/doc
usr
/
src
/
contrib
/
libxo
/
doc
/
📁
..
📄
Makefile.am
(839 B)
📁
_static
📁
_templates
📄
api.rst
(54.89 KB)
📄
conf.py
(5.43 KB)
📄
encoders.rst
(8.44 KB)
📄
example.rst
(21.76 KB)
📄
faq.rst
(7.46 KB)
📄
field-formatting.rst
(13.26 KB)
📄
field-modifiers.rst
(11.13 KB)
📄
field-roles.rst
(10.7 KB)
📄
format-strings.rst
(2.03 KB)
📄
formatting.rst
(5.45 KB)
📄
getting.rst
(5.73 KB)
📄
howto.rst
(13.05 KB)
📄
index.rst
(1.43 KB)
📄
intro.rst
(2.93 KB)
📄
options.rst
(6.41 KB)
📄
top-link.html.in
(255 B)
📄
xo.rst
(6.81 KB)
📄
xohtml.rst
(1.22 KB)
📄
xolint.rst
(10.32 KB)
📄
xopo.rst
(1.66 KB)
Editing: xopo.rst
xopo ==== The `xopo` utility filters ".pot" files generated by the :manpage:`xgettext(1)` utility to remove formatting information suitable for use with the "{G:}" modifier. This means that when the developer changes the formatting portion of the field definitions, or the fields modifiers, the string passed to :manpage:`gettext(3)` is unchanged, avoiding the expense of updating any existing translation files (".po" files). The syntax for the xopo command is one of two forms; it can be used as a filter for processing a .po or .pot file, rewriting the "*msgid*" strings with a simplified message string. In this mode, the input is either standard input or a file given by the "-f" option, and the output is either standard output or a file given by the "-o" option. In the second mode, a simple message given using the "-s" option on the command, and the simplified version of that message is printed on stdout: =========== ================================= Option Meaning =========== ================================= -o <file> Output file name -f <file> Use the given .po file as input -s <text> Simplify a format string =========== ================================= :: EXAMPLE: % xopo -s "There are {:count/%u} {:event/%.6s} events\n" There are {:count} {:event} events\n % xgettext --default-domain=foo --no-wrap \ --add-comments --keyword=xo_emit --keyword=xo_emit_h \ --keyword=xo_emit_warn -C -E -n --foreign-user \ -o foo.pot.raw foo.c % xopo -f foo.pot.raw -o foo.pot Use of the `--no-wrap` option for `xgettext` is required to ensure that incoming msgid strings are not wrapped across multiple lines.
Upload File
Create Folder