Commit graph

613 commits

Author SHA1 Message Date
Glandos
a71f154354 Purge project history on deletion 2022-03-05 17:12:59 +01:00
Allan Nordhøy
09e583b49e Translated using Weblate (Norwegian Bokmål)
Currently translated at 75.0% (199 of 265 strings)

Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nb_NO/
Translation: I Hate Money/I Hate Money
2022-02-28 22:28:45 +01:00
Glandos
e355894cee
Check for too high values (#989)
* check for too high values

see https://github.com/python-babel/babel/issues/821

fix #957

* black & isort

* add API test
2022-02-02 10:09:49 +01:00
Glandos
1bea93f8a5 upgrade sqlalchemy-continuum
1.3.10 is needed to remove the patch
1.3.12 is needed for SQLAlchemy 1.4
2022-02-01 23:02:49 +01:00
Gianluca De Cola
a14c7c5aaf Add a tooltip to advertize the computation trick on bills. 2022-01-31 22:07:47 +01:00
Glandos
07e1eac0a9
Null amount validator was broken (#990) 2022-01-30 16:33:18 +01:00
Peter Maksymowsky
a5452ccee5
Display admin email in error message for password reminder (#965)
Co-authored-by: Glandos <bugs-github@antipoul.fr>
2022-01-30 15:33:54 +01:00
7c3ced06f8
Some small cleanups (#976)
Co-authored-by: Glandos <bugs-github@antipoul.fr>
2022-01-30 15:26:22 +01:00
Weblate (bot)
ed6676485a
Translations update from Hosted Weblate (#987)
Co-authored-by: yzqzss <yzqzss@yandex.com>
2022-01-25 22:34:00 +01:00
Glandos
1a90e4cdd8
Fix broken captcha validation when field is empty and we use WTForms 3 (#988) 2022-01-25 22:26:56 +01:00
Weblate (bot)
8fe7bbdf4c
Translated using Weblate (Polish) (#983)
Currently translated at 80.3% (213 of 265 strings)

Co-authored-by: Piotr <promantix@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/pl/
Translation: I Hate Money/I Hate Money

Co-authored-by: Piotr <promantix@gmail.com>
2022-01-23 19:43:45 +01:00
Glandos
40ce32d9fa
Support WTForms 3 (#916)
* Support WTForms 3

* default value to None for WTForm backward compatibility

* switch back to empty string as default

WTForm backward compatibility needs that

* format
2022-01-23 19:43:32 +01:00
Glandos
023ec71536
[Performance] Get weight sum along with bills to scale (#949)
* get weight sum along with bills to scale

otherwise, we need to get the weight sum for each displayed bill.
Here, we are much more scalable

* add test

* format

* remove unused import

* oops, restore pagination to 100

* add comments

* format

* rename method to make it clearer

And also, make it static, since it doesn't rely on instance.

* improve comments and naming

* improve naming

* missing article
2022-01-22 00:13:07 +01:00
zorun
c8cbe43ee2
Display monthly statistics for the range of months where the project was active (#885)
* Change the way we import datetime

This makes it easier to use datetime.date later.

* Display monthly statistics for the range of months where the project was active

Currently, we display a hard-coded "one year" range of monthly statistics
starting from today.  This generally is not the intended behaviour: for
instance, on an archived project, the bills might all be older than one
year, so the table only displays months without any operation.

Instead, display all months between the first and last bills.  There might
be empty months in the middle, but that's intended, because we want all
months to be consecutive.

If there are no bills, simply display an empty table.

Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
2022-01-18 14:32:43 +01:00
Baptiste Jonglez
0c8b8e9374 Remove old python 2 compatibility code 2022-01-14 19:45:02 +01:00
Salamandar
6519223b45
Fix : use url_for in showcase template. (#974) 2021-12-22 19:25:55 +01:00
Youe Graillot
747824a298
CSV bills import (cospend compatible) (#951)
* proper import form (fix messy errors)
* csv compatible import
* cospend compatible import
* localization (best effort)
* refactoring
* revert localization (best effort)
* import return 400 on error
* fix Person.query.get_by_ids calls
* Bill explicit init parameters
* fix tests
* refacto tests with self.get_project
* separate import tests
* fix tests
* csv import test case
* fix import csv parsing
* revert DestructiveActionProjectForm renaming
* fix csv import test
* fix error redirection on import
* fix lint
* import file input type hint
* various fixes from review

Co-authored-by: Youe Graillot <youe.graillot@gmail.com>
2021-12-22 00:00:34 +01:00
Glandos
8b6a2afc63
Check that language is in the supported list (#971) 2021-12-21 22:40:37 +01:00
Glandos
a0d13e4081
Top pagination and new bill button are sticky (#956) 2021-12-14 22:51:06 +01:00
Peter Maksymowsky
470c19fe4d
List supported currencies in API under api/currencies (#961)
* List supported currencies in API under api/currencies

* Added test for /currencies route
2021-12-13 23:25:25 +01:00
Glandos
b9fee9e886
Rework flash messages (#943) 2021-12-01 22:42:20 +01:00
Weblate (bot)
58d8a24047
Translations update from Hosted Weblate (#953)
* Translated using Weblate (German)

Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Jannik Lang <jannik.lang@posteo.de>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/de/
Translation: I Hate Money/I Hate Money

* Translated using Weblate (German)

Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Christian H <sunrisechain@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/de/
Translation: I Hate Money/I Hate Money

* Translated using Weblate (German)

Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Jannik Lang <jannik.lang@posteo.de>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/de/
Translation: I Hate Money/I Hate Money

Co-authored-by: Jannik Lang <jannik.lang@posteo.de>
Co-authored-by: Christian H <sunrisechain@gmail.com>
2021-11-30 11:49:59 +01:00
Youe Graillot
db1379be34
Legal link fixes (#950)
* fix default legal link value in docker

* fix footer-right overflow
2021-11-28 18:45:45 +01:00
Weblate (bot)
d0a8668de6
Translations update from Hosted Weblate (#947)
* Translated using Weblate (French)

Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Alexis Metaireau <alexis@notmyidea.org>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money

* Translated using Weblate (Italian)

Currently translated at 75.0% (199 of 265 strings)

Co-authored-by: Paolo Campetto <fbok61hw@anonaddy.me>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/it/
Translation: I Hate Money/I Hate Money

Co-authored-by: Alexis Metaireau <alexis@notmyidea.org>
Co-authored-by: Paolo Campetto <fbok61hw@anonaddy.me>
2021-11-26 09:02:53 +01:00
Glandos
521838ace4
small css cleanup by using bootstrap classes (#945) 2021-11-26 00:06:36 +01:00
Glandos
e929181128
Remove notification showing the id of the project after creation (#944) 2021-11-25 14:30:17 +01:00
Youe Graillot
acb2799575
Production ready docker (#919)
* /healthcheck endpoint usefull for monitoring, ci test also uses this
* customizable PORT with environment variable
* customizable PUID/PGID, reduce attack surface and allow better integration in rootless environments
* size optimization
* update to python 3.10
* add postgresql compatibility
* PUID/PGID default as root to not break current user environments
2021-11-25 08:23:23 +01:00
ef3944ccad
Send an email when the project is created via the API. (#938) 2021-11-25 00:49:17 +01:00
1698841f6d
Do not require a captcha when using the API (#931)
* Do not require a captcha when using the API

This was trickier than expected, due to some side effects : when the
captcha is set to `True` via configuration, it doesn't change the
behavior directly of the ProjectForm class, but does so only when the
project form is used in the `web.py` module.

So, when just using the API (and not using the web.py module, for
instance during tests — manual or functional), no problem was shown,
and everything was working properly.

But at soon as somebody sees the "/" endpoint, the captcha was
required, by both the API and the `web.py` module.

This fixes it by adding a way to bypass the captcha with a new
`bypass_captcha` property on the form.

Prior to this commit, things were done by activating or deactivating a
"captcha" property on the class on-the-fly, which caused side-effects.

This is now using subclasses, which makes the code simpler to
understand, and less prone to side-effects.

Thanks @zorun for the idea.
2021-11-25 00:44:21 +01:00
Nikos Epping
05ac991a55
Allow clicking buttons behind messages div (#929) 2021-11-24 21:56:14 +01:00
68552a6034
Allow connecting to upper-case project IDs. (#934)
Fix #933.
2021-11-23 19:09:50 +01:00
Weblate (bot)
bd9ebd1d60
Translated using Weblate (Indonesian) (#936)
Currently translated at 95.0% (252 of 265 strings)

Co-authored-by: whenwesober <naomi16i_1298q@cikuh.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/id/
Translation: I Hate Money/I Hate Money

Co-authored-by: whenwesober <naomi16i_1298q@cikuh.com>
2021-11-23 10:39:55 +01:00
2adc2bf0be
Check that project creation via the API doesn't required a captcha. (#926)
Fixes #922
2021-11-21 17:39:42 +01:00
beac10be0b
Always authentify projects using a lowercase ID. (#925)
Fixes #920
2021-11-21 17:13:26 +01:00
Glandos
9bffe72607 Upgrade jquery 2021-11-13 22:33:18 +01:00
Weblate (bot)
e1a8f8596a
Translated using Weblate (Turkish) (#913)
Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/
Translation: I Hate Money/I Hate Money

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
2021-11-08 23:26:46 +01:00
Glandos
95f589f00e Merge remote-tracking branch 'weblate/master' into fix_weblate 2021-11-06 14:38:17 +01:00
Glandos
c59aaadcde
sidebar_table_layout switches to flex column layout (#905)
* Fixes #896

sidebar_table_layout switches to flex column layout
remove all 'float' buttons, replace them with nice flexboxes.
bill_table needs a flex-basis because with a very small width, it has a 0 height. I don't really know why, but adding a flex-basis: auto shows it.

* ensure new bill is on top of pagination
2021-11-01 20:08:48 +01:00
2ff1ba4ed1 Fix wrongly commited conflicting files 2021-11-01 18:38:58 +01:00
0a5814fbd9
Translated using Weblate (French)
Currently translated at 100.0% (264 of 264 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
2021-11-01 18:26:02 +01:00
35a74100cb
Rename all strings to "participants", clean old and small weird stuff (#871)
* Rename all strings to "participants".
* Update the tests with the new strings
* Update tests
2021-11-01 18:25:57 +01:00
cdc98a6706
Make the "Add a new bill" button visible on small resolutions. Fixes #896 (#904)
The clearfix should be applied before the pagination blocks.
2021-11-01 17:52:51 +01:00
Weblate (bot)
67ae812d84
Translated using Weblate (French) (#898)
Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Glandos <bugs-github@antipoul.fr>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money

Co-authored-by: Glandos <bugs-github@antipoul.fr>
2021-10-30 18:09:06 +02:00
JocelynDelalande
18aebb618f
Avoid showcase-guy to point his finger at nothing (#901)
That occured on some screen sizes.
2021-10-30 17:36:42 +02:00
JocelynDelalande
5ab12f41bd
Consistently use questions in bill form (#900)
* Consistently use questions in bill form

* fixup
2021-10-30 17:35:43 +02:00
Glandos
ff4de78b56
Reduce the size of showcase images (#899)
Fixes #875

Original showcase images are kept in another directory, and compressed
in webp in the distributed directory.
Since they won't change so much, let's keep them in git.
2021-10-30 17:30:59 +02:00
Oğuz Ersen
7f5977a738 Translated using Weblate (Turkish)
Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/
Translation: I Hate Money/I Hate Money
2021-10-28 21:41:33 +02:00
Baptiste Jonglez
180f3ef3fb Rebuild translation files 2021-10-26 23:46:27 +02:00
Baptiste Jonglez
68a4aa05e8 Add missing configuration variables (ENABLE_CAPTCHA and LEGAL_LINK) 2021-10-26 23:46:27 +02:00
Baptiste Jonglez
f68263328c Improve performance of balance and statistics computation (see #889) 2021-10-23 17:20:19 +02:00
53c88c3b13
Add a LEGAL_LINK setting. Fixes #761 (#883) 2021-10-21 19:16:32 +02:00
Baptiste
d168e15357 Translated using Weblate (French)
Currently translated at 100.0% (263 of 263 strings)

Co-authored-by: Baptiste <weblate@bitsofnetworks.org>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money
2021-10-21 09:38:52 +02:00
d1297c9c64 Reduce the resolution of showcase pictures by 50%.
Done with `mogrify -quality 75% -resize 50% ihatemoney/static/showcase/*.jpg`.

Before :
```
du -hsc ihatemoney/static/showcase/?.jpg
576K	ihatemoney/static/showcase/1.jpg
512K	ihatemoney/static/showcase/2.jpg
424K	ihatemoney/static/showcase/3.jpg
464K	ihatemoney/static/showcase/4.jpg
464K	ihatemoney/static/showcase/5.jpg
712K	ihatemoney/static/showcase/6.jpg
492K	ihatemoney/static/showcase/7.jpg
592K	ihatemoney/static/showcase/8.jpg
788K	ihatemoney/static/showcase/9.jpg
5.0M	total
```

After :
```
184K	ihatemoney/static/showcase/1.jpg
140K	ihatemoney/static/showcase/2.jpg
136K	ihatemoney/static/showcase/3.jpg
132K	ihatemoney/static/showcase/4.jpg
144K	ihatemoney/static/showcase/5.jpg
208K	ihatemoney/static/showcase/6.jpg
160K	ihatemoney/static/showcase/7.jpg
164K	ihatemoney/static/showcase/8.jpg
224K	ihatemoney/static/showcase/9.jpg
1,5M	total
```

Fixes #875
2021-10-21 09:34:45 +02:00
Baptiste Jonglez
7fdb72cff8 tests: allow to choose project name independently from ID (no change by default) 2021-10-20 23:29:11 +02:00
zorun
97447c96f5
Improve pagination style (#873)
The style for top and bottom pagination was different, and the top part
was confusing.

Also translate bottom pagination text.

Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
2021-10-20 00:53:50 +02:00
cfbce99f19 Fix Weblate 2021-10-19 23:30:34 +02:00
c81c30ff93
Fix weblate (#867)
* Translated using Weblate (French)

Currently translated at 100.0% (263 of 263 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/

* Translated using Weblate (Turkish)

Currently translated at 100.0% (263 of 263 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
2021-10-19 23:26:27 +02:00
Oğuz Ersen
ed0f70d4e7
Translated using Weblate (Turkish)
Currently translated at 100.0% (263 of 263 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/
2021-10-19 23:01:34 +02:00
f09c3355f2
Translated using Weblate (French)
Currently translated at 100.0% (263 of 263 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
2021-10-19 23:01:34 +02:00
3fd69f2267
Prepare 5.0 (#866)
* Update changelog.

Based on the work done in #570 and #834 by @Natim and @Glandos.

* Update contributing.rst release instructions.

* Update documentation configuration.

* Update translations

* Update translation strings

* Preparing release 5.0.0

* Back to development: 5.0.1
2021-10-19 23:01:29 +02:00
Weblate (bot)
2542781218
Translated using Weblate (Kannada) (#863)
Currently translated at 26.9% (71 of 263 strings)

Co-authored-by: a-g-rao <athrigrao@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/kn/
Translation: I Hate Money/I Hate Money

Co-authored-by: a-g-rao <athrigrao@gmail.com>
2021-10-19 00:25:07 +02:00
Glandos
7a15051996
Make multiple currency optional (#864)
* Make multiple currency optional
Fixes #848

A description is provided in project settings to make the feature self explanatory.

* I forgot the description.
Let's update translation altogether.

* black format
2021-10-18 23:46:53 +02:00
Weblate (bot)
a7d133bc3a
Translations update from Weblate (#862)
* Translated using Weblate (Turkish)

Currently translated at 100.0% (262 of 262 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/
Translation: I Hate Money/I Hate Money

* Translated using Weblate (Kannada)

Currently translated at 22.8% (60 of 263 strings)

Co-authored-by: a-g-rao <athrigrao@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/kn/
Translation: I Hate Money/I Hate Money

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Co-authored-by: a-g-rao <athrigrao@gmail.com>
2021-10-17 13:11:26 +02:00
Weblate (bot)
1b826689e5
Translated using Weblate (Kannada) (#861)
Currently translated at 18.9% (49 of 258 strings)

Co-authored-by: a-g-rao <athrigrao@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/kn/
Translation: I Hate Money/I Hate Money

Co-authored-by: a-g-rao <athrigrao@gmail.com>
2021-10-14 23:48:59 +02:00
Glandos
b44bef33db
regenerate translations (#860) 2021-10-14 22:15:54 +02:00
HarshVT8999
5ea8a66704 Update messages.po 2021-10-14 00:15:36 +02:00
a-g-rao
35820e0486 Translated using Weblate (Kannada)
Currently translated at 16.2% (42 of 258 strings)

Added translation using Weblate (Kannada)

Co-authored-by: a-g-rao <athrigrao@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/kn/
Translation: I Hate Money/I Hate Money
2021-10-14 00:14:52 +02:00
Glandos
e2286676f1 Flash messages must be dimissed manually 2021-10-14 00:09:20 +02:00
Baptiste Jonglez
19b5b13663 demo: create Demo project without currency
This matches the default settings of both the web interface and the API
regarding currencies.
2021-10-14 00:07:41 +02:00
Baptiste Jonglez
ff2a5cc147 Add API test cases related to currencies 2021-10-14 00:07:41 +02:00
Baptiste Jonglez
17b4255d82 API tests: allow to set currency, but don't set any by default 2021-10-14 00:07:41 +02:00
Baptiste Jonglez
421cfbe645 project: set XXX as default default_currency for API backwards compatibility
The new support for currency broke backwards compatibility on the API:

    $ curl -X POST $URL/api/projects -d 'name=yay&id=yay&password=yay&contact_email=yay@notmyidea.org'
    {"default_currency": ["This field is required."]}

This is a case we were not testing (will be fixed in subsequent commits)

To fix this, simply set default_currency to XXX by default.
2021-10-14 00:07:41 +02:00
Glandos
7d9226745f
Change token path authentication to /PROJECT/join/TOKEN (#843) 2021-10-13 22:00:38 +02:00
HarshVT8999
cb8f6aaafb
Changed Font Size of the Logo (#828)
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
2021-10-11 19:30:00 +02:00
2bcc41bdb3
Add optional support for a simple CAPTCHA. (#844)
* Add optional support for a simple CAPTCHA.
* formatting
* add test case
* Flake8

Co-authored-by: Glandos <bugs-github@antipoul.fr>
2021-10-11 17:39:24 +02:00
Baptiste Jonglez
e626a1cbea Implement security best practices using Flask-Talisman 2021-10-10 22:06:33 +02:00
zorun
7554842b1f
Add URL validation to external link to prevent XSS (#846)
Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
2021-10-10 18:39:03 +02:00
Glandos
bbe00ebb57
Include project code into project authentication token (#802)
Fix #780 

This a breaking change, the API for authentication is different, as it now requires `project_id`. Token is generated with only the project_id (so it's shorter than before), and signature is done by mixing password with secret key. Thus, it expires on every project code change.
2021-10-10 14:43:40 +02:00
Frank.wu
879936a4c4 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (258 of 258 strings)

Co-authored-by: Frank.wu <me@wuzhiping.top>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/zh_Hans/
Translation: I Hate Money/I Hate Money
2021-10-10 11:48:07 +02:00
phlostically
1c1f1ae893 Translated using Weblate (Esperanto)
Currently translated at 86.8% (224 of 258 strings)

Co-authored-by: phlostically <phlostically@mailinator.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/eo/
Translation: I Hate Money/I Hate Money
2021-10-10 11:48:07 +02:00
Christian H
6044947a90 Translated using Weblate (German)
Currently translated at 98.4% (254 of 258 strings)

Co-authored-by: Christian H <sunrisechain@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/de/
Translation: I Hate Money/I Hate Money
2021-10-10 11:48:07 +02:00
Роман Прокопов
bf3a3bce33 Translated using Weblate (Russian)
Currently translated at 81.3% (210 of 258 strings)

Co-authored-by: Роман Прокопов <pochta.romana.iz.vyborga@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ru/
Translation: I Hate Money/I Hate Money
2021-10-10 11:48:07 +02:00
Daniel Neto
60149cd486 Formatting changes after running make black 2021-09-19 19:04:49 +02:00
Daniel Neto
7bf7db24bd #838: Add decima weight round test cases 2021-09-19 19:04:49 +02:00
Daniel Neto
49abd7fedd Fix #838: Round weight to 2 decimal cases 2021-09-19 19:04:49 +02:00
PPNplus
1842fba115 Translated using Weblate (Thai)
Currently translated at 17.8% (46 of 258 strings)

Added translation using Weblate (Thai)

Co-authored-by: PPNplus <ppnplus@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/th/
Translation: I Hate Money/I Hate Money
2021-09-16 22:02:32 +02:00
Clonewayx
74053fb8fe Translated using Weblate (Czech)
Currently translated at 23.2% (60 of 258 strings)

Co-authored-by: Clonewayx <fillip1@seznam.cz>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/cs/
Translation: I Hate Money/I Hate Money
2021-09-16 22:02:32 +02:00
Baptiste Jonglez
011df29913 Simplify exception checking in import test 2021-09-07 23:15:40 +02:00
Baptiste Jonglez
7ad83c7e79 Add more import test cases related to currencies 2021-09-07 23:15:40 +02:00
zorun
3cbe276a69 Simplify import code
Co-authored-by: Glandos <bugs-github@antipoul.fr>
2021-09-07 23:15:40 +02:00
Baptiste Jonglez
4bf9308908 Add currency to import and export formats 2021-09-07 23:15:40 +02:00
Baptiste Jonglez
6448d0d7df Move CurrencyConverter mocking to the base test class
This mock was already applied to all tests, because it was done statically
in the TestCurrencyConverter class definition.  But it was really not
clear that it's applied everywhere.

Moving this to the setUp() function makes it much clearer.

Also, remove useless redefinition in other tests.
2021-09-07 23:15:40 +02:00
Michał Kowalski
748d30ba87 Translated using Weblate (Polish)
Currently translated at 82.9% (214 of 258 strings)

Co-authored-by: Michał Kowalski <norbertkowalski1994@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/pl/
Translation: I Hate Money/I Hate Money
2021-09-04 16:53:39 +02:00
b933e236ba Update the email template to feel more inclusive. 2021-09-01 22:57:51 +02:00
corny
7b9f9dd423 Translated using Weblate (German)
Currently translated at 98.0% (253 of 258 strings)

Co-authored-by: corny <nico.eckstein+weblate@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/de/
Translation: I Hate Money/I Hate Money
2021-08-20 17:28:52 +02:00
George Thomas
4ebda06f39
"a free software" -> "free software" (#818)
* "a free software" -> "free software"
2021-08-18 08:54:23 +02:00
Eugenia Russell
68478cfb76 Translated using Weblate (Greek)
Currently translated at 50.3% (130 of 258 strings)

Co-authored-by: Eugenia Russell <eugenia.russell2019@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/el/
Translation: I Hate Money/I Hate Money
2021-08-14 21:37:01 +02:00
Oğuz Ersen
6bacae1cd9 Translated using Weblate (Turkish)
Currently translated at 100.0% (258 of 258 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/
Translation: I Hate Money/I Hate Money
2021-07-25 22:27:23 +02:00
ToldYouThat
510154f0d3 Translated using Weblate (Turkish)
Currently translated at 93.0% (240 of 258 strings)

Co-authored-by: ToldYouThat <itoldyouthat@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/
Translation: I Hate Money/I Hate Money
2021-07-25 22:27:23 +02:00
Oğuz Ersen
63a9ba0ae4 Translated using Weblate (Turkish)
Currently translated at 93.0% (240 of 258 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/
Translation: I Hate Money/I Hate Money
2021-07-25 22:27:23 +02:00
Parham
de311b5eab Added translation using Weblate (Persian)
Co-authored-by: Parham <parham.parnian@gmail.com>
2021-07-25 22:27:23 +02:00
Kristoffer Grundström
b97636b5c1 Translated using Weblate (Swedish)
Currently translated at 71.3% (184 of 258 strings)

Co-authored-by: Kristoffer Grundström <swedishsailfishosuser@tutanota.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/sv/
Translation: I Hate Money/I Hate Money
2021-07-25 22:27:23 +02:00
Baptiste Jonglez
9217360973 Localize month names in the statistics view 2021-07-20 19:42:14 +02:00
Allan Nordhøy
591c91af49 Translated using Weblate (Norwegian Bokmål)
Currently translated at 77.9% (201 of 258 strings)

Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nb_NO/
Translation: I Hate Money/I Hate Money
2021-07-18 23:33:59 +02:00
Kemystra
a6d341e3b4 Translated using Weblate (Malay)
Currently translated at 10.4% (27 of 258 strings)

Added translation using Weblate (Malay)

Co-authored-by: Kemystra <izzmin97@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ms/
Translation: I Hate Money/I Hate Money
2021-07-18 23:33:59 +02:00
Oleg
0d8d57c5b0 Fix language list scrollable on mobile (#811) 2021-07-18 23:28:27 +02:00
Glandos
81c3b8edc7 Fix unusable LOCALTZ
Fix #803

On some systems, there is no configured local timezone, so LOCALTZ is
a fallback object, that don't fit use case for flask-babel.
Detect this and use 'UTC' instead
2021-07-18 22:48:29 +02:00
Baptiste Jonglez
9444c1099a Display and highlight current language in dropdown list
Currently, we don't display the current language in the list.  This is
confusing because the list changes when switching language.

Now we always display the full list, and we highlight the current
language.
2021-07-18 14:32:09 +02:00
Baptiste
f7245f6c80 Translated using Weblate (French)
Currently translated at 100.0% (258 of 258 strings)

Co-authored-by: Baptiste <weblate@bitsofnetworks.org>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money
2021-07-17 23:53:29 +02:00
Baptiste Jonglez
b1ab7b89c8 Regenerate translations 2021-07-17 17:32:44 +02:00
Baptiste Jonglez
bb047f1596 Add Greek, Esperanto, Italian and Swedish to default languages 2021-07-17 14:28:45 +02:00
Baptiste Jonglez
82f3f067ef Fix layout of history deletion modals 2021-07-17 13:54:11 +02:00
Baptiste Jonglez
c69b8d66eb Use existing form errors to flash error messages
This is nice because we can reuse the translated strings of form error
messages in another context.

Suggested by Glandos.
2021-07-17 13:54:11 +02:00
zorun
439282356c Improve "confirm deletion" behaviour
* add the event listener only once, instead of every time the form is clicked

* use a standard button by default, so that the second state with a
  "danger" button is more visible

* reset confirmation button to original state when losing focus

Co-authored-by: Glandos <bugs-github@antipoul.fr>
2021-07-17 13:54:11 +02:00
Baptiste Jonglez
da49012d58 Add test cases to ensure we can't delete objects with a GET 2021-07-17 13:54:11 +02:00
Baptiste Jonglez
255aacefb3 Fix tests for history deletion 2021-07-17 13:54:11 +02:00
Baptiste Jonglez
95b2cf870b Fix test for project deletion 2021-07-17 13:54:11 +02:00
Baptiste Jonglez
db982572aa History: also ask for private code to confirm deletion
This is the same idea as deleting a project: deleting history is also a
major destructive action.  We reuse the same form as for project deletion
to ask for the private code and provide CSRF validation.
2021-07-17 13:54:11 +02:00
Baptiste Jonglez
969029a811 Add CSRF validation to project history deletion 2021-07-17 13:54:11 +02:00
Baptiste Jonglez
2bb6f2b6a7 Rework project deletion to add CSRF validation
It requires reworking the user interface, but it's probably for the best.
2021-07-17 13:54:11 +02:00
Baptiste Jonglez
109d7fca17 Add CSRF validation to most disruptive actions
This also switches all such actions to POST requests.

Deleting the project is handled in another commit because it requires more
changes.
2021-07-17 13:54:11 +02:00
Baptiste Jonglez
078f9e8b6b Fix invalid HTML 2021-07-14 16:10:13 +02:00
Baptiste Jonglez
2e4bb0ec8c tests: ensure that /tmp/ihatemoney.db does not get overwritten
Most of the tests are using a separate database, but we have a few tests
that are loading default values and are writing to /tmp/ihatemoney.db.

This is annoying because it's also the database used for development:
running the test suite breaks the dev database.

To fix this, always use a separate testing database to avoid interference.
2021-07-14 10:36:39 +02:00
Reza Almanda
686c60e7c5 Translated using Weblate (Indonesian)
Currently translated at 100.0% (235 of 235 strings)

Co-authored-by: Reza Almanda <rezaalmanda27@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/id/
Translation: I Hate Money/I Hate Money
2021-07-12 23:30:30 +02:00
Andrew Dickinson
72230448a7
Improve localization on the History page using string replacement (#587) 2021-07-12 22:48:19 +02:00
Glandos
2f42afbc69 Translated using Weblate (French)
Currently translated at 100.0% (235 of 235 strings)

Co-authored-by: Glandos <bugs-github@antipoul.fr>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money
2021-07-11 00:25:19 +02:00
phlostically
12167a09bf Translated using Weblate (Esperanto)
Currently translated at 100.0% (235 of 235 strings)

Co-authored-by: phlostically <phlostically@mailinator.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/eo/
Translation: I Hate Money/I Hate Money
2021-07-11 00:25:19 +02:00
Oğuz Ersen
e377bc6443 Translated using Weblate (Turkish)
Currently translated at 100.0% (235 of 235 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/
Translation: I Hate Money/I Hate Money
2021-07-11 00:25:19 +02:00
Glandos
526db044b2 Use "No one" instead of "Noone", that is really too old. 2021-07-10 00:40:06 +02:00
Glandos
ccad5ac859 align translation with existing tokens 2021-07-10 00:40:06 +02:00
Glandos
3f9303d5b5 badges for selectors, and payees in column 2021-07-10 00:40:06 +02:00
Glandos
e9afc539c8 slightly more margin for details 2021-07-10 00:40:06 +02:00
Glandos
c4f98580c1 move extra options to bottom 2021-07-10 00:40:06 +02:00
Glandos
6e2283f915 draft 2021-07-10 00:40:06 +02:00
Baptiste Jonglez
7ceb66f01b Enable CI builds with postgresql and mariadb 2021-07-10 00:39:54 +02:00
Baptiste Jonglez
33aad60352 Clarify that the test config files are not used for all tests... 2021-07-10 00:39:54 +02:00
Baptiste Jonglez
2616bed4ff Fix SQL query in has_multiple_currencies
The previous query was working fine on sqlite and mariadb, but not on
postgresql :

    return self.get_bills_unordered().group_by(Bill.original_currency).count() > 1

    psycopg2.errors.GroupingError: column "bill.id" must appear in the GROUP BY clause or be used in an aggregate function

The failing SQL query was:

    [SQL: SELECT count(*) AS count_1
    FROM (SELECT bill.id AS bill_id, ...
    FROM bill JOIN person ON person.id = bill.payer_id JOIN project ON project.id = person.project_id
    WHERE bill.payer_id = person.id AND person.project_id = project.id AND project.id = %(id_1)s GROUP BY bill.original_currency) AS anon_1]

The problem is that sqlalchemy creates a subquery for postgresql, and the
internal query does not make sense.

GROUP BY is not actually useful, we simply need to count the number of
distinct currencies in the list of bills.
2021-07-10 00:34:43 +02:00
Eugenia Russell
df5d27da50 Translated using Weblate (Greek)
Currently translated at 63.6% (147 of 231 strings)

Co-authored-by: Eugenia Russell <eugenia.russell2019@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/el/
Translation: I Hate Money/I Hate Money
2021-07-09 10:05:06 +02:00
Baptiste Jonglez
8b2da3757c Add missing field description from #774 2021-07-09 01:24:29 +02:00
Baptiste Jonglez
42dd2d6f7d Regenerate translation files 2021-07-09 01:20:50 +02:00
Baptiste Jonglez
ec1e6cf26e project edit form: allow empty private code (= no change)
Currently, the private code is mandatory in the edit form, and it's not
clear whether it's meant to **check** for the right private code or to
**change** the private code.

Make the field optional and rename the help message to make it clearer
it's only meant to **change** the private code.

Also change the field type to "password" instead of simple string.
2021-07-09 01:20:50 +02:00
Baptiste Jonglez
856412a70d project forms: Clarify relation between inheriting classes
The save() function is used to create a new project, so it belongs to the
form creation class.

Also clarify overriden form fields.
2021-07-09 01:20:50 +02:00
Baptiste Jonglez
dae7870b12 Fix error message syntax to allow translation extraction 2021-07-07 01:01:00 +02:00
Glandos
07b86bc580
Rework currency switching (#661)
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>

Currency switching is both simpler and less powerful. This was done primarily for users, to have a clear and logical understanding, but the code is also simpler. The main change is that it is now forbidden to switch a project to "no currency" if bills don't share the same currency.

Also, tests assume that projects are created without currency, as in the web UI.
2021-07-06 21:51:32 +02:00
Eugenia Russell
6f662e9dae Translated using Weblate (Greek)
Currently translated at 63.2% (146 of 231 strings)

Co-authored-by: Eugenia Russell <eugenia.russell2019@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/el/
Translation: I Hate Money/I Hate Money
2021-06-24 23:00:00 +02:00
Glandos
27d95f2d01 fix flake8 2021-06-10 00:09:59 +02:00
Glandos
c62965d4bf fix basic deprecation warnings 2021-06-10 00:09:59 +02:00
Glandos
44fa1af375 change method to find login_throttler
that was triggering a lot of deprecation warnings due to
iterating over all known objects.
2021-06-10 00:09:59 +02:00
Glandos
69a1ad6685 Adapt code for https://github.com/wtforms/wtforms/pull/568 2021-06-09 23:38:05 +02:00
Glandos
6c43ffaac4 Adapt code for https://github.com/wtforms/wtforms/pull/288 2021-06-09 23:38:05 +02:00
Glandos
859aa8fb1e
Fix test for generate_hash_password (#766)
Use the function that check password instead of just checking the output length. This length can be variable and will change with Werkzeug 2
2021-06-07 23:11:38 +02:00
Glandos
74e222f1a1 remove usage of Flask-Script
Use flask.cli instead with compatibility layer for existing commands,
such as "runserver".
2021-06-06 15:13:21 +02:00
Kristoffer Grundström
08b3765bdd Translated using Weblate (Swedish)
Currently translated at 85.7% (198 of 231 strings)

Co-authored-by: Kristoffer Grundström <swedishsailfishosuser@tutanota.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/sv/
Translation: I Hate Money/I Hate Money
2021-06-03 21:57:06 +02:00
phlostically
065449bb5e Translated using Weblate (Esperanto)
Currently translated at 100.0% (231 of 231 strings)

Translated using Weblate (Esperanto)

Currently translated at 94.8% (219 of 231 strings)

Translated using Weblate (Esperanto)

Currently translated at 92.6% (214 of 231 strings)

Co-authored-by: phlostically <phlostically@mailinator.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/eo/
Translation: I Hate Money/I Hate Money
2021-06-03 21:57:06 +02:00
Vsevolod
467870a245 Translated using Weblate (Russian)
Currently translated at 100.0% (231 of 231 strings)

Co-authored-by: Vsevolod <sevauserg.com@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ru/
Translation: I Hate Money/I Hate Money
2021-06-03 21:57:06 +02:00
Allan Nordhøy
6bea519c78 Translated using Weblate (Norwegian Bokmål)
Currently translated at 74.0% (171 of 231 strings)

Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nb_NO/
Translation: I Hate Money/I Hate Money
2021-06-03 21:57:06 +02:00
Eugenia Russell
3a521c2f33 Translated using Weblate (Greek)
Currently translated at 55.8% (129 of 231 strings)

Translated using Weblate (Greek)

Currently translated at 42.8% (99 of 231 strings)

Translated using Weblate (Greek)

Currently translated at 26.4% (61 of 231 strings)

Co-authored-by: Eugenia Russell <eugenia.russell2019@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/el/
Translation: I Hate Money/I Hate Money
2021-06-03 21:57:06 +02:00
fcoterroba
b79cfe8319 Translated using Weblate (Spanish)
Currently translated at 42.4% (98 of 231 strings)

Co-authored-by: fcoterroba <fcoterroba@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es/
Translation: I Hate Money/I Hate Money
2021-04-16 23:24:19 +02:00
whenwesober
b09df5b05a Translated using Weblate (Indonesian)
Currently translated at 100.0% (231 of 231 strings)

Co-authored-by: whenwesober <naomi16i_1298q@cikuh.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/id/
Translation: I Hate Money/I Hate Money
2021-04-16 23:24:19 +02:00
Reza Almanda
1a10e0ea0f Translated using Weblate (Indonesian)
Currently translated at 100.0% (231 of 231 strings)

Co-authored-by: Reza Almanda <rezaalmanda27@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/id/
Translation: I Hate Money/I Hate Money
2021-04-16 23:24:19 +02:00
Eugenia Russell
20c7302683 Translated using Weblate (Greek)
Currently translated at 24.6% (57 of 231 strings)

Translated using Weblate (Greek)

Currently translated at 20.7% (48 of 231 strings)

Co-authored-by: Eugenia Russell <eugenia.russell2019@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/el/
Translation: I Hate Money/I Hate Money
2021-04-16 23:24:19 +02:00
Glandos
c617a17457 Deleted translation using Weblate (Telugu) 2021-04-12 23:13:53 +02:00
Pratyush Kongalla
d8f9ef2dc9 Added translation using Weblate (Telugu)
Co-authored-by: Pratyush Kongalla <connect2pratyush@gmail.com>
2021-04-12 23:13:53 +02:00
958a85148f
Navbar change (#739)
* Changed the navbar element spacing to make it look more even.

* Put history and settings in a submenu

Co-authored-by: Joshua <mckerracher@gmail.com>
2021-04-12 21:23:25 +02:00
Weblate (bot)
400149bad1
Translations update from Weblate (#725)
* Added translation using Weblate (Telugu)

Co-authored-by: Pratyush Kongalla <connect2pratyush@gmail.com>

* Translated using Weblate (Serbian)

Currently translated at 36.3% (84 of 231 strings)

Added translation using Weblate (Serbian)

Co-authored-by: Rastko Sarcevic <ralesarcevic@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/sr/
Translation: I Hate Money/I Hate Money

* Deleted translation using Weblate (Telugu)

Co-authored-by: Pratyush Kongalla <connect2pratyush@gmail.com>
Co-authored-by: Rastko Sarcevic <ralesarcevic@gmail.com>
Co-authored-by: Glandos <bugs-github@antipoul.fr>
2021-04-11 16:36:35 +02:00
c23145ce2a
Change the URL of the exchange API. Fixes #735 (#736) 2021-04-07 15:29:33 +02:00
TomSolGit
4c12de5beb Translated using Weblate (Italian)
Currently translated at 100.0% (231 of 231 strings)

Co-authored-by: TomSolGit <Tommaso.solfa@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/it/
Translation: I Hate Money/I Hate Money
2021-03-17 20:26:54 +01:00
Michalis
97b0ad14f0 Translated using Weblate (Greek)
Currently translated at 15.1% (35 of 231 strings)

Co-authored-by: Michalis <michalisntovas@yahoo.gr>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/el/
Translation: I Hate Money/I Hate Money
2021-02-23 22:11:03 +01:00
Reza Almanda
0a538c276e Translated using Weblate (Indonesian)
Currently translated at 83.9% (194 of 231 strings)

Co-authored-by: Reza Almanda <rezaalmanda27@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/id/
Translation: I Hate Money/I Hate Money
2021-02-23 22:11:03 +01:00
Reza Almanda
9245a52f82 Translated using Weblate (Indonesian)
Currently translated at 69.6% (161 of 231 strings)

Co-authored-by: Reza Almanda <rezaalmanda27@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/id/
Translation: I Hate Money/I Hate Money
2021-02-17 09:55:00 +01:00
Sander Kooijmans
bf716027d6 Translated using Weblate (Dutch)
Currently translated at 91.3% (211 of 231 strings)

Co-authored-by: Sander Kooijmans <weblate@gogognome.nl>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nl/
Translation: I Hate Money/I Hate Money
2021-02-17 09:55:00 +01:00
Rens
7372735107 Translated using Weblate (Dutch)
Currently translated at 91.3% (211 of 231 strings)

Translated using Weblate (Dutch)

Currently translated at 80.0% (185 of 231 strings)

Co-authored-by: Rens <hallo@rensoliemans.nl>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nl/
Translation: I Hate Money/I Hate Money
2021-02-17 09:55:00 +01:00
Sander Kooijmans
7dbb5fa712 Translated using Weblate (Dutch)
Currently translated at 80.0% (185 of 231 strings)

Co-authored-by: Sander Kooijmans <weblate@gogognome.nl>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nl/
Translation: I Hate Money/I Hate Money
2021-02-17 09:55:00 +01:00
Rens
e193e965d2 Translated using Weblate (Dutch)
Currently translated at 79.2% (183 of 231 strings)

Co-authored-by: Rens <hallo@rensoliemans.nl>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nl/
Translation: I Hate Money/I Hate Money
2021-02-17 09:55:00 +01:00
Sander Kooijmans
e5d4e52d3b Translated using Weblate (Dutch)
Currently translated at 79.2% (183 of 231 strings)

Co-authored-by: Sander Kooijmans <weblate@gogognome.nl>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nl/
Translation: I Hate Money/I Hate Money
2021-02-17 09:55:00 +01:00
Rens
c7f654ce6d Translated using Weblate (Dutch)
Currently translated at 78.3% (181 of 231 strings)

Translated using Weblate (Dutch)

Currently translated at 77.4% (179 of 231 strings)

Co-authored-by: Rens <hallo@rensoliemans.nl>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nl/
Translation: I Hate Money/I Hate Money
2021-02-17 09:55:00 +01:00
Sander Kooijmans
db280d470a Translated using Weblate (Dutch)
Currently translated at 78.3% (181 of 231 strings)

Translated using Weblate (Dutch)

Currently translated at 77.4% (179 of 231 strings)

Co-authored-by: Sander Kooijmans <weblate@gogognome.nl>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nl/
Translation: I Hate Money/I Hate Money
2021-02-17 09:55:00 +01:00
Rens
a8e84b9fb9 Translated using Weblate (Dutch)
Currently translated at 76.6% (177 of 231 strings)

Co-authored-by: Rens <hallo@rensoliemans.nl>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nl/
Translation: I Hate Money/I Hate Money
2021-02-17 09:55:00 +01:00
Sander Kooijmans
9cfc6cdada Translated using Weblate (Dutch)
Currently translated at 76.6% (177 of 231 strings)

Co-authored-by: Sander Kooijmans <weblate@gogognome.nl>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/nl/
Translation: I Hate Money/I Hate Money
2021-02-17 09:55:00 +01:00
Michalis
a43e68da0d Translated using Weblate (Greek)
Currently translated at 15.1% (35 of 231 strings)

Co-authored-by: Michalis <michalisntovas@yahoo.gr>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/el/
Translation: I Hate Money/I Hate Money
2021-02-17 09:55:00 +01:00
whenwesober
cb0b9d58bc Translated using Weblate (Indonesian)
Currently translated at 68.8% (159 of 231 strings)

Co-authored-by: whenwesober <naomi16i_1298q@cikuh.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/id/
Translation: I Hate Money/I Hate Money
2021-01-26 18:07:31 +01:00
an p
1c27081809 Translated using Weblate (Greek)
Currently translated at 14.2% (33 of 231 strings)

Co-authored-by: an p <anastasiapapacosta@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/el/
Translation: I Hate Money/I Hate Money
2021-01-14 21:31:59 +01:00
Oliver Klimt
be62e39f13 Translated using Weblate (Czech)
Currently translated at 19.4% (45 of 231 strings)

Co-authored-by: Oliver Klimt <klimt.oliver@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/cs/
Translation: I Hate Money/I Hate Money
2021-01-09 22:42:30 +01:00
Glandos
264f846e0e Translated using Weblate (Italian)
Currently translated at 96.5% (223 of 231 strings)

Co-authored-by: Glandos <bugs-github@antipoul.fr>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/it/
Translation: I Hate Money/I Hate Money
2021-01-06 14:03:04 +01:00
Miguel Victoria Villaquiran
18068d76ca
Simplify tests (#685)
Fix #501
2021-01-05 22:17:26 +01:00
Glandos
3f4b47276e Set black target to python3.6 2020-11-25 09:25:36 +01:00
Glandos
ce4d64da57 formatting 2020-11-24 22:25:02 +01:00
Mayank Choudhary
6ec7dd6077
Added a page for downloading mobile application (#688)
Fixes #597 
Fixes #697 

Co-authored-by: Glandos <bugs-github@antipoul.fr>
2020-11-24 22:22:46 +01:00
Baptiste Jonglez
8a5193f443 Localize date in the "Added on" tooltip in the list of bills 2020-11-13 21:40:39 +01:00
Baptiste Jonglez
384d3eeb2c Document timezone settings 2020-11-13 21:40:39 +01:00
Baptiste Jonglez
914482bc76 Use Flask-Babel to localize datetime in the History Page
By formatting datetime on the server, we get nice localized datetime
strings that are adapted to the currently-selected language.  Example:

- English: "Apr 26, 2020, 3:58:54 PM"
- French: "26 avr. 2020 à 15:58:54"
- German: "26.04.2020, 15:58:54"
- Spanish: "26 abr. 2020 15:58:54"
- Indonesian: "26 Apr 2020 15.58.54"
- Chinese: "2020年4月26日 下午3:58:54"

However, there is a downside: time is not adapted to the user timezone.

The solution is to define a timezone on the server: we use the server OS
timezone by default, and it can be customized through the
BABEL_DEFAULT_TIMEZONE setting.  It's still not ideal, because it assumes
that all users are in the same timezone (the one configured on the server).
2020-11-13 21:40:39 +01:00
Baptiste Jonglez
e1746e81f5 Add portuguese to available languages 2020-11-13 00:28:52 +01:00
Jingwen Yang
106bc2df28 Add Japanese to the supported languages 2020-11-13 00:13:29 +01:00
mppmpp315
6833c6eee8 Update messages.po 2020-11-13 00:10:48 +01:00
Puyma
d8d006f800 Translated using Weblate (Spanish)
Currently translated at 41.5% (96 of 231 strings)

Translated using Weblate (Spanish (Latin America))

Currently translated at 98.2% (227 of 231 strings)

Co-authored-by: Puyma <puyma@amyup.xyz>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es/
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/es_419/
Translation: I Hate Money/I Hate Money
2020-11-13 00:09:17 +01:00
Jwen921
94a472be96 Translated using Weblate (Japanese)
Currently translated at 100.0% (231 of 231 strings)

Translated using Weblate (Japanese)

Currently translated at 77.9% (180 of 231 strings)

Co-authored-by: Jwen921 <yangjingwen0921@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ja/
Translation: I Hate Money/I Hate Money
2020-11-13 00:09:17 +01:00
Weblate (bot)
a0280b657e
Translations update from Weblate (#693)
* Translated using Weblate (German)

Currently translated at 100.0% (231 of 231 strings)

Co-authored-by: mdmdmdmdmd <exe_tmp@gmx.de>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/de/
Translation: I Hate Money/I Hate Money

* Translated using Weblate (Japanese)

Currently translated at 15.5% (36 of 231 strings)

Co-authored-by: Jwen921 <yangjingwen0921@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ja/
Translation: I Hate Money/I Hate Money

Co-authored-by: mdmdmdmdmd <exe_tmp@gmx.de>
Co-authored-by: Jwen921 <yangjingwen0921@gmail.com>
2020-11-08 13:10:26 +01:00
Kristoffer Grundström
5f54232e78 Translated using Weblate (Swedish)
Currently translated at 1.7% (4 of 231 strings)

Added translation using Weblate (Swedish)

Co-authored-by: Kristoffer Grundström <swedishsailfishosuser@tutanota.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/sv/
Translation: I Hate Money/I Hate Money
2020-10-31 18:26:35 +01:00
Sylphystia
e312acebbd Translated using Weblate (Italian)
Currently translated at 100.0% (231 of 231 strings)

Co-authored-by: Sylphystia <yuidirnt@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/it/
Translation: I Hate Money/I Hate Money
2020-10-31 18:26:35 +01:00
Jwen921
46ae3e0bc2 Added translation using Weblate (Japanese)
Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (231 of 231 strings)

Co-authored-by: Jwen921 <yangjingwen0921@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/zh_Hans/
Translation: I Hate Money/I Hate Money
2020-10-31 18:26:35 +01:00