2 .\" # Copyright (c) 2015, Juniper Networks, Inc.
3 .\" # All rights reserved.
4 .\" # This SOFTWARE is licensed under the LICENSE provided in the
5 .\" # ../Copyright file. By downloading, installing, copying, or
6 .\" # using the SOFTWARE, you agree to be bound by the terms of that
8 .\" # Phil Shafer, July 2015
15 .Nd turn libxo format strings into simplified form
22 utility simplifies libxo format strings into the form used for
33 into data useful for libxo-enabled applications.
37 uses the string as the key into the message catalog,
39 uses a simplified version of the format string that removes
40 unimportant field formatting and modifiers, stopping minor formatting
41 changes from impacting the expensive translation process.
43 change such as changing "/%06d" to "/%08d" should not force hand
44 inspection of all .po files.
47 inspects the input file, looking for lines that begin with "msgid"
48 which carry format strings as the remainder of the input line.
49 These strings are passed to
51 for simplification and the resulting strings are replaced into the
52 output stream, allowing
54 to operated as a filter.
56 .Bl -tag -width "12345678901234567"
57 .It Fl "-simplify OR -s <text>"
58 Generate the simplified version of a single text string.
59 .It Fl "-po OR -f <pofile>"
60 Use the given po file for input.
62 Display this help text
63 .It Fl "-output OR -o <file>"
64 Write output content to the given file
66 Generate warnings while parsing the format strings
68 Display version information
73 % xopo -f foo.pot -o foo.pot.new