CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Translate Price Option Labels for an Event
Pages: [1]

Author Topic: Translate Price Option Labels for an Event  (Read 1557 times)

curtisg

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.0.5
  • CMS version: Drupal 7.7
  • MySQL version: 5.0.45
  • PHP version: 5.26
Translate Price Option Labels for an Event
January 31, 2012, 12:44:55 pm
Hello,

I'm building a french version of an event registration form and I can't figure out how to translate the option label for my Event Prices. I don't get the little green translation box like I do for other things (see atached screen grab).

Is this not supported yet or am I missing something?

Any help would be greatly appreciated.

Cheers,

Curtis

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Translate Price Option Labels for an Event
February 01, 2012, 02:08:37 am
This is bug and fix will be part of next release. You can get the fix from below patch.

Quote
Index: templates/CRM/Price/Form/Option.tpl===================================================================
--- templates/CRM/Price/Form/Option.tpl (revision 38577)
+++ templates/CRM/Price/Form/Option.tpl (working copy)
@@ -43,7 +43,7 @@
            {/if}
            <tr class="crm-price-option-form-block-label">
                <td class="label">{$form.label.label}</td>
-               <td>{$form.label.html}</td>
+               <td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field_value' field='label' id=$sid}{/if}{$form.label.html}</td>
             </tr>
             <tr class="crm-price-option-form-block-amount">
                 <td class="label">{$form.amount.label}</td>
@@ -51,7 +51,7 @@
             </tr>
             <tr class="crm-price-option-form-block-description">
                 <td class="label">{$form.description.label}</td>
-                <td>{$form.description.html}</td>
+                <td>{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field_value' field='description' id=$sid}{/if}{$form.description.html}</td>             </tr>             <tr class="crm-price-option-form-block-count">
                 <td class="label">{$form.count.label}</td>


Thanks

Kurund
Found this reply helpful? Support CiviCRM

curtisg

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.0.5
  • CMS version: Drupal 7.7
  • MySQL version: 5.0.45
  • PHP version: 5.26
Re: Translate Price Option Labels for an Event
February 01, 2012, 07:56:09 am
Awesome thanks Kurund! I also figured out that you can translate them by switching the languages in the admin.

Cheers,

Curtis

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Translate Price Option Labels for an Event

This forum was archived on 2017-11-26.