Commit fe4dfc5c by Clinton Blackburn Committed by Clinton Blackburn

Fixed bug in translations

ENT-638
parent 696d5606
...@@ -8,7 +8,7 @@ msgid "" ...@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-10-12 20:55+0000\n" "POT-Creation-Date: 2017-10-30 22:36-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -162,43 +162,43 @@ msgstr "" ...@@ -162,43 +162,43 @@ msgstr ""
msgid "All credit seats must designate a number of credit hours." msgid "All credit seats must designate a number of credit hours."
msgstr "" msgstr ""
#: ecommerce/static/js/pages/basket_page.js:25 #: ecommerce/static/js/pages/basket_page.js:26
msgid "Problem occurred during checkout. Please contact support" msgid "Problem occurred during checkout. Please contact support."
msgstr "" msgstr ""
#: ecommerce/static/js/pages/basket_page.js:97 #: ecommerce/static/js/pages/basket_page.js:99
msgid "This field is required" msgid "This field is required"
msgstr "" msgstr ""
#: ecommerce/static/js/pages/basket_page.js:132 #: ecommerce/static/js/pages/basket_page.js:134
msgid "Invalid card number" msgid "Invalid card number"
msgstr "" msgstr ""
#: ecommerce/static/js/pages/basket_page.js:134 #: ecommerce/static/js/pages/basket_page.js:136
msgid "Unsupported card type" msgid "Unsupported card type"
msgstr "" msgstr ""
#: ecommerce/static/js/pages/basket_page.js:136 #: ecommerce/static/js/pages/basket_page.js:138
msgid "Invalid security number" msgid "Invalid security number"
msgstr "" msgstr ""
#: ecommerce/static/js/pages/basket_page.js:141 #: ecommerce/static/js/pages/basket_page.js:143
msgid "Invalid month" msgid "Invalid month"
msgstr "" msgstr ""
#: ecommerce/static/js/pages/basket_page.js:143 #: ecommerce/static/js/pages/basket_page.js:145
msgid "Invalid year" msgid "Invalid year"
msgstr "" msgstr ""
#: ecommerce/static/js/pages/basket_page.js:145 #: ecommerce/static/js/pages/basket_page.js:147
msgid "Card expired" msgid "Card expired"
msgstr "" msgstr ""
#: ecommerce/static/js/pages/basket_page.js:368 #: ecommerce/static/js/pages/basket_page.js:465
msgid "<Choose state/province>" msgid "<Choose state/province>"
msgstr "" msgstr ""
#: ecommerce/static/js/pages/basket_page.js:369 #: ecommerce/static/js/pages/basket_page.js:466
msgid "State/Province (required)" msgid "State/Province (required)"
msgstr "" msgstr ""
......
...@@ -7,7 +7,7 @@ msgid "" ...@@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-10-12 20:55+0000\n" "POT-Creation-Date: 2017-10-30 22:36-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -185,10 +185,10 @@ msgstr "" ...@@ -185,10 +185,10 @@ msgstr ""
" ѕιт αмєт, ¢σηѕє¢тєтυя α#" " ѕιт αмєт, ¢σηѕє¢тєтυя α#"
#: ecommerce/static/js/pages/basket_page.js #: ecommerce/static/js/pages/basket_page.js
msgid "Problem occurred during checkout. Please contact support" msgid "Problem occurred during checkout. Please contact support."
msgstr "" msgstr ""
"Prößlém öççürréd dürïng çhéçköüt. Pléäsé çöntäçt süppört Ⱡ'σяєм ιρѕυм ∂σłσя " "Prößlém öççürréd dürïng çhéçköüt. Pléäsé çöntäçt süppört. Ⱡ'σяєм ιρѕυм ∂σłσя"
"ѕιт αмєт, ¢σηѕє¢тєтυя α#" " ѕιт αмєт, ¢σηѕє¢тєтυя α#"
#: ecommerce/static/js/pages/basket_page.js #: ecommerce/static/js/pages/basket_page.js
msgid "This field is required" msgid "This field is required"
......
...@@ -16,7 +16,9 @@ class EnterprisePercentageDiscountBenefit(BenefitWithoutRangeMixin, PercentageBe ...@@ -16,7 +16,9 @@ class EnterprisePercentageDiscountBenefit(BenefitWithoutRangeMixin, PercentageBe
@property @property
def name(self): def name(self):
return _('{value}% enterprise discount').format(value=self.value) # NOTE: We are not using str.format() because gettext incorrectly parses the string,
# resulting in translation compilation errors.
return _('%d%% enterprise discount') % self.value
class EnterpriseAbsoluteDiscountBenefit(BenefitWithoutRangeMixin, AbsoluteBenefitMixin, AbsoluteDiscountBenefit): class EnterpriseAbsoluteDiscountBenefit(BenefitWithoutRangeMixin, AbsoluteBenefitMixin, AbsoluteDiscountBenefit):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment