A simple shared budget manager web application
Find a file
Baptiste Jonglez 18f24ac9b7 Fix language code parsing
Currently, norwegian (nb_NO) displays as "None" in the language change
select (upper right corner of the UI).

This is because language codes were not parsed correctly when they contain "_".

Here is a summary of the changes for the languages we support, before:

```
>>> Locale('nb_NO')
Locale('nb_NO')
>>> Locale('nb_NO').display_name
None

>>> Locale('es_419')
Locale('es', territory='419')
>>> Locale('es_419').display_name
'español latinoamericano'

>>> Locale('zh_HANS-CN')
babel.core.UnknownLocaleError: unknown locale 'zh_HANS-CN'
>>> Locale('zh_HANS-CN').display_name
babel.core.UnknownLocaleError: unknown locale 'zh_HANS-CN'
```

After:

```
>>> Locale.parse('nb_NO')
Locale('nb', territory='NO')
>>> Locale.parse('nb_NO').display_name
'norsk bokmål (Norge)'

>>> Locale.parse('es_419')
Locale('es', territory='419')
>>> Locale.parse('es_419').display_name
'español (Latinoamérica)'

>>> Locale.parse('zh_HANS-CN')
Locale('zh', script='Hans')
>>> Locale.parse('zh_HANS-CN').display_name
'中文 (简体)'
```

Summary: it fixes support for Norwegian and Chinese, and slightly changes
the display string for es_419.
2020-04-26 15:11:14 +02:00
conf Misc small updates (#536) 2020-02-23 19:27:39 +01:00
docs Fix sqlite only migration. (#579) 2020-04-25 11:55:46 +02:00
ihatemoney Fix language code parsing 2020-04-26 15:11:14 +02:00
.gitignore Add .idea/ folder to gitignore (#585) 2020-04-26 14:22:21 +02:00
.isort.cfg Add isort support. (#561) 2020-04-21 13:59:41 +02:00
.travis.yml Remove obsolete python code (<3.6). (#571) 2020-04-24 12:32:52 +02:00
CHANGELOG.rst Update known working set. (#558) 2020-04-21 10:30:13 +02:00
CONTRIBUTORS Update CONTRIBUTORS 2020-04-21 14:17:23 +02:00
Dockerfile [docker] Download IHM from Pypy or reference git repo; 2019-07-31 13:02:03 +02:00
LICENSE Re-organize the documentation (#223) 2017-06-21 14:03:16 +02:00
Makefile Add isort support. (#561) 2020-04-21 13:59:41 +02:00
MANIFEST.in Update known working set. (#558) 2020-04-21 10:30:13 +02:00
README.rst Add weblate translation status to the README (#574) 2020-04-25 11:50:45 +02:00
setup.cfg Remove obsolete python code (<3.6). (#571) 2020-04-24 12:32:52 +02:00
setup.py Remove support for python2. 2019-10-11 19:52:37 +02:00
tox.ini Remove obsolete python code (<3.6). (#571) 2020-04-24 12:32:52 +02:00

I hate money
############

.. image:: https://travis-ci.org/spiral-project/ihatemoney.svg?branch=master
   :target: https://travis-ci.org/spiral-project/ihatemoney
   :alt: Travis CI Build Status

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

*I hate money* is a web application made to ease shared budget management.
It keeps track of who bought what, when, and for whom; and helps to settle the
bills.

* `Online documentation <https://ihatemoney.readthedocs.org>`_
* `Hosted version <https://ihatemoney.org>`_
* `Mailing list <https://mailman.alwaysdata.com/postorius/lists/info.ihatemoney.org/>`_
  (to get updates when needed).

The code is distributed under a BSD *beerware* derivative: if you meet the
people in person and you want to pay them a craft beer, you are highly
encouraged to do so.

Requirements
============

* **Python**: 3.6, 3.7, 3.8.
* **Backends**: MySQL, PostgreSQL, SQLite, Memory.

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

Do you wish to contribute to IHateMoney? Fantastic! There's a lot of very
useful help on the official `contributing
<https://ihatemoney.readthedocs.io/en/latest/contributing.html>`_ page.

Translation status
==================

.. image:: https://hosted.weblate.org/widgets/i-hate-money/-/i-hate-money/multi-blue.svg
   :target: https://hosted.weblate.org/engage/i-hate-money/?utm_source=widget
   :alt: Translation status for each language