Closed (won't fix)
Project:
CiviEvent Discount
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
15 Apr 2011 at 03:03 UTC
Updated:
18 Nov 2011 at 03:56 UTC
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
Comment #1
dharmatech commentedTypically, 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.
Comment #2
kathc commentedThanks for the response. We've had to do a lot of translations in CiviCRM also, so I'll take a whack at it there.
Comment #3
dharmatech commentedkathc,
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.
Comment #4
dharmatech commented