1XOPO(1) BSD General Commands Manual XOPO(1)
2
4 xopo — turn libxo format strings into simplified form
5
7 xopo [-options]
8
10 The xopo utility simplifies libxo format strings into the form used for
11 gettext lookups by the libxo library. Using xopo, users can turn .pot
12 files generated by xgettext into data useful for libxo-enabled applica‐
13 tions.
14
15 Since gettext uses the string as the key into the message catalog, libxo
16 uses a simplified version of the format string that removes unimportant
17 field formatting and modifiers, stopping minor formatting changes from
18 impacting the expensive translation process. A developer change such as
19 changing "/%06d" to "/%08d" should not force hand inspection of all .po
20 files.
21
22 xopo inspects the input file, looking for lines that begin with "msgid"
23 which carry format strings as the remainder of the input line. These
24 strings are passed to libxo for simplification and the resulting strings
25 are replaced into the output stream, allowing xopo to operated as a fil‐
26 ter.
27
28 -f pofile | --po pofile
29 Use the given po file for input.
30
31 --help Display this help text
32
33 -o file | --output file
34 Write output content to the given file
35
36 -s text | --simplify text
37 Generate the simplified version of a single text string.
38
39 -W | --warn
40 Generate warnings while parsing the format strings
41
42 --version
43 Display version information
44
46 % xopo -f foo.pot -o foo.pot.new
47
49 libxo(3), xo_format(5)
50
52 The libxo library first appeared in FreeBSD 11.0.
53
55 libxo was written by Phil Shafer <phil@freebsd.org>.
56
57
59 FreeBSD uses libxo version 1.6.0. Complete documentation can be found on
60 github:
61
62 https://juniper.github.io/libxo/1.6.0/html/index.html
63
64 libxo lives on github as:
65
66 https://github.com/Juniper/libxo
67
68 The latest release of libxo is available at:
69
70 https://github.com/Juniper/libxo/releases
71
73 The libxo library was added in FreeBSD 11.0.
74
76 Phil Shafer
77
78BSD July 9, 2015 BSD