Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make multiple currency optional #864

Merged
merged 3 commits into from
Oct 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions ihatemoney/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ class EditProjectForm(FlaskForm):
_("Default Currency"),
validators=[DataRequired()],
default=CurrencyConverter.no_currency,
description=_(
"Setting a default currency enables currency conversion between bills"
),
)

def __init__(self, *args, **kwargs):
Expand Down
3 changes: 3 additions & 0 deletions ihatemoney/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ msgstr ""
msgid "Default Currency"
msgstr ""

msgid "Setting a default currency enables currency conversion between bills"
msgstr ""

msgid ""
"This project cannot be set to 'no currency' because it contains bills in "
"multiple currencies."
Expand Down
1 change: 0 additions & 1 deletion ihatemoney/templates/forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
{% if config['ENABLE_CAPTCHA'] %}
{{ input(form.captcha) }}
{% endif %}
{{ input(form.default_currency) }}
{% if not home %}
{{ submit(form.submit, home=True) }}
{% endif %}
Expand Down
5 changes: 4 additions & 1 deletion ihatemoney/translations/bn_BD/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-14 22:10+0200\n"
"POT-Creation-Date: 2021-10-18 23:00+0200\n"
"PO-Revision-Date: 2020-08-01 10:41+0000\n"
"Last-Translator: Oymate <dhruboadittya96@gmail.com>\n"
"Language: bn_BD\n"
Expand Down Expand Up @@ -44,6 +44,9 @@ msgstr "প্রকল্পের ইতিহাসের জন্য আই
msgid "Default Currency"
msgstr "ডিফল্ট মুদ্রা"

msgid "Setting a default currency enables currency conversion between bills"
msgstr ""

msgid ""
"This project cannot be set to 'no currency' because it contains bills in "
"multiple currencies."
Expand Down
5 changes: 4 additions & 1 deletion ihatemoney/translations/cs/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-14 22:10+0200\n"
"POT-Creation-Date: 2021-10-18 23:00+0200\n"
"PO-Revision-Date: 2021-09-05 13:34+0000\n"
"Last-Translator: Clonewayx <fillip1@seznam.cz>\n"
"Language: cs\n"
Expand Down Expand Up @@ -41,6 +41,9 @@ msgstr "Záznam IP adres pro historii projektu"
msgid "Default Currency"
msgstr "Výchozí měna"

msgid "Setting a default currency enables currency conversion between bills"
msgstr ""

msgid ""
"This project cannot be set to 'no currency' because it contains bills in "
"multiple currencies."
Expand Down
5 changes: 4 additions & 1 deletion ihatemoney/translations/de/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-14 22:10+0200\n"
"POT-Creation-Date: 2021-10-18 23:00+0200\n"
"PO-Revision-Date: 2021-09-23 19:36+0000\n"
"Last-Translator: Christian H. <sunrisechain@gmail.com>\n"
"Language: de\n"
Expand Down Expand Up @@ -43,6 +43,9 @@ msgstr "IP Tracking für die Projekt-Historie verwenden"
msgid "Default Currency"
msgstr "Standardwährung"

msgid "Setting a default currency enables currency conversion between bills"
msgstr ""

msgid ""
"This project cannot be set to 'no currency' because it contains bills in "
"multiple currencies."
Expand Down
5 changes: 4 additions & 1 deletion ihatemoney/translations/el/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-14 22:10+0200\n"
"POT-Creation-Date: 2021-10-18 23:00+0200\n"
"PO-Revision-Date: 2021-08-01 08:34+0000\n"
"Last-Translator: Eugenia Russell <eugenia.russell2019@gmail.com>\n"
"Language: el\n"
Expand Down Expand Up @@ -42,6 +42,9 @@ msgstr "Χρήση παρακολούθησης IP για ιστορικό έρ
msgid "Default Currency"
msgstr "Προεπιλεγμένο Νόμισμα"

msgid "Setting a default currency enables currency conversion between bills"
msgstr ""

msgid ""
"This project cannot be set to 'no currency' because it contains bills in "
"multiple currencies."
Expand Down
5 changes: 4 additions & 1 deletion ihatemoney/translations/eo/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-14 22:10+0200\n"
"POT-Creation-Date: 2021-10-18 23:00+0200\n"
"PO-Revision-Date: 2021-10-01 20:35+0000\n"
"Last-Translator: phlostically <phlostically@mailinator.com>\n"
"Language: eo\n"
Expand Down Expand Up @@ -43,6 +43,9 @@ msgstr "Registri IP-adresojn en projekta historio"
msgid "Default Currency"
msgstr "Implicita valuto"

msgid "Setting a default currency enables currency conversion between bills"
msgstr ""

msgid ""
"This project cannot be set to 'no currency' because it contains bills in "
"multiple currencies."
Expand Down
5 changes: 4 additions & 1 deletion ihatemoney/translations/es/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-14 22:10+0200\n"
"POT-Creation-Date: 2021-10-18 23:00+0200\n"
"PO-Revision-Date: 2021-04-14 08:27+0000\n"
"Last-Translator: fcoterroba <fcoterroba@gmail.com>\n"
"Language: es\n"
Expand Down Expand Up @@ -44,6 +44,9 @@ msgstr "Usar trackeo IP para historial de proyecto"
msgid "Default Currency"
msgstr "Moneda por defecto"

msgid "Setting a default currency enables currency conversion between bills"
msgstr ""

msgid ""
"This project cannot be set to 'no currency' because it contains bills in "
"multiple currencies."
Expand Down
5 changes: 4 additions & 1 deletion ihatemoney/translations/es_419/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-14 22:10+0200\n"
"POT-Creation-Date: 2021-10-18 23:00+0200\n"
"PO-Revision-Date: 2020-11-11 16:28+0000\n"
"Last-Translator: Puyma <puyma@amyup.xyz>\n"
"Language: es_419\n"
Expand Down Expand Up @@ -44,6 +44,9 @@ msgstr "Registrar la IPs para el historial del proyecto"
msgid "Default Currency"
msgstr "Moneda por defecto"

msgid "Setting a default currency enables currency conversion between bills"
msgstr ""

msgid ""
"This project cannot be set to 'no currency' because it contains bills in "
"multiple currencies."
Expand Down
5 changes: 4 additions & 1 deletion ihatemoney/translations/fa/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-14 22:10+0200\n"
"POT-Creation-Date: 2021-10-18 23:00+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Automatically generated\n"
"Language: fa\n"
Expand Down Expand Up @@ -40,6 +40,9 @@ msgstr ""
msgid "Default Currency"
msgstr ""

msgid "Setting a default currency enables currency conversion between bills"
msgstr ""

msgid ""
"This project cannot be set to 'no currency' because it contains bills in "
"multiple currencies."
Expand Down
5 changes: 4 additions & 1 deletion ihatemoney/translations/fr/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2021-10-14 22:10+0200\n"
"POT-Creation-Date: 2021-10-18 23:00+0200\n"
"PO-Revision-Date: 2021-07-17 21:52+0000\n"
"Last-Translator: Baptiste <weblate@bitsofnetworks.org>\n"
"Language: fr\n"
Expand Down Expand Up @@ -47,6 +47,9 @@ msgstr "Collecter les adresses IP dans l'historique de projet"
msgid "Default Currency"
msgstr "Devise par défaut"

msgid "Setting a default currency enables currency conversion between bills"
msgstr ""

msgid ""
"This project cannot be set to 'no currency' because it contains bills in "
"multiple currencies."
Expand Down
5 changes: 4 additions & 1 deletion ihatemoney/translations/hi/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-14 22:10+0200\n"
"POT-Creation-Date: 2021-10-18 23:00+0200\n"
"PO-Revision-Date: 2020-06-14 14:41+0000\n"
"Last-Translator: raghupalash <singhpalash0@gmail.com>\n"
"Language: hi\n"
Expand Down Expand Up @@ -44,6 +44,9 @@ msgstr "प्रोजेक्ट इतिहास के लिए IP ट
msgid "Default Currency"
msgstr "डिफ़ॉल्ट मुद्रा"

msgid "Setting a default currency enables currency conversion between bills"
msgstr ""

msgid ""
"This project cannot be set to 'no currency' because it contains bills in "
"multiple currencies."
Expand Down
5 changes: 4 additions & 1 deletion ihatemoney/translations/id/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-14 22:10+0200\n"
"POT-Creation-Date: 2021-10-18 23:00+0200\n"
"PO-Revision-Date: 2021-07-12 01:33+0000\n"
"Last-Translator: Reza Almanda <rezaalmanda27@gmail.com>\n"
"Language: id\n"
Expand Down Expand Up @@ -43,6 +43,9 @@ msgstr "Gunakan pelacakan IP untuk riwayat proyek"
msgid "Default Currency"
msgstr "Mata Uang Standar"

msgid "Setting a default currency enables currency conversion between bills"
msgstr ""

msgid ""
"This project cannot be set to 'no currency' because it contains bills in "
"multiple currencies."
Expand Down
5 changes: 4 additions & 1 deletion ihatemoney/translations/it/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-14 22:10+0200\n"
"POT-Creation-Date: 2021-10-18 23:00+0200\n"
"PO-Revision-Date: 2021-03-17 15:18+0000\n"
"Last-Translator: TomSolGit <Tommaso.solfa@gmail.com>\n"
"Language: it\n"
Expand Down Expand Up @@ -44,6 +44,9 @@ msgstr "Utilizzare la localizzazione IP per lo storico del progetto"
msgid "Default Currency"
msgstr "Valuta predefinita"

msgid "Setting a default currency enables currency conversion between bills"
msgstr ""

msgid ""
"This project cannot be set to 'no currency' because it contains bills in "
"multiple currencies."
Expand Down
5 changes: 4 additions & 1 deletion ihatemoney/translations/ja/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-14 22:10+0200\n"
"POT-Creation-Date: 2021-10-18 23:00+0200\n"
"PO-Revision-Date: 2020-11-11 16:28+0000\n"
"Last-Translator: Jwen921 <yangjingwen0921@gmail.com>\n"
"Language: ja\n"
Expand Down Expand Up @@ -42,6 +42,9 @@ msgstr "IPでプロジェクトの歴史を追跡する"
msgid "Default Currency"
msgstr "初期設定にする通貨"

msgid "Setting a default currency enables currency conversion between bills"
msgstr ""

msgid ""
"This project cannot be set to 'no currency' because it contains bills in "
"multiple currencies."
Expand Down