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

Author Topic: localization on wordpress  (Read 1037 times)

koleror

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.6.8
  • CMS version: 4.3.1
  • MySQL version: 5.6.23
  • PHP version: 5.5.9
localization on wordpress
September 18, 2015, 04:52:58 pm
Hi everyone!

I'm trying to translate civicrm into french but can't figure out how to do it.
I tried to put the l10n and sql folders in wp-content/plugins/civicrm/ and in wp-content/plugins/civicrm/languages. I also tried to put the fr_FR subfolder directly in these folder and directly the l10n/fr_FR/LC_MESSAGES/civicrm.mo file in the same places.
I also tried to chown these files and folders to www-data and to run a chmod 777 on them...
In the admin, only the default english appears, whatever what I try.
I checked the doc but I couldn't find the wordpress documentation (I just found for joomla and drupal).
Can you help please?
Thanks a lot!

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: localization on wordpress
September 19, 2015, 01:57:06 am
Hi (salut!),

The official documentation about the installation of the l10n files is here:
http://wiki.civicrm.org/confluence/display/CRMDOC/i18n+Administrator's+Guide%3A+Using+CiviCRM+in+your+own+language

(agreed, this documentation is not very clear)

In short, you need to decompress the civicrm-4.6.x-l10n.tar.gz archive in the same directory as where you decompressed civicrm-4.6.x-wordpress.tar.gz.

This should create:

plugins/civicrm/l10n
plugins/civicrm/l10n/fr_FR/LC_MESSAGES/civicrm.mo
plugins/civicrm/sql/civicrm_data_fr_FR.sql
etc

Once that is done, you should have the option to install CiviCRM directly in French during the installation.
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

koleror

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.6.8
  • CMS version: 4.3.1
  • MySQL version: 5.6.23
  • PHP version: 5.5.9
Re: localization on wordpress
September 19, 2015, 09:43:28 am
Hi Mathieu,

Thanks for your reply. However I already tried that... And it doesn't work...
Actually I'm thinking of something, does the language needs to be installed at installation time necessarily?
As it was not working, I got ahead and installed it in english thinking I would simply translate it later. But now I'm thinking maybe this needs to be installed at installation time?
When I go to civicrm settings, the dropdown only lets me pick english, even if the french translations file are present (andall other languages actually).

Please help.

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: localization on wordpress
September 19, 2015, 11:20:18 am
Hi,

You can switch the language later on, but there are a lot of configurations that would have to be manually translated. It is strongly recommended to install directly in French.

I had a quick look, and seems like in Wordpress, you should have the following structure:

plugins/civicrm/civicrm/l10n
plugins/civicrm/civicrm/l10n/fr_FR/LC_MESSAGES/civicrm.mo
plugins/civicrm/civicrm/sql/civicrm_data_fr_FR.sql
etc

Mathieu

PS: if you cross-post on CiviCRM's Stack Exchange, please provide the link. This type of Q&A is indeed better on SE.
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

koleror

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.6.8
  • CMS version: 4.3.1
  • MySQL version: 5.6.23
  • PHP version: 5.5.9
Re: localization on wordpress
September 21, 2015, 12:48:56 am
Yup I did indeed as I didn't know which forum I should use. And they got the same answer as you did and it know works :)
Thanks!
Here's the link for reference: http://civicrm.stackexchange.com/questions/6543/localization-on-wordpress

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

This forum was archived on 2017-11-26.