Skip to content

Support locales language codes from /usr/share/i18n/SUPPORTED #2377

@buhtz

Description

@buhtz

Describe the problem

Hello,

*unixoid system using the locales system do have a file /usr/share/i18n/SUPPORTED with the list of supported language codes. I am not sure where it comes from but gettext/glibc/locales is somehow involved.

Setup the system language (e.g. via dpkg-reconfigure locales on Debian-based systems) that list is used to provide available languages. This is one of the reasons why my own application, using Weblate as translation platform, need to support that language identifiers.

But Weblate (using the translate.codeberg.org instance) seems not to support it. On example is "Serbian (Latin)"; the language code sr@Latin is not offered in the "Add language" dialog.

Would be nice to have this.

Regards,
Christian Buhtz

Solution brainstorm

Provide all languages from /usr/share/i18n/SUPPORTED

Describe alternatives you have considered

My current workaround would be to rename that files from Weblate everytime I sync Weblate with my upstream repo.

Screenshots

Image

Additional context

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions