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) »
  • Documentation of Multi Language Features
Pages: [1]

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

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Documentation of Multi Language Features
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)

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • 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
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 »
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

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: Documentation of Multi Language Features
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
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Re: Documentation of Multi Language Features
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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Documentation of Multi Language Features

This forum was archived on 2017-11-26.