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) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Country names in English by default in profiles?
Pages: [1]

Author Topic: Country names in English by default in profiles?  (Read 667 times)

Philippe

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: latest
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Country names in English by default in profiles?
September 06, 2013, 11:29:06 am
Hi,
I am working on a francophone website that has a membership directory, I need to display the country of residence in French.  In localisation French is the default language, the countries in registration and edit forms are listed in French in the drop down lists, however they are displayed in English in the profiles. This is the country field that is part of the address.
I have a custom field Nationality which displays correctly in French but for some reason I can't get it to work for the Country.
Any idea what I may be doing wrong?

Many thanks


lottie

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.4
Re: Country names in English by default in profiles?
September 16, 2013, 10:58:52 pm
I am new to this myself, but I am working to understand the localization and internationalization features in Civi.

Are you inheriting the CMS language (and do you have this box checked on the Settings - Localization page (/civicrm/admin/setting/localization)?

What regional translation are you using?

The fix for me was modifying my civicrm.settings.php file. See info from wiki.CiviCRM.org - Localisation page:

Quote
"Inherit CMS language" and regional translations (ex: fr_CA)

If you have a multi-lingual site and you are using the "inherit CMS language" configuration option, but wish to, for example, use fr_CA instead of the default fr_FR (for French), you can define a constant in your civicrm.settings.php to override the default behavior:
define('CIVICRM_LANGUAGE_MAPPING_FR', 'fr_CA');

I hope this helps rather than leading you astray.

Lottie

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Country names in English by default in profiles?

This forum was archived on 2017-11-26.