Author Topic: how can I get language file for joomla (.ini files)  (Read 1771 times)

Offline daneshjoo

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: joomla 2.5
  • MySQL version: 5.5
  • PHP version: 5.3
how can I get language file for joomla (.ini files)
« on: May 13, 2013, 06:24:49 am »
hello

how can I get language file for joomla (.ini files)?

please help me

Offline mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 402
  • Karma: 28
    • Personal site
  • CiviCRM version: most of them
  • CMS version: Drupal
Re: how can I get language file for joomla (.ini files)
« Reply #1 on: May 13, 2013, 06:35:59 am »
Hi,

CiviCRM uses its own mechanism for translation, not the Joomla .ini method.

In short: you need to download the civicrm-l10n.tar.gz file, unpack in your civicrm/ directory, then you will be able to change the locale from CiviCRM's admin localisation menu.

More information here:
http://wiki.civicrm.org/confluence/display/CRMDOC43/CiviCRM+Localisation

Mathieu

Offline daneshjoo

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: joomla 2.5
  • MySQL version: 5.5
  • PHP version: 5.3
Re: how can I get language file for joomla (.ini files)
« Reply #2 on: May 14, 2013, 01:13:40 am »
hello

thanks a lot

but my language is persian and fa_IR is not in the folders,why?
how can I add my language to it?


Offline mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 402
  • Karma: 28
    • Personal site
  • CiviCRM version: most of them
  • CMS version: Drupal
Re: how can I get language file for joomla (.ini files)
« Reply #3 on: May 14, 2013, 06:18:14 am »
Hi,

Translations are contributed by the community. They are managed on the translation website http://www.ransifex.net. When a translation reaches a certain point (I think 50% completion), we include it in the main civicrm-l10n.tar.gz. In the mean time, it is also possible to get the "civicrm.mo" file from the github repository: https://github.com/civicrm/l10n/tree/master/po/fa_IR

The Persian translations seem to not have been updated in a while. Also, strangely there is a "fa" translation, but also a "fa_IR" translation, and both have a very little activity:

* fa: https://www.transifex.com/projects/p/civicrm/language/fa/
* fa_IR: https://www.transifex.com/projects/p/civicrm/language/fa_IR/ (more advanced)

The language code "fa" versus "fa_IR" indicates that fa_IR is a regional translation specific to Iran. For example, we also have fr_CA or es_MX. However, in general, I would recommend to converge as much as possible towards one translation, since translating CiviCRM is a huge task.

In short, you can create an account on transifex.net, join the fa_IR team, say hi to the current team coordinator and see if he is still actively translating. You can export the translation files from transifex (.po -> .mo), but it may be easier to wait one night and it will be merged into the github repository. Once a week (saturday, I think), the civicrm.mo is re-compiled in the github repo.

I also encourage you to create a "lexicon" for the Persian language. This will help a lot to help translators to translate terms in the same way. Otherwise, a "contact", for example, might be translated in 5 different ways, and it can quickly become confusing:
http://wiki.civicrm.org/confluence/display/CRMDOC43/Translator+resources

More information:
http://wiki.civicrm.org/confluence/display/CRMDOC43/CiviCRM+Localisation#CiviCRMLocalisation-HelpingwithCiviCRMLocalisations

Offline daneshjoo

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: joomla 2.5
  • MySQL version: 5.5
  • PHP version: 5.3
Re: how can I get language file for joomla (.ini files)
« Reply #4 on: May 15, 2013, 04:53:13 am »
hi
ok,thanks

now,
how can I add persian glossary?
how can I add new fa_IR translate project to transifex.net?(Coordinator=myself)
how can I convert all .po files to one .mo file?

Offline mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 402
  • Karma: 28
    • Personal site
  • CiviCRM version: most of them
  • CMS version: Drupal
Re: how can I get language file for joomla (.ini files)
« Reply #5 on: May 15, 2013, 05:21:19 am »
how can I add persian glossary?

Create an account on the wiki, then go to:
http://wiki.civicrm.org/confluence/display/CRMDOC43/Translator+resources

And, in the upper-right corner, you will see an "Add" button, click that, then "Add > Page".

how can I add new fa_IR translate project to transifex.net?(Coordinator=myself)

Create an account on Transifex.net, then request to join the team.

how can I convert all .po files to one .mo file?

Complicated way, but faster: http://wiki.civicrm.org/confluence/display/CRMDOC43/Localisation+stack (steps "Stack prerequisites", clone the "l10n" repository, get the strings from Transifex, then compile with gettext).

Easier way: strings are synchronised from Transifex to github every day. You can then clone only that repository and compile, or wait until the next Wednesday 9:45 Pacific time, and the civicrm.mo will be re-compiled automatically and published on github at  https://github.com/civicrm/l10n/tree/master/po/fa_IR

Offline daneshjoo

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: joomla 2.5
  • MySQL version: 5.5
  • PHP version: 5.3
Re: how can I get language file for joomla (.ini files)
« Reply #6 on: May 15, 2013, 06:08:49 am »
I translate .po file with "po auto translator v1.6" software(working with google traslate)
example :menu.po (attached)

now ,how can I compile all .po to "civicrm.mo" ?

too,I install git(http://git-scm.com/),how can I use it?