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) »
  • custom error template by language?
Pages: [1]

Author Topic: custom error template by language?  (Read 1239 times)

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
custom error template by language?
July 08, 2010, 09:37:45 am
/civicrm/admin/setting/debug?reset=1 lets one set a fatal error template. Is it possible for these to be locale dependent? If so, how would one configure that?
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: custom error template by language?
July 09, 2010, 04:40:01 am
Quote from: JoeMurray on July 08, 2010, 09:37:45 am
/civicrm/admin/setting/debug?reset=1 lets one set a fatal error template. Is it possible for these to be locale dependent? If so, how would one configure that?

You can either use {ts} blocks in that template (but you’ll have to provide your own translation of the strings in PO files and compile new MO files from the current PO files + yours addendum for every language) or you can try exposing the config object to that template (if it’s not exposed already) and make the template use $config->lcMessages to display different strings in different languages.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • custom error template by language?

This forum was archived on 2017-11-26.