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) »
  • I need help with CiviCRM localization (how to create .mo file)
Pages: [1]

Author Topic: I need help with CiviCRM localization (how to create .mo file)  (Read 5464 times)

joomler

  • Guest
I need help with CiviCRM localization (how to create .mo file)
December 02, 2008, 03:58:21 am
I need help with CiviCRM localization. I need to create mo file civicrm.mo for CiviCRM 2.1  from several po files  located here  http://translations.civicrm.org/ru_RU/civicrm21/LC_MESSAGES/?translate=1&view=1
With the help of Poedit i can create mo file for each of 8 files located there, but as i understand i need to compile them into 1  called civicrm.mo  located in the   ...sites\all\modules\civicrm\l10n\ru_RU\LC_MESSAGES\ ??
So i dont know how to do that ???

on the windows XP sp3
« Last Edit: December 02, 2008, 04:01:54 am by joomler »

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: I need help with CiviCRM localization (how to create .mo file)
December 03, 2008, 04:24:12 am
Quote from: joomler on December 02, 2008, 03:58:21 am
I need help with CiviCRM localization. I need to create mo file civicrm.mo for CiviCRM 2.1  from several po files  located here  http://translations.civicrm.org/ru_RU/civicrm21/LC_MESSAGES/?translate=1&view=1

I commit changes from the localisation server to our repository on a weekly basis, and the compiled Russian civicrm.mo file for CiviCRM 2.1 can be found here: http://svn.civicrm.org/civicrm/branches/v2.1/l10n/ru_RU/LC_MESSAGES/

Quote from: joomler on December 02, 2008, 03:58:21 am
With the help of Poedit i can create mo file for each of 8 files located there, but as i understand i need to compile them into 1  called civicrm.mo  located in the   ...sites\all\modules\civicrm\l10n\ru_RU\LC_MESSAGES\ ??

Right, once you have the MO file, you need to put it in your site’s l10n\ru_RU\LC_MESSAGES directory.

If you want to compile the PO files yourself, you need the gettext program. Once you have it, you need to issue these commands:

Code: [Select]
msgcat -o civicrm.po *.po
msgfmt -o civicrm.mo civicrm.po

The first will create a common PO file with all the translations and the second one will compile it.
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.

mosgaz

  • Guest
Re: I need help with CiviCRM localization (how to create .mo file)
April 09, 2009, 02:50:36 pm
In case of CiviCRM for Joomla localization where *.po files should be placed exactly. I can't figure out. Pleace help!

1. For the backend: site/administrator/components/com_civicrm/..............
2. For the frontend: site/components/com_civicrm/.............. 

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: I need help with CiviCRM localization (how to create .mo file)
April 10, 2009, 01:54:29 am
Quote from: mosgaz on April 09, 2009, 02:50:36 pm
In case of CiviCRM for Joomla localization where *.po files should be placed exactly. I can't figure out. Pleace help!

You don’t need the PO files, you only need the MO files. I think putting them in …/administrator/components/com_civicrm/civicrm/l10n should be ok (where the l10n holds the ??_?? language directories).
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) »
  • I need help with CiviCRM localization (how to create .mo file)

This forum was archived on 2017-11-26.