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) »
  • Language switcher override Drupal language path
Pages: [1]

Author Topic: Language switcher override Drupal language path  (Read 1481 times)

mrmat

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.20
  • MySQL version: 5.0.5
  • PHP version: 5.2.6
Language switcher override Drupal language path
January 24, 2011, 03:18:35 pm
Hello,

I've a problem with multilingual switch with Drupal (6.20) and CIviCRM (3.3.2) :

CiviCRM is configured with "inherit CMS language" but if a user has privileges to access to CiviCRM pages, the language switcher override the URL language settings.
For exemple mysite/fr/civicrm/dashboard will display dashboard in english whereas it should take the URL path.

If i switch CiviCRM language with CiviCRM language switcher block to english, language doesn't change even if i move from mysite/civicrm/dashboard to mysite/fr/civicrm/dashboard

Someone has an idea about this issue ? We need to add some RewriteRule to force &lcMessages argument ?

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Language switcher override Drupal language path
January 25, 2011, 04:12:30 am
Does adding …&lcMesssages=xx_YY fixes this issue (so it’s just a matter of the order in which we check the the languages)?
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.

mrmat

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.20
  • MySQL version: 5.0.5
  • PHP version: 5.2.6
Re: Language switcher override Drupal language path
January 25, 2011, 05:32:17 am
Yes adding manually &lcMessages=xx_YY turn CiviCRM part of the page into the good language.

Maybe a workaround is to have the good URL rewrite rules into .htaccess file like :

RewriteRule ^fr/civicrm/user$ fr/civicrm/user&lcMessages=fr_FR [L]
RewriteRule ^civicrm/user$ civicrm/user&lcMessages=en_US [L]

But i don't know if it's possible to write a "global" RewriteRule for all CiviCRM URI

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Language switcher override Drupal language path

This forum was archived on 2017-11-26.