Author Topic: Documentation of Multi Language Features  (Read 1389 times)

Offline civicrmsav

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Documentation of Multi Language Features
« on: May 09, 2012, 09:36:52 pm »
Hi -  Is there a good source for documentation of the civicrm multiple language features?  Two things in particular I'm looking for at this moment, but I know there will be others, so wondering where to find best documentation.

1) I have checked the "inherit cms language" flag, but civi does not follow the cms language, I have to use the civi language switcher to change languages.

2) When I use the drupal language switcher to move between languages while on a civi page, the query string gets lost.  For example if I look at [my site]/en/civicrm/contribute/transact?reset=1&id=1&lcMessages=en_US and click the spanish button in the drupal language switcher it takes me to http://www.castleislandmontessori.org/es/civicrm/contribute/transact 

I can do some more debugging, but was hoping I could read up first to make sure I had set things up right.

(Drupal 7.12, Civi 4.1.2)

Offline Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15740
  • Karma: 463
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Documentation of Multi Language Features
« Reply #1 on: May 10, 2012, 11:40:51 am »
hey

dont think there is any docs for that as yet, but now might be a great time to get this documented. Can you please help with this and start putting some preliminary docs on the wiki

1. seems like a bug to me and should work. If you can look into it that would be great. This works for bgm in 4.1.x for en/fr, so might be something to do with your language selection or a bug in the code?

2. drupal does not deal very well with url args, so i suspect that is an issue with the drupal language switcher. Might want to use this modification from bgm: http://www.bidon.ca/fr/node/584

lobo
« Last Edit: May 10, 2012, 11:44:48 am by Donald Lobo »
Reading Give and Take by Adam Grant. If Civi!CRM has helped your org, give back and help others on the forum, contribute code, documentation. Make the project sustainable.

Happy Holidays :)

Offline mathieu

  • Administrator
  • I post frequently
  • *****
  • Posts: 288
  • Karma: 21
    • Personal site
  • CiviCRM version: most of them
  • CMS version: Drupal
Re: Documentation of Multi Language Features
« Reply #2 on: May 10, 2012, 11:56:19 am »
Which Spanish translation are you using?

The "inherit language" may have issues with associating the "es" from Drupal to the corect es_XX from CiviCRM. By default, it will try es_ES.

You can override with the method described in this issue:
http://issues.civicrm.org/jira/browse/CRM-9558

Ex: put something equivalent to this in your civicrm.settings.php:

define('CIVICRM_LANGUAGE_MAPPING_ES', 'es_MX');

This issue for logged-in users might also be a cause:
http://issues.civicrm.org/jira/browse/CRM-9971

p.s. i am "bgm" on #civicrm IRC

Offline civicrmsav

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Re: Documentation of Multi Language Features
« Reply #3 on: July 15, 2012, 08:03:04 pm »
Just confirming that lobo was exactly spot on.  The mod at http://www.bidon.ca/fr/node/584 worked perfectly.   

I added the information here: http://wiki.civicrm.org/confluence/display/CRMDOC41/CiviCRM+Localisation