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) »
  • String included in mo file but not used
Pages: [1]

Author Topic: String included in mo file but not used  (Read 507 times)

flo81

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.4
String included in mo file but not used
March 23, 2015, 08:22:02 am
Hi,

I'm using CiviCRM 4.5.8 in french. I followed "official instructions" to setup french language. Some strings are not translated though, like "Address" or "Demographics" in the edit contact form (sections titles). I tried to get the .po file from the .mo file using msgunfmt (gettext), so I could have a look. These strings are correctly translated, I can see it in the .po file, but it seems that it is not used when the page is built (just like if the PHP translation function - t() or something like that - was not used in the tepmplate file). Beside, the CiviCRM string replacement function does not work either (I try to solve my problem using this workaround).

Am I missing something here about translating strings ?

Thank you

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: String included in mo file but not used
March 23, 2015, 08:25:23 am
Mathieu can clarify but I think maybe there is a difference between installing civicrm in French vs installing in English and then switching to French afterwards. Some deeper-down stuff like field names don't get translated in the latter case. Sorry I'm a bit fuzzy on this point though.
Try asking your question on the new CiviCRM help site.

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: String included in mo file but not used
March 23, 2015, 10:39:34 am
Yep, those are the option values which are set during installation. Replied here in the Francophone forum: http://forum.civicrm.org/index.php/topic,36126.0.html

In short: in the "option lists", need to find the "Contact edit options" group and translate those options.

This issue comes up pretty often, but I'm not sure how it can be improved. Some option groups are pretty well hidden from the admin interface.
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

flo81

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.4
Re: String included in mo file but not used
March 24, 2015, 01:00:52 am
I found what I needed thanks to Mathieu's advice. I re-post this workaround here (can be helpful). Some strings are defined here :

/civicrm/admin/options?reset=1

For instance, contact edit form section titles are defined in "Contact Edit Options", and can be modified here.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • String included in mo file but not used

This forum was archived on 2017-11-26.