ecard/includes/email.card.inc has:
t('Your E-Card was send.');
and
t('A copy of your E-Card was send to you.');
Proper tense is 'sent'.
ecard/theme/ecard_field.tpl.php fails to have 'Hey' and 'Regards' as translatable strings:
<div class="name-to">Hey <?php print $variables['ecard']->name_to ?>,</div>
<div class="content">Regards <?php print $variables['ecard']->name_from ?></div>
They should be included in a t() function for proper multilingual usage:
<div class="name-to"><?php print t('Hey') ?> <?php print $variables['ecard']->name_to ?>,<br>
<div class="content"><br><?php print t('Regards') ?>, <?php print $variables['ecard']->name_from ?>
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1380428-3.patch | 35.43 KB | stella |
| #2 | ecard-strings.patch | 2.29 KB | kars-t |
Comments
Comment #1
rooby commentedCan you make a patch of the changes you mention?
Comment #2
kars-t commentedHi
did make a patch because I currently can't test it.
The template is ugly like this so I put the t() strings in the function that calls the template. And I fixed the typos. Please test it.
Comment #3
stella commentedRerolled patch attached. The above patch didn't call the t() function correctly. The second argument needs to be an array.
The attached patch contains a fix for that, but also the following changes:
Comment #4
kars-t commentedMuch much nicer! Added the patch