Language definitions used by Weblate
Find a file
Eric 339bcf9b1d Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (617 of 617 strings)

Translation: Weblate/Language data
Translate-URL: https://hosted.weblate.org/projects/weblate/languages/zh_Hans/
2022-07-18 06:36:37 +00:00
.github Sync with WeblateOrg/meta 2022-07-11 10:14:27 +02:00
languages-po po: Remove extra newline 2022-01-07 22:11:31 +01:00
modules chore: Bump modules/iso-codes from c48fecb to 3255845 2022-07-14 11:04:01 +02:00
scripts chore: Add header to the CSV files 2022-07-14 15:00:16 +02:00
weblate_language_data Translated using Weblate (Chinese (Simplified)) 2022-07-18 06:36:37 +00:00
.deepsource.toml Enable deepsource 2020-09-30 08:58:43 +02:00
.gitignore Add missing pot file 2020-09-29 12:05:15 +02:00
.gitmodules Use pip installed translate-toolkit instead of a submodule 2021-04-13 08:49:24 +02:00
.markdownlint.json Sync with WeblateOrg/meta 2020-10-21 12:37:25 +02:00
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate 2022-07-11 20:05:46 +00:00
.weblate Add Weblate configuration 2020-09-29 12:46:36 +02:00
.yamllint.yml Sync with WeblateOrg/meta 2022-01-25 09:31:33 +01:00
aliases.csv chore: Add header to the CSV files 2022-07-14 15:00:16 +02:00
cldr.csv chore: Add header to the CSV files 2022-07-14 15:00:16 +02:00
default_countries.csv chore: Add header to the CSV files 2022-07-14 15:00:16 +02:00
extraplurals.csv lang: Fix extra plurals definition 2022-07-14 16:52:11 +02:00
gettext.csv chore: Add header to the CSV files 2022-07-14 15:00:16 +02:00
l10n-guide.csv chore: Add header to the CSV files 2022-07-14 15:00:16 +02:00
languages.csv languages: Add Mara 2022-07-15 13:52:17 +02:00
LICENSE Sync with WeblateOrg/meta 2022-01-07 10:38:07 +01:00
Makefile languages: Include CLDR 38+ rules 2022-07-14 09:17:46 +02:00
MANIFEST.in Make Django dependency optional 2020-09-30 08:35:01 +02:00
PLURALS_DIFF.md languages: Add Mara 2022-07-15 13:52:17 +02:00
population.csv chore: Add header to the CSV files 2022-07-14 15:00:16 +02:00
pyproject.toml Sync with WeblateOrg/meta 2022-03-24 13:34:55 +01:00
README.rst docs: Add contributing section to README 2022-03-16 10:42:44 +01:00
requirements-dev.txt chore: Bump black from 22.3.0 to 22.6.0 2022-06-28 18:11:00 +00:00
requirements-lint.txt chore: Bump pre-commit from 2.19.0 to 2.20.0 2022-07-11 18:10:22 +00:00
requirements-test.txt chain requirements 2021-05-27 08:44:56 +02:00
requirements.txt chore: Bump translate-toolkit from 3.7.0 to 3.7.1 2022-07-01 18:08:32 +00:00
SECURITY.md Sync with WeblateOrg/meta 2020-10-21 10:45:09 +02:00
setup.cfg Setting version to 2022.7 2022-07-14 16:52:34 +02:00
setup.py Sync with WeblateOrg/meta 2022-01-07 10:38:07 +01: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 a copylefted 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.