Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pofileconsistency(1) [debian man page]

POFILECONSISTENCY(1)													      POFILECONSISTENCY(1)

NAME
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: http://gettext-lint.sourceforge.net/ AUTHOR
Pedro Morais. <morais@kde.org> 08/16/2006 POFILECONSISTENCY(1)

Check Out this Related Man Page

NGETTEXT(3)						     Library Functions Manual						       NGETTEXT(3)

NAME
ngettext, dngettext, dcngettext - translate message and choose plural form SYNOPSIS
#include <libintl.h> char * ngettext (const char * msgid, const char * msgid_plural, unsigned long int n); char * dngettext (const char * domainname, const char * msgid, const char * msgid_plural, unsigned long int n); char * dcngettext (const char * domainname, const char * msgid, const char * msgid_plural, unsigned long int n, int category); DESCRIPTION
The ngettext, dngettext and dcngettext functions attempt to translate a text string into the user's native language, by looking up the appropriate plural form of the translation in a message catalog. Plural forms are grammatical variants depending on the a number. Some languages have two forms, called singular and plural. Other languages have three forms, called singular, dual and plural. There are also languages with four forms. The ngettext, dngettext and dcngettext functions work like the gettext, dgettext and dcgettext functions, respectively. Additionally, they choose the appropriate plural form, which depends on the number n and the language of the message catalog where the translation was found. In the "C" locale, or if none of the used catalogs contain a translation for msgid, the ngettext, dngettext and dcngettext functions return msgid if n == 1, or msgid_plural if n != 1. RETURN VALUE
If a translation was found in one of the specified catalogs, the appropriate plural form is converted to the locale's codeset and returned. The resulting string is statically allocated and must not be modified or freed. Otherwise msgid or msgid_plural is returned, as described above. ERRORS
errno is not modified. BUGS
The return type ought to be const char *, but is char * to avoid warnings in C code predating ANSI C. SEE ALSO
gettext(3), dgettext(3), dcgettext(3) GNU gettext 0.18.1 May 2001 NGETTEXT(3)
Man Page