[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to resolve gettext error "can't guess language"?


(I think most of the people subscribed to debian-l10n-devel is also
subscribed to debian-i18n, but I'm adding them, just in case).

El 8/4/21 a las 20:00, Gregor Riepl escribió:
>>> gettext: resources/i18n/cs_CZ/cura.po: can't guess language
>>> ...other po files follow...
>>> Full report: https://i18n.debian.org/l10n-pkg-status/c/cura.html
>> is the locale package installed? Is cs in the output of locale -a? The po file itself is fine. For me it works flawlessly.
> If I execute the command locally, it doesn't report any errors.
> As a matter of fact, all of the PO files verify ok, even though I have
> only enabled some of the locales.
> But I'd like to know why https://i18n.debian.org/ flags these errors.
> Is there something wrong with this system? Do I have to contact
> debian-l10n-devel@lists.alioth.debian.org for help?

The code producing this error is the dl10n-check script:


I'm not 100% sure, but I think that the problem is that the function

tries to guess the language from the name of the file instead of the
folder structure or the Language tag written in the content of the file.

I don't know if the cura.po files should be renamed to cura.xx_yy.po or
it's better to change the script to add some logic to try to guess the
language from the Language tag inside the file. This second option I'm
afraid is beyond my Perl skills.

Kind regards,
Laura Arjona Reina

Reply to: