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) »
  • Joomla - Joomfish component and CivicRM multilanguage
Pages: [1]

Author Topic: Joomla - Joomfish component and CivicRM multilanguage  (Read 3460 times)

jmkaep

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
Joomla - Joomfish component and CivicRM multilanguage
August 05, 2010, 09:27:14 am
I am setting a bilingual site using Joomla, Joomfish and CivicRM. See left for versions. I am a coding noob.

The Joomfish language switcher uses &lang=fr while CivicRM uses &lcMessages=fr_FR to switch languages. How can I make both work together so that when the user switches languages using the Joomfish language switcher the CivicRm donation form also changes language?

I have set up CivicRm to change language with the CMS but I guess it's not working.




« Last Edit: August 05, 2010, 10:56:50 am by jmkaep »

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Joomla - Joomfish component and CivicRM multilanguage
August 06, 2010, 03:35:12 am
Can you take a look at CRM_Utils_System_Joomla::getUFLocale() and CRM_Utils_System_Drupal::getUFLocale() and see whether you can hack something like the latter into the former?

(It’s interesting that Joom!Fish would implement locales differently than Joomla!, but eventually we’ll need to support both anyway.)
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.

jmkaep

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
Re: Joomla - Joomfish component and CivicRM multilanguage
August 06, 2010, 06:40:54 am
I have Joomla set up with en_gb and FR_fr (FR_ca not available in Joomla) and CivicRm is set up as en_US (not given choice in CivicRM) and fr_ca, could that be the reason why the language switcher does not work? It's still en and fr though.

Otherwise

Where would I find this and how do I fix it? Remember I'm a noob. ;D
« Last Edit: August 06, 2010, 08:47:16 am by jmkaep »

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Joomla - Joomfish component and CivicRM multilanguage
August 09, 2010, 06:09:11 am
Quote from: jmkaep on August 06, 2010, 06:40:54 am
CiviCRM is set up as en_US (not given choice in CiviCRM)

Do you mean you don’t have other language choices in the admin screen? If so, you need to download the civicrm-…-l10n.tar.gz file and unzip it to your main CiviCRM directory.
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.

jmkaep

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
Re: Joomla - Joomfish component and CivicRM multilanguage
August 09, 2010, 09:15:10 am
No I'm further down the line than that.

I have used Joomla + Joomfish + CivicRM set up as a bilingual English - French site

I have select the setting for CivicRM to reflect the language of the CMS in this case Joomla

The Joomfish language switcher uses &lang=fr while CivicRM uses &lcMessages=fr_FR to switch languages. How can I make both work together so that when the user switches languages using the Joomfish language switcher the CivicRm content for exampla a donation form also changes language?
« Last Edit: August 09, 2010, 09:16:48 am by jmkaep »

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Joomla - Joomfish component and CivicRM multilanguage
August 10, 2010, 08:36:53 am
Ok, so basically what you need is a way to convert Joom!Fish’s xx language codes to CiviCRM’s xx_YY language codes (based on the lang variable passed from Joom!Fish).

As we needed to do the same for Drupal (but not Joomla!), the relevant code seems to be in the CRM_Utils_System_Drupal::getUFLocale() method (in the CRM/Utils/System/Drupal.php file) – what I was trying to say was that maybe this code can be copied (and modified appropriately) to CRM_Utils_System_Joomla::getUFLocale() (in the CRM/Utils/System/Joomla.php file).

If you’re not a PHP coder, you can either hire someone to do this or file an issue and we’ll handle this as soon as our resources allow.
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.

jmkaep

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
Re: Joomla - Joomfish component and CivicRM multilanguage
August 10, 2010, 10:36:10 am
Thanks for your help.

I think this is a major issue. CivicRm is set up to mirror the language of the CMS but not the change languages correctly when a CMS is set up in multiple languages for a bilingual/multilingual site.

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: Joomla - Joomfish component and CivicRM multilanguage
August 10, 2010, 03:19:04 pm

if you do think this is a major issue and/or important to your org, please look at the code and submit a patch. If not a developer, consider hiring someone from http://civicrm.org/professional/

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

jmkaep

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
Re: Joomla - Joomfish component and CivicRM multilanguage
August 11, 2010, 07:20:56 am
Which code should I be looking at CivicRm or Joomfish? Which files?

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: Joomla - Joomfish component and CivicRM multilanguage
August 11, 2010, 08:08:48 am

piotr mentioned the lines and files here:

http://forum.civicrm.org/index.php/topic,14964.msg64365.html#msg64365

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

jmkaep

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
Re: Joomla - Joomfish component and CivicRM multilanguage
August 11, 2010, 12:57:56 pm
HHmm let me see.   :P

jmkaep

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
Re: Joomla - Joomfish component and CivicRM multilanguage
August 13, 2010, 01:25:25 pm
no replies... :P

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Joomla - Joomfish component and CivicRM multilanguage

This forum was archived on 2017-11-26.