Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

potool(1) [debian man page]

POTOOL(1)						      General Commands Manual							 POTOOL(1)

NAME
potool - program for manipulating gettext po files SYNOPSIS
potool FILENAME1 [ FILENAME2 ] [-f f|nf|t|nt|nth|o|no] [-n ctxt|id|str|cmt|ucmt|pcmt|scmt|dcmt|tr|linf]... [-s] [-c] potool -h DESCRIPTION
potool works in two (so far) modes. The first mode requires providing one file name, and works as a filter. In the second mode, the program replaces the translations in FILENAME1 with the translations from FILENAME2. (So FILENAME1 is the base po file, while FILENAME2 is our working copy.) OPTIONS
-f filter Determines which po file entries should be retained. In the second mode, the filters are applied only to FILENAME2 (the working copy). Existing filters are: t - translated entries nt - untranslated entries nth - untranslated entries and the header f - fuzzy entries nf - entries that are not fuzzy o - obsolete entries no - non-obsolete entries It is possible to stack filters, by specifying multiple -f options. -n filter Determines which po file entries parts should not be retained. Any number of -n options is allowed. Valid parameters are: ctxt - don't write 'ctxt' parts id - don't write 'id' parts str - don't write 'str' parts tr - don't write translations ucmt - don't write user's comments pcmt - don't write the comments regarding position in source files scmt - don't write special comments ('#, fuzzy, c-format, ...') dcmt - don't write reserved comments (usually starting with a dot) cmt - don't write any comments linf - change source line numbers to '1'. The last parameter is useful when you need to compare two po or pot files using diff(1) as it usually returns lots of unimportant line number changes otherwise. -s Don't display the entries themselves, only their count. -c Overwrite all msgstrs with their msgids. -h Display short usage help. EXAMPLES
potool x.po -s -ft displays the number of translated entries. See also postats(1). potool x.po -nstr Deletes all translations - so you can start from scratch! :-) potool x.po -ft && potool x.po -fnt displays firstly the translated and then the non-translated entries from file x.po (reverse order is not recommended because of the first "header" entry). The output contains all information from x.po, with the difference that untranslated entries are located together in a single place. potool x.po -fnt > tmp.po && editor tmp.po && potool x.po tmp.po lets you easily add new translations, without looking at the already translated entries The last two examples are implemented as the potooledit(1) program. SEE ALSO
potooledit(1), postats(1), msgmerge(1), msgfmt(1). AUTHOR
Potool was written by Zbigniew Chyla and is now being maintained by Marcin Owsiany <porridge@debian.org>. September 21, 2007 POTOOL(1)

Check Out this Related Man Page

MSGCMP(1)								GNU								 MSGCMP(1)

NAME
msgcmp - compare message catalog and template SYNOPSIS
msgcmp [OPTION] def.po ref.pot DESCRIPTION
Compare two Uniforum style .po files to check that both contain the same set of msgid strings. The def.po file is an existing PO file with the translations. The ref.pot file is the last created PO file, or a PO Template file (generally created by xgettext). This is useful for checking that you have translated each and every message in your program. Where an exact match cannot be found, fuzzy matching is used to produce better diagnostics. Mandatory arguments to long options are mandatory for short options too. Input file location: def.po translations ref.pot references to the sources -D, --directory=DIRECTORY add DIRECTORY to list for input files search Operation modifiers: -m, --multi-domain apply ref.pot to each of the domains in def.po -N, --no-fuzzy-matching do not use fuzzy matching --use-fuzzy consider fuzzy entries --use-untranslated consider untranslated entries Input file syntax: -P, --properties-input input files are in Java .properties syntax --stringtable-input input files are in NeXTstep/GNUstep .strings syntax Informative output: -h, --help display this help and exit -V, --version output version information and exit AUTHOR
Written by Peter Miller. REPORTING BUGS
Report bugs to <bug-gnu-gettext@gnu.org>. COPYRIGHT
Copyright (C) 1995-1998, 2000-2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
The full documentation for msgcmp is maintained as a Texinfo manual. If the info and msgcmp programs are properly installed at your site, the command info msgcmp should give you access to the complete manual. GNU gettext-tools 0.18.2 March 2013 MSGCMP(1)
Man Page