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) »
  • How to add custom strings and translation to a tpl ?
Pages: [1]

Author Topic: How to add custom strings and translation to a tpl ?  (Read 1283 times)

bendev

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
How to add custom strings and translation to a tpl ?
December 09, 2011, 09:14:20 am
Hello,

I am using Civicrm in a drupal installation.
I have modified slightly a template to add some explanations to the user.

How can I translate the new sentences that I have just added ? Is there a way to create a custom .mo file for the additional text ?

Is the procedure described somewhere ?

Many thanks

bendev

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: How to add custom strings and translation to a tpl ?
December 11, 2011, 02:35:11 am
sorry,

I didn't realize that I could include PHP code in smarty templates.
So I can use the t function from drupal to do so.

regards.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • How to add custom strings and translation to a tpl ?

This forum was archived on 2017-11-26.