Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pocompendium(1) [debian man page]

pocompendium(1) 					      Translate Toolkit 1.3.0						   pocompendium(1)

pocompendium - Create a PO compendium from a directory of PO files. SYNOPSIS
pocompendium [options] output.po <-d po-directory(ies)|po-file(s)> DESCRIPTION
Takes a directory of translated PO files and creates a single PO files called a PO compendium. This compendium can be used to review word choice conflicts or as input during a merge using pomigrate(1). OPTIONS
-v, --invert creates an inverse compendium with msgid and msgstr swapped -e, --errors only ouput message bundles that have conflicts -c, --correct only ouput message bundles that are correctly translated -i, --ignore-case drops all strings to lowercase -st, -tilde, --strip-accel-amp remove all & style accelerator markers -sa, -amp, --strip-accel-tilde remove all ~ style accelerator markers -su, --strip-accel-under remove all _ style accelerator markers EXAMPLES
Compendium creation create a compendium with all your translations to use as input during a message merge either when migrating an existing project or starting a new one. Conflicting translations use --errors to find where you have translated an English string differently. Many times this is OK but often it will pick up subtle spell- ing mistakes or help you to migrate older translations to a newer choice of words. Conflicting word choice use --invert and --errors to get a compendium file that show how you have used a translated word for different English words. You might have chosen a word that is valid for both of the English expressions but that in the context of computers would cause confusion for the user. You can now easily identify these words and make changes in the underlying translations. Narrowing Results PO files treat slight changes in capitalisation, accelerator, punctuation and whitespace as different translations. In cases 2) and 3) above it is sometimes useful to remove the inconsistencies so that you can focus on the errors in translation not on shifts in capitals. To this end you can use the following: --ignore-case, --strip-accel-amp, --strip-accel-tilde, --strip-accel-under. OPERATION
pocompendium makes use of the Gettext tool msgcat(1) to perform its task. It traverses the PO directories and cat's all found PO files into the single compendium output file. It then uses msgattrib(1) to extract only certain messages, msghack to invert messages and msgfilter(1) to convert messages to lowercase. BUGS
There are some absolute/relative path name issues. Translate Toolkit 1.3.0 pocompendium(1)

Check Out this Related Man Page


POFileConsistency - checks consistency in a collection of PO files SYNOPSIS
POFileConsistency [OPTION] [...] [FILE] [...] INTRODUCTION
POFileConsistency checks consistency in a collection of PO files. COMMAND LINE OPTIONS
--help or -h show usage instructions --interactive or -i interactive mode, iterate though the inconsistencies using a text mode interface; see the Interactive Mode section --equivalent=file or -e file load a file with a list of equivalent msgstr for a given msgid; can be used multiple times --only-empty or -o only report inconsistencies with at least one of the translations empty --match=string or -m string only report inconsistencies if at least one of the files involved contain the given string --strip-chars=chars or -r chars remove each of the chars from both msgid and msgstr before checking inconsistencies INTERACTIVE MODE
In interactive mode you iterate through each of the inconsistencies found. In each prompt you can press Enter to ignore this inconsistency, a number of a possible translation (1, 2, ...) to change all the translations to that text, 0 to input a text to use in all the translations, l to add the exception to each of the PO files, or, if you are using at least one equivalents file, a to add the exception to the first of those files. PO FILE HEADER DIRECTIVES
POFileConsistency recognizes several PO file header directives. As with all gettext lint tools, these directives are all prefixed with X-POFile. X-POFile-IgnoreConsistency: msgid remove the given msgid from the list of messages to check X-POFile-ConsistencyAlias: string1 string2 replace all ocorrences of string1 with string2 before checking consistency CONSISTENCY EQUIVALENTS FILE FORMAT
This files consists of a series of empty line separated blocks. For example: msgid 1 possible translation 1 possible translation 2 possible translation n msgid 2 possible translation 1 possible translation 2 possible translation n MORE INFORMATION
gettext-lint web page: AUTHOR
Pedro Morais. <> 08/16/2006 POFILECONSISTENCY(1)
Man Page

Featured Tech Videos