Language definitions used by Weblate
Find a file
renovate[bot] f7c31a0f23
Update modules/cldr-json digest to fb61c0a (#951)
* Update modules/cldr-json digest to fb61c0a

* chore: Updates from submodules

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <renovate[bot]@users.noreply.github.com>
2023-05-02 10:55:02 +02:00
.github Sync with WeblateOrg/meta 2023-04-23 10:14:44 +02:00
.reuse Use REUSE 3.0 for license data 2023-01-13 09:57:28 +01:00
languages-po Update modules/cldr-json digest to fb61c0a (#951) 2023-05-02 10:55:02 +02:00
LICENSES Use REUSE 3.0 for license data 2023-01-13 09:57:28 +01:00
modules Update modules/cldr-json digest to fb61c0a (#951) 2023-05-02 10:55:02 +02:00
scripts Fix macrolanguages export 2023-04-05 06:18:08 +02:00
weblate_language_data Update modules/cldr-json digest to fb61c0a (#951) 2023-05-02 10:55:02 +02: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 Update to CLDR 41 2022-07-18 11:28:16 +02:00
.markdownlint.yml Sync with WeblateOrg/meta 2023-01-11 09:42:22 +01:00
.pre-commit-config.yaml Update pre-commit hook charliermarsh/ruff-pre-commit to v0.0.264 2023-05-02 08:43:59 +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 Add ur_UR alias 2023-04-18 13:46:09 +02:00
cldr.csv chore: Updates from submodules 2022-11-02 09:56:39 +01:00
default_countries.csv Update default countries 2023-04-18 13:47:03 +02:00
extraplurals.csv lang: Fix extra plurals definition 2022-07-14 16:52:11 +02: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 Split nan to nan_Hant and nan_Latn 2023-04-18 13:19:42 +02:00
LICENSE Sync with WeblateOrg/meta 2023-01-07 13:15:15 +01:00
Makefile Use REUSE 3.0 for license data 2023-01-13 09:57:28 +01:00
MANIFEST.in Make Django dependency optional 2020-09-30 08:35:01 +02:00
PLURALS_DIFF.md Split nan to nan_Hant and nan_Latn 2023-04-18 13:19:42 +02:00
population.csv Update modules/cldr-json digest to fb61c0a (#951) 2023-05-02 10:55:02 +02:00
pyproject.toml Update ruff config 2023-04-05 05:56:02 +02:00
README.rst Sync with WeblateOrg/meta 2023-04-17 13:29:21 +02:00
requirements-dev.txt chore(deps): update dependency black to v23.3.0 2023-03-29 03:20:40 +00:00
requirements-lint.txt Update dependency pre-commit to v3.3.0 2023-05-02 10:43:40 +02:00
requirements-test.txt deps: Cleanup test/lint deps 2023-01-19 14:49:07 +01:00
requirements.txt chore(deps): update dependency translate-toolkit to v3.8.6 2023-03-07 15:52:15 +00:00
SECURITY.md Sync with WeblateOrg/meta 2023-01-10 11:26:18 +01:00
setup.cfg Setting version to 2023.4 2023-04-18 14:42:06 +02:00
setup.py ci: enable ruff in pre-commit 2023-04-04 15:25:39 +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.