Commit 9727bd1e authored by Bastien Ho's avatar Bastien Ho 👽
Browse files

Make strings translatable

parent fd5233be
Showing with 4 additions and 2 deletions
+4 -2
......@@ -377,6 +377,8 @@ function cartable_get_membership_vars($vars){
],
'i18n' => [
'dateformat' => 'dd MM',
'my_contribution' => E::ts('My Contribution'),
'your_salary_tax_free' => E::ts('Your monthly salary, tax free'),
]
];
if(civicrm_api3('Setting', 'getvalue', [
......
......@@ -101,7 +101,7 @@ const cartable_reset_membership_amount = function(){
MembershipSelector.append(
CRM.$('<h3>')
.addClass('cartable-title cartable-membership-title')
.text('My contribution')
.text(cartable.Membership.i18n.my_contribution)
);
MembershipSelector.append(
......@@ -113,7 +113,7 @@ const cartable_reset_membership_amount = function(){
MembershipSelector.append(
CRM.$('<h3>')
.addClass('cartable-title cartable-membership-salary-title')
.text('Your monthly salary, tax free')
.text(cartable.Membership.i18n.your_salary_tax_free)
);
SalarySelect = CRM.$('<select>')
......
Supports Markdown
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