I am wondering if anyone has used this module to provide a discount code for a multilingual event. Our site is trilingual (English, French and Spanish) and the rest of the online registration is in the appropriate language for each user, but the string for "If you have a discount code, enter it here" does not appear in language search for translation.

I'm not a developer, but I looked in the module file and see that it is in a t( , so I assumed that meant it should be able to appear in each language.

Any help would be very gratefully accepted.

Comments

dharmatech’s picture

Component: Miscellaneous » User interface
Assigned: Unassigned » dharmatech
Status: Active » Closed (won't fix)

Typically, any strings defined in Drupal that are wrapped in the t() function can be overridden using string overrides module. If you're using the locale module, you can even define an override for each language. This works by detecting the language of the currently displayed page. However, since CiviCRM handles it's own translations, the string would most likely need to be defined in the CiviCRM .pot file.

kathc’s picture

Thanks for the response. We've had to do a lot of translations in CiviCRM also, so I'll take a whack at it there.

dharmatech’s picture

Status: Closed (won't fix) » Postponed (maintainer needs more info)

kathc,

We may need to use ts() instead of t() for the textfield and label so CiviCRM .pot files can switch the strings. I'm changing the status back to postponed.

dharmatech’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)