Language definitions used by Weblate
Find a file
2024-11-01 16:05:23 +01:00
.github chore: remove duplicate lint from the workflow 2024-10-04 14:08:29 +02:00
languages-po chore(deps): update modules/cldr-json digest to 0876ec4 (#1326) 2024-04-25 19:48:40 +02:00
LICENSES Use REUSE 3.0 for license data 2023-01-13 09:57:28 +01:00
modules chore(deps): update modules/cldr-json digest to ab05c48 2024-11-01 13:57:24 +01:00
scripts fix: wrong plural counts for some numbers 2024-11-01 16:05:23 +01:00
weblate_language_data fix: wrong plural counts for some numbers 2024-11-01 16:05:23 +01:00
.deepsource.toml ci: Update isort configuration to use profile 2023-03-22 10:19:33 +01:00
.gitignore Add missing pot file 2020-09-29 12:05:15 +02:00
.gitmodules chore(modules): use GitHub mirror of gettext repo 2024-08-30 09:42:42 +02:00
.markdownlint.yml Sync with WeblateOrg/meta 2023-01-11 09:42:22 +01:00
.pre-commit-config.yaml chore(deps): update dependency mdformat-gfm to v0.3.7 2024-10-27 15:28:54 +00:00
.weblate Add Weblate configuration 2020-09-29 12:46:36 +02:00
.yamllint.yml Sync with WeblateOrg/meta 2023-01-10 11:26:18 +01:00
aliases.csv Fix Language tag of tlh_Qaak 2024-08-28 08:10:39 +02:00
cldr.csv chore: Updates from submodules 2024-11-01 14:03:34 +01:00
default_countries.csv Update default countries 2023-04-18 13:47:03 +02:00
extraplurals.csv fix: wrong plural counts for some numbers 2024-11-01 16:05:23 +01:00
gettext.csv chore: Updates from submodules 2022-09-02 08:04:53 +02:00
l10n-guide.csv chore: Add header to the CSV files 2022-07-14 15:00:16 +02:00
languages.csv fix: wrong plural counts for some numbers 2024-11-01 16:05:23 +01:00
LICENSE Sync with WeblateOrg/meta 2023-01-07 13:15:15 +01:00
Makefile feat: automate text direction extracting from CLDR 2024-09-30 11:23:52 +02:00
MANIFEST.in Make Django dependency optional 2020-09-30 08:35:01 +02:00
PLURALS_DIFF.md fix: wrong plural counts for some numbers 2024-11-01 16:05:23 +01:00
population.csv chore: Updates from submodules 2024-11-01 14:03:34 +01:00
pyproject.toml chore: release 2024.12 2024-11-01 14:22:44 +01:00
qt.csv fix: remove duplicate plural definitions for Qt 2024-10-15 15:12:37 +02:00
README.rst Sync with WeblateOrg/meta 2023-04-17 13:29:21 +02:00
REUSE.toml chore: use REUSE.toml instead of dep5 file for reuse 2024-11-01 13:37:17 +01:00
rtl.csv fix: make CSV look like CSV 2024-09-30 11:26:54 +02:00
SECURITY.md Sync with WeblateOrg/meta 2023-07-14 14:58:31 +02:00
setup.py fix: avoid using deprecated distutils modules 2024-10-04 13:47:40 +02:00
translate.csv chore: Add header to the CSV files 2022-07-14 15:00:16 +02:00

.. image:: https://s.weblate.org/cdn/Logo-Darktext-borders.png
   :alt: Weblate
   :target: https://weblate.org/
   :height: 80px

**Weblate is libre software web-based continuous localization system,
used by over 2500 libre projects and companies in more than 165 countries.**

Language definitions used by `Weblate`_ and free to use by others.

.. image:: https://img.shields.io/badge/website-weblate.org-blue.svg
    :alt: Website
    :target: https://weblate.org/

.. image:: https://hosted.weblate.org/widgets/weblate/-/svg-badge.svg
    :alt: Translation status
    :target: https://hosted.weblate.org/engage/weblate/?utm_source=widget

.. image:: https://bestpractices.coreinfrastructure.org/projects/552/badge
    :alt: CII Best Practices
    :target: https://bestpractices.coreinfrastructure.org/projects/552

.. image:: https://img.shields.io/pypi/v/weblate-language-data.svg
    :target: https://pypi.org/project/weblate-language-data/
    :alt: PyPI package

.. image:: https://readthedocs.org/projects/weblate/badge/
    :alt: Documentation
    :target: https://docs.weblate.org/

Usage
=====

The Python module can be installed from the PyPI:

.. code-block:: sh

    pip install weblate-language-data

It contains several modules containing language definitions and Gettext
translations for them (in a way that they would be discovered by Django when
used as an Django application).

CSV Files
=========

The repository also contains CSV files which are used to generate the Python
code and can be used independently.

* Semicolon delimited files
* Contains language code, name, number of plurals and plural equation

languages.csv
-------------

* Combined from several sources, plurals should match CLDR when available
* Used by `Weblate`_ for language definitions
* Manually edited

aliases.csv
-----------

* Language aliases to map non standard or legacy locales to ones in `languages.csv`
* Manually edited

default_countries.csv
---------------------

* List of default country specific locales
* Used to map them to ones in `languages.csv`
* Manually edited

extraplurals.csv
----------------

* Additional plural variants for some languages
* Usually used in Gettext
* Manually edited

cldr.csv
--------

* Based purely on the CLDR data
* Generated using export-cldr from https://github.com/mlocati/cldr-to-gettext-plural-rules

gettext.csv
-----------

* Based on Gettext defaults
* Generated using export-gettext

translate.csv
-------------

* Extracted from `translate-toolkit`_
* Generated using export-translate

l10n-guide.csv
--------------

* Extracted from the `l10n guide`_
* Generated using export-l10n-guide

languages-po
------------

* Directory containing PO files with langauge names translations
* Extracted from CLDR data

.. _Weblate: https://weblate.org/
.. _translate-toolkit: https://toolkit.translatehouse.org/
.. _l10n guide: https://docs.translatehouse.org/projects/localization-guide/en/latest/

Contributing
============

Contributions are welcome! See `documentation <https://docs.weblate.org/en/latest/contributing/modules.html>`__ for more information.