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) »
  • Event Sign Up in Different Languages
Pages: [1]

Author Topic: Event Sign Up in Different Languages  (Read 2238 times)

Parvez

  • I post occasionally
  • **
  • Posts: 91
  • Karma: 7
Event Sign Up in Different Languages
November 04, 2009, 06:36:44 am
Hi

We have an implementation of CiviCRM (3.0.1) on Drupal (6.x). Currently Drupal is configured to multilanguage. What the client wants to do is run events with the registration pages in the clients specific language.

I've tried appending the lcMessages as follows

https://domain.com/civicrm/event/register?reset=1&id=1&lcMessages=es_ES

and this then displays the event sign up form in Spanish. What I'm unclear about is

1. Is Civi supposed to be picking up the users language selection within Drupal when it displays forms?
2. Does the lcMessages setting then become permenant for the event registration screen, i.e. if another user then accesses the URL without the lcMessages set then they would also see the page in Spanish?

Any help on this would be appreciated.

Thanks

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Event Sign Up in Different Languages
November 04, 2009, 08:19:26 am
Quote from: Parvez on November 04, 2009, 06:36:44 am
We have an implementation of CiviCRM (3.0.1) on Drupal (6.x). Currently Drupal is configured to multilanguage. What the client wants to do is run events with the registration pages in the clients specific language.

I've tried appending the lcMessages as follows

https://domain.com/civicrm/event/register?reset=1&id=1&lcMessages=es_ES

and this then displays the event sign up form in Spanish.

Cool, this is how it’s supposed to work.

Quote
What I'm unclear about is

1. Is Civi supposed to be picking up the users language selection within Drupal when it displays forms?

CiviCRM should properly inherit Drupal’s Locale module language setting; there was in issue in our issue tracker about this that I can’t find at the moment, but I’m pretty sure it was fixed in 3.0.

As there are some doubts in the forums whether this works as expected, I’ll take a closer look early next week to make sure we handle all corner cases as well. (Are there other Drupal modules – other than Locale – for selecting the language?)

Quote
2. Does the lcMessages setting then become permenant for the event registration screen, i.e. if another user then accesses the URL without the lcMessages set then they would also see the page in Spanish?

No, the URL-based language selection should be local to the session of the user who visits the page (so another user with another browser should see the page in the default Drupal/CiviCRM locale).
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.

Parvez

  • I post occasionally
  • **
  • Posts: 91
  • Karma: 7
Re: Event Sign Up in Different Languages
November 04, 2009, 08:22:27 am
Thanks for the quick response!

Looks like the locale settings aren't being picked up - at least not for the testing I've done on 3.0.1. It would be a much nicer way if this is the way its supposed to work i.e. the end user doesn't have to worry about creating the relevant language specific links etc.

Thanks

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Event Sign Up in Different Languages
November 04, 2009, 08:56:21 am
Does it work as well for the field labels (if you have a profile) ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Event Sign Up in Different Languages
November 06, 2009, 06:08:36 am
The issue about language inheritance is CRM-5027 and I should fix it Monday at the latest.

As for field labels, if you want to have them in multiple languages you need to turn your install into a multilingual one (and then it should follow language changes as soon as the above is fixed).
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.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Event Sign Up in Different Languages

This forum was archived on 2017-11-26.