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) »
  • Some translated text dows not show up
Pages: [1]

Author Topic: Some translated text dows not show up  (Read 4330 times)

korell

  • Guest
Some translated text dows not show up
January 29, 2008, 11:57:49 pm
When I am testing my translation to check that it correct, I find that some translated text does not show up in the new language. I cannot find out the problem yet, but some translated text are showing up correctly and some text will not show up as translated.

Example:
On the "civicrm/event/info&reset=1&id=1" page, everything is showing up as it should. My next step is to fix the next page.
On the "civicrm/event/register&id=1&reset=1" page I started translating the text "Event Fee(s)", but it won't show up in my language. This also applies to other texts.

Any idea what the problem can be?



Michał Mach

  • Moderator
  • Ask me questions
  • *****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Some translated text dows not show up
January 30, 2008, 12:02:44 am
Can you look into .po file in your language and verify if "Event Fee(s)" string has a translation? Also, check if .mo files you're using are updated correctly.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

korell

  • Guest
Re: Some translated text dows not show up
January 30, 2008, 12:13:00 am
I've been using both "poedit" and "ini translator" to verify that the text is translated properly. The translation shows up in civicrm.po after running msgcat on the files, and then I run msgfmt with no errors. Everything seems to be working as it should.


Michał Mach

  • Moderator
  • Ask me questions
  • *****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Some translated text dows not show up
January 30, 2008, 01:10:32 am
Another suggestion in such case: can you check if the template file that should display translated string is not cached by Smarty? If it is, you should be able to see the translated template after removing the contents of templates_c directory.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

korell

  • Guest
Re: Some translated text dows not show up
January 30, 2008, 01:48:34 am
Good tips, I did'nt think of that. Unfortunately it did not help to remove the templates... I deleted all the files and reloaded the page. Same content.

Can there be any conflicts with drupal and the strings in drupal? The civicrm localize module? Any other drupal localization conflicts? I may have tried to translate some strings the drupal-way before I found out how to do it correctly with Civicrm.

Michał Mach

  • Moderator
  • Ask me questions
  • *****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Some translated text dows not show up
February 01, 2008, 09:08:48 pm
I would be very surprised if the cause was a conflict between Drupal's and CiviCRM's localisation systems. Both use completely different solution, separate ones, so there shouldn't be any probems with those two running next to each other. Also, CiviCRM localisation code doesn't really have any conditions, it's pretty simple,

Here's another test - please remove .mo file, remove cached templates and reload page: you shouldn't see any translated strings. Let me know what the outcome will be - based on that we can try to investigate the problem further.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Michał Mach

  • Moderator
  • Ask me questions
  • *****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Some translated text dows not show up
February 04, 2008, 11:31:36 pm
Any luck with your problem?
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Some translated text dows not show up

This forum was archived on 2017-11-26.