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) »
  • List of Preferred Languages in French?
Pages: [1]

Author Topic: List of Preferred Languages in French?  (Read 659 times)

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
List of Preferred Languages in French?
November 13, 2013, 08:44:42 pm
I'm using fr_CA and en_CA and when on a french display of a form (in webform - might be causing an issue?), the provinces and countries drop downs are in French, but the preferred languages are in English. My guess is that these are pulled in from an official ISO source some where - I couldn't find them in the untranslated strings in admin or common-base at https://www.transifex.com/projects/p/civicrm/language/fr_CA/. Suggestions on how to fix / debug this?
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

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: List of Preferred Languages in French?
November 14, 2013, 05:44:19 am
I think that these values are pulled from an Option Group. For example, if you go to: /civicrm/admin/options?reset=1, and search for "language", you should see the full list. The title of the language can be localised from there.

Webform_civicrm calls CRM_Core_I18n_PseudoConstant::languages(), so if CiviCRM was initialized with the right locale (ex: inherited from the CMS language), it should be OK.
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: List of Preferred Languages in French?
November 18, 2013, 11:59:39 am
It would be convenient to not have to translate this standard of list of languages, but for the translations to be immediately available when one or more additional languages are enabled on a multi-lingual site.

http://en.wikipedia.org/wiki/ISO_639-1_language_matrix has a listing of the names of languages in 26 languages.

What would you suggest is the best way for JMA to cause them to be available when one of these 26 languages is enabled on a site? Should we add a call to a function that updates the new fields in civicrm_option_value table for these language options?
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

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: List of Preferred Languages in French?
November 18, 2013, 12:34:37 pm
I think it fits in the general problem: when a new language is added in a multi-lingual CiviCRM, we need to populate the translations. Same goes for individual prefixes/suffixes, address types, activity types, etc.?
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: List of Preferred Languages in French?
November 18, 2013, 01:03:32 pm
Yes, agreed. These are all things that are available when one installs from scratch in a language, and should be available when enabling the language as an additional language in a multi-lingual install.

I take that instead of what I am proposing, we should have a general method of doing this. Suggestions?
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • List of Preferred Languages in French?

This forum was archived on 2017-11-26.