diff --git a/bin/migrate-tips.py b/bin/migrate-tips.py index ff73544228..6fccd2405f 100644 --- a/bin/migrate-tips.py +++ b/bin/migrate-tips.py @@ -1,5 +1,5 @@ from gratipay.wireup import db, env -from gratipay.models.team.mixins.tip_migration import migrate_all_tips +from gratipay.models.projects.mixins.tip_migration import migrate_all_tips db = db(env()) diff --git a/emails/charge_failed.spt b/emails/charge_failed.spt index a3f856bf0c..c4b0009a52 100644 --- a/emails/charge_failed.spt +++ b/emails/charge_failed.spt @@ -1,14 +1,14 @@ -{{ _("Oh no! A problem supporting {0}!", top_team) }} +{{ _("Oh no! A problem supporting {0}!", top_project) }} [---] text/html {{ _("We tried to charge your credit card {0} today, to fund your ongoing support for {1}, but the charge failed with this message:", format_currency(exchange.amount + exchange.fee, 'USD'), ('{1}'|safe).format( participant.profile_url+'giving/', - top_team if nteams == 1 else ngettext('{0} and {n} other', - '{0} and {n} others', - nteams - 1, - top_team))) }} + top_project if nprojects == 1 else ngettext('{0} and {n} other', + '{0} and {n} others', + nprojects - 1, + top_project))) }}
{{ exchange.note }}@@ -18,10 +18,10 @@ [---] text/plain {{ _("We tried to charge your credit card {0} today, to fund your ongoing support for {1}, but the charge failed with this message:", format_currency(exchange.amount + exchange.fee, 'USD'), - top_team if nteams == 1 else ngettext('{0} and {n} other', - '{0} and {n} others', - nteams - 1, - top_team)) }} + top_project if nprojects == 1 else ngettext('{0} and {n} other', + '{0} and {n} others', + nprojects - 1, + top_project)) }} {{ exchange.note }} diff --git a/emails/charge_succeeded.spt b/emails/charge_succeeded.spt index ee245565a9..9318b7dced 100644 --- a/emails/charge_succeeded.spt +++ b/emails/charge_succeeded.spt @@ -1,14 +1,14 @@ -{{ _("Thanks for supporting {0}!", top_team) }} +{{ _("Thanks for supporting {0}!", top_project) }} [---] text/html {{ _("We charged your credit card {0} today, to fund your ongoing support for {1}. Thanks for using Gratipay!", format_currency(exchange.amount + exchange.fee, 'USD'), ('{1}'|safe).format( participant.profile_url+'giving/', - top_team if nteams == 1 else ngettext('{0} and {n} other', - '{0} and {n} others', - nteams - 1, - top_team))) }} + top_project if nprojects == 1 else ngettext('{0} and {n} other', + '{0} and {n} others', + nprojects - 1, + top_project))) }}