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) »
  • CiviCRM 4.0.7 problem with german language (de_DE <-> de_CH)
Pages: [1]

Author Topic: CiviCRM 4.0.7 problem with german language (de_DE <-> de_CH)  (Read 2680 times)

damaxl

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
  • CiviCRM version: 4.1.2 DE
  • CMS version: Drupal 7.12 / 7.14
  • MySQL version: 14.12
  • PHP version: 5.2.6
CiviCRM 4.0.7 problem with german language (de_DE <-> de_CH)
December 04, 2011, 04:23:33 am
Hello everybody,

yesterday I installed  CiviCRM 4.0.7 on Debian Lenny, Apache 2.2.9, PHP 5.2.6-1, MySQL 5.0.51a, Drupal 7.9 german with CiviCRM 4.0.0 l10n.

After the installation I switched to german language in Administer > Configure > Global Settings > Localization (/civicrm/admin/setting/localization?reset=1)
  • Default Language: English (United States) -> German
  • Inherit CMS Language: [X] <- activated

Everything seemed to be ok, but to my surprise 'edit' was translated with 'mutieren' (engl.: to mutate) and not 'bearbeiten', which would be the correct vocable. I also had to realize that, compared to version 4.0.5 a lot of the german translation had disappeared.

Rechecking the localization setting, I hat to realize that 'Default Language' was not switched to 'German' but to 'German (Swiss)'!
I also checked the directory in <drupal_root>/sites/default/files/civicrm/templates_c/, which contained the subdirectories /en_US/de_CH now.

After experimenting a while with theese settings I finally found out that switching to German (de_DE) isn't possible if 'Inherit CMS Language' is activated. This option is always set to 'German (Swiss)' (de_CH) when saving the page.
If switched to 'German', there's a a directory <drupal_root>/sites/default/files/civicrm/templates_c/en_US/de_DE now.

So my questions are:
  • is this a bug or did the configuration change?
  • is .../templates_c/en_US/de_DE the correct level for the subdirectory de_DE? Doesn't it have to be on the same level of en_US (.../templates_c/en_US and .../templates_c/de_DE?

A 'locale' in linux shows:

LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=


xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviCRM 4.0.7 problem with german language (de_DE <-> de_CH)
December 04, 2011, 06:04:21 am
Hi,

I'm assuming your drupal is configured to swiss german?

As for the language, you can go to transiflex, ask to join the team and correct. Would be good to clarify with the german team what happened if translation got reverted/lost

X+

P.S. If needed and you're willing to lead, you might want to create  swiss german language in civi, like they are the fr_ca and fr_fr

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

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: CiviCRM 4.0.7 problem with german language (de_DE <-> de_CH)
December 04, 2011, 01:31:28 pm
There's a limitation in the "inherit CMS language" which assumes that if your Drupal locale is "de", then the CiviCRM locale is "de_DE".

You can either disable the option (and specify the language manually, using the civicrm-language block, or lcMessages=de_CH in the URL), or you can copy the contents of the l10n/de_CH to l10n/de_DE.

It might be worth adding an option to CiviCRM to allow a user to specify how languages are inherited (or just start by having configuration variables in the civicrm.settings.php?).
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

damaxl

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
  • CiviCRM version: 4.1.2 DE
  • CMS version: Drupal 7.12 / 7.14
  • MySQL version: 14.12
  • PHP version: 5.2.6
Re: CiviCRM 4.0.7 problem with german language (de_DE <-> de_CH)
December 05, 2011, 10:04:32 am
Today I installed CiviCRM 4.0.5 with the same behaviour.

Quote from: xavier on December 04, 2011, 06:04:21 am
I'm assuming your drupal is configured to swiss german?
No, not at all. Drupal ist set to 'de' and it is impossible to set something like 'de_CH' or 'de_DE'.

Quote from: mlutfy on December 04, 2011, 01:31:28 pm
There's a limitation in the "inherit CMS language" which assumes that if your Drupal locale is "de", then the CiviCRM locale is "de_DE".
That's what I was expecting, but I'm afraid it is the other way round.
I have a suspicion that because of the short language description (de) in Drupal, CiviCRM takes the first option in a literal ordered list of language and country descriptions (de_CH, de_DE), where de_CH is the first because there is no de_AT.

Quote from: mlutfy on December 04, 2011, 01:31:28 pm
It might be worth adding an option to CiviCRM to allow a user to specify how languages are inherited (or just start by having configuration variables in the civicrm.settings.php?).
This would be appreciated.

samuelsov

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 2
    • Coop SymbioTIC
  • CiviCRM version: 3.x, 4.x
  • CMS version: Drupal 6 & 7
Re: CiviCRM 4.0.7 problem with german language (de_DE <-> de_CH)
January 27, 2012, 12:08:02 pm
I have create an issue and posted a patch for this : http://issues.civicrm.org/jira/browse/CRM-9558
Consultant @ SymbioTIC.coop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • CiviCRM 4.0.7 problem with german language (de_DE <-> de_CH)

This forum was archived on 2017-11-26.