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) »
  • Translation
Pages: [1]

Author Topic: Translation  (Read 4126 times)

leapywca

  • Guest
Translation
October 12, 2009, 05:35:29 am
So I had found a few posts on here about translations and they proved helpful as far as being able to modify and compile the .po files into .mo files. I translated strings from english-english (needed to change out terms such as individual --> participant), and saved it in a en_OO folder. I was able to choose en_OO as my language. Most of the terms have translated on the site however when I go to People-->New Participant to add what was formally a new individual, at the top of the page it still says "New Invidual" right above the save, save and new, and cancel buttons. Any ideas why this string did not translate? If so, how/where would the change need to be made? Any help would be greatly appreciated!

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: Translation
October 12, 2009, 06:10:30 am
Hey,

I checked the code and page title should be translated as well, there shouldn't be any bugs there. Can you clean the templates cache and see if it helps?

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!

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Translation
October 12, 2009, 06:24:51 am
Also, make sure you translated the ‘New Individual’ string, not only the ‘Individual’ string (we don’t do string interpolation – so ‘New Individual’ is a separate string, not ‘New’ + ‘Individual’ – as it wouldn’t work in many 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.

leapywca

  • Guest
Re: Translation
October 12, 2009, 07:53:18 am
Alright so it still does not seem to be working. The translations in general may actually not be working as a team member pointed out as apparently participants are by default attached to events (which i thought had been translated but apparently not). Here are the various things I tried:
- used the british english .po
- used poedit to translate the necessary strings by opening every .po file and searching for "individual" and replaced each place with "participant"
- these are saved in a dir "\drupal\sites\all\modules\civicrm\l10n\en_OO" - both .po and .mo files are here
- cleared cache in browser
- cleared cache in my templates_c folder (ps, in my templates_c folder is en_US, and in en_US are en_OO and en_US - is that right?) by removing the various folders within the latter two folders
- i did the attrib -r +s to the templates folder as seen on another post
- went into admin console and chose en_OO as the default language within the localization menu
- also enabled "Content translation" and "locale" modules in the drupal admin console

Again, I'm thinking that nothing is actually translating and I'm not quite sure why... any help is greatly appreciated!
« Last Edit: October 12, 2009, 07:59:54 am by leapywca »

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: Translation
October 12, 2009, 08:36:18 am
Hey,

The fact that strings in CiviEvent are not translated shouldn't have any influence on the translations that you're trying to make.

I'm not fully clear if none of your translations show up in the user interface or just some strings don't. Can you clarify this?

Also, I don't see the stage of compiling .po files into .mo file - are you doing this?

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!

leapywca

  • Guest
Re: Translation
October 12, 2009, 10:03:32 am
I used a program called PoEdit to edit the .po files. It lets you take a string and then in another field you type the translation. Then when you tell it to save, it saves the file as a .mo (this is where I was assuming that meant it was compiled <-- is it?)

As far as the strings being translated, we've come to the conclusion that none are getting translated. I think the confusion came in that participants is already the term used for events, they don't call them individuals - i.e. we thought this was a translation but it was built-in. So from the steps I listed before do you have any ideas why the translation isn't working?

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: Translation
October 13, 2009, 01:14:54 am
Hey,

I have an impression that something is wrong with .mo file. All the .po files with your translations need to be merged into one file, and this file needs to be compiled to .mo.

If you have a Linux or Mac OS X box, run the command:
msgcat *.po | msgfmt -vo civicrm.mo -

Not sure how to accomplish it in with poEdit.

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!

leapywca

  • Guest
Re: Translation
October 13, 2009, 06:43:50 am
Thanks a ton Michal! That was in fact the problem. I did not have all of my .mo files in one civicrm.mo file!

kasiawaka

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 4
    • Kasuwade Solutions Inc.
Re: Translation
March 16, 2011, 01:21:36 pm
I created detailed instructions how to use Poedit, translate .po files and then compile them into one .mo file: http://forum.civicrm.org/index.php/topic,19068.0.html

Kasia
Kasia Wakarecy
http://kasuwade.ca

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Translation

This forum was archived on 2017-11-26.