[libreoffice-l10n] Invalid Entry in Po Files

Richard PALO richard at netbsd.org
Tue May 24 09:57:38 UTC 2016


Le 28/07/13 10:11, Yaron Shahrabani a écrit :

I'm noticing with 5.1.3.2 lots and lots of warnings (building with all languages) such as:
> [build SRS] dbaccess/source/ui/misc/WizardPages.src
> Warning : /tmp/pkgsrc/misc/libreoffice/work/libreoffice-5.1.3.2/translations/source/da/dbaccess/source/ui/dlg.po contains invalid entry
> Warning : /tmp/pkgsrc/misc/libreoffice/work/libreoffice-5.1.3.2/translations/source/el/dbaccess/source/ui/dlg.po contains invalid entry
> Warning : /tmp/pkgsrc/misc/libreoffice/work/libreoffice-5.1.3.2/translations/source/eo/dbaccess/source/ui/dlg.po contains invalid entry
>...

For grins, tried this [g]msgfmt invocation to see what was up, and I see:
> $ LANG=C gfind translations/source -name '*.po' -exec gmsgfmt -vco /dev/null {} \; >& msgfmtlog.txt
> $ cat msgfmtlog.txt |grep -Ev 'translated|fatal error' |cut -d: -f3- |sort |uniq -c
>  125 
>    3  'msgid' and 'msgstr' entries do not both begin with '\n'
>  207  'msgid' and 'msgstr' entries do not both end with '\n'
>   41  invalid nplurals value
>   41  invalid plural expression
>   82  n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
> 26640  warning: header field 'Language-Team' still has the initial default value
>  157  warning: header field 'Language' missing in header
>    8  warning: header field 'Language' still has the initial default value
> 3745  warning: header field 'Last-Translator' still has the initial default value
> 3748  warning: header field 'PO-Revision-Date' still has the initial default value
> 27629  warning: header field 'Project-Id-Version' still has the initial default value
>   43  warning: PO file header fuzzy

hoping something can be done to get over the bulk of these.
-- 
Richard PALO



More information about the LibreOffice mailing list