diff --git a/ihatemoney/forms.py b/ihatemoney/forms.py index 26b72d0e..a55166e8 100644 --- a/ihatemoney/forms.py +++ b/ihatemoney/forms.py @@ -41,8 +41,8 @@ def strip_filter(string): def get_billform_for(project, set_default=True, **kwargs): """Return an instance of BillForm configured for a particular project. - :set_default: if set to True, on GET methods (usually when we want to - display the default form, it will call set_default on it. + :set_default: if set to True, it will call set_default on GET methods (usually + when we want to display the default form). """ form = BillForm(**kwargs) @@ -248,9 +248,8 @@ class DestructiveActionProjectForm(FlaskForm): - delete project itself - delete history - delete IP addresses in history - - possibly others in the future - It asks the user to enter the private code to confirm deletion. + It asks the participant to enter the private code to confirm deletion. """ password = PasswordField( @@ -388,7 +387,7 @@ class MemberForm(FlaskForm): def validate_name(form, field): if field.data == form.name.default: - raise ValidationError(_("User name incorrect")) + raise ValidationError(_("The participant name is invalid")) if ( not form.edit and Person.query.filter( @@ -397,7 +396,7 @@ class MemberForm(FlaskForm): Person.activated, ).all() ): # NOQA - raise ValidationError(_("This project already have this member")) + raise ValidationError(_("This project already have this participant")) def save(self, project, person): # if the user is already bound to the project, just reactivate him diff --git a/ihatemoney/messages.pot b/ihatemoney/messages.pot index 1a5e8597..c08d3703 100644 --- a/ihatemoney/messages.pot +++ b/ihatemoney/messages.pot @@ -144,10 +144,10 @@ msgstr "" msgid "Add" msgstr "" -msgid "User name incorrect" +msgid "The participant name is invalid" msgstr "" -msgid "This project already have this member" +msgid "This project already have this participant" msgstr "" msgid "People to notify" @@ -268,28 +268,28 @@ msgstr "" msgid "%(member)s has been added" msgstr "" -msgid "Error activating member" +msgid "Error activating participant" msgstr "" #, python-format msgid "%(name)s is part of this project again" msgstr "" -msgid "Error removing member" +msgid "Error removing participant" msgstr "" #, python-format msgid "" -"User '%(name)s' has been deactivated. It will still appear in the users " -"list until its balance becomes zero." +"Participant '%(name)s' has been deactivated. It will still appear in the " +"list until its balance reach zero." msgstr "" #, python-format -msgid "User '%(name)s' has been removed" +msgid "Participant '%(name)s' has been removed" msgstr "" #, python-format -msgid "User '%(name)s' has been edited" +msgid "Participant '%(name)s' has been modified" msgstr "" msgid "The bill has been added" @@ -328,6 +328,9 @@ msgstr "" msgid "Administration tasks are currently disabled." msgstr "" +msgid "Authentication" +msgstr "" + msgid "The project you are trying to access do not exist, do you want to" msgstr "" @@ -343,7 +346,7 @@ msgstr "" msgid "Project" msgstr "" -msgid "Number of members" +msgid "Number of participants" msgstr "" msgid "Number of bills" @@ -439,7 +442,7 @@ msgstr "" msgid "Add participant" msgstr "" -msgid "Edit this member" +msgid "Edit this participant" msgstr "" msgid "john.doe@example.com, mary.moe@site.com" diff --git a/ihatemoney/models.py b/ihatemoney/models.py index f4137d65..473e7c0b 100644 --- a/ihatemoney/models.py +++ b/ihatemoney/models.py @@ -133,9 +133,9 @@ class Project(db.Model): @property def members_stats(self): - """Compute what each member has paid + """Compute what each participant has paid - :return: one stat dict per member + :return: one stat dict per participant :rtype list: """ balance, spent, paid = self.full_balance @@ -493,7 +493,7 @@ class Person(db.Model): } def has_bills(self): - """return if the user do have bills or not""" + """return if the participant do have bills or not""" bills_as_ower_number = ( db.session.query(billowers) .filter(billowers.columns.get("person_id") == self.id) diff --git a/ihatemoney/templates/authenticate.html b/ihatemoney/templates/authenticate.html index 4e8eb779..fcc617fa 100644 --- a/ihatemoney/templates/authenticate.html +++ b/ihatemoney/templates/authenticate.html @@ -1,6 +1,6 @@ {% extends "layout.html" %} {% block content %} -
{{ _("The project you are trying to access do not exist, do you want to") }} diff --git a/ihatemoney/templates/dashboard.html b/ihatemoney/templates/dashboard.html index 3e26441a..6036de98 100644 --- a/ihatemoney/templates/dashboard.html +++ b/ihatemoney/templates/dashboard.html @@ -2,7 +2,7 @@ {% block content %} {% if is_admin_dashboard_activated %}
{{ _("Project") }} | {{ _("Number of members") }} | {{ _("Number of bills") }} | {{_("Newest bill")}} | {{_("Oldest bill")}} | {{_("Actions")}} |
---|---|---|---|---|---|
{{ _("Project") }} | {{ _("Number of participants") }} | {{ _("Number of bills") }} | {{_("Newest bill")}} | {{_("Oldest bill")}} | {{_("Actions")}} |
{{ project.name }} | {{ project.members | count }} | {{ project.get_bills_unordered().count() }} | diff --git a/ihatemoney/templates/debug.html b/ihatemoney/templates/debug.html deleted file mode 100644 index 6f976676..00000000 --- a/ihatemoney/templates/debug.html +++ /dev/null @@ -1 +0,0 @@ -Yeah diff --git a/ihatemoney/templates/download_mobile_app.html b/ihatemoney/templates/download_mobile_app.html index b343c71f..8cc15ed6 100644 --- a/ihatemoney/templates/download_mobile_app.html +++ b/ihatemoney/templates/download_mobile_app.html @@ -9,12 +9,12 @@