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) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • I18N support using Dialog.tpl
Pages: [1]

Author Topic: I18N support using Dialog.tpl  (Read 647 times)

sussdorff

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 4
  • CiviCRM version: 3.4
  • CMS version: Drupal 6
I18N support using Dialog.tpl
September 14, 2011, 12:54:45 am
I have an issue (CRM-8865) with supporting I18N for labels of price set options, because

 {include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_price_field_value' field='label' id=$id}

Can't read the $id in /templates/CRM/Price/Form/Option.tpl. If I fill in a value manually it works like a charm, but if I use $id a SQL error pops up, which pretty much means that $id is not readable.

What needs to be done in the Option.php so $id will be replace with "6" when I include Dialog.tpl. I thought about creating a new variable just for this and then set it to this->_id, but that can't be the correct solution.

Btw, this would also fix CRM-8864

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • I18N support using Dialog.tpl

This forum was archived on 2017-11-26.