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) »
  • Lists of values not localized
Pages: [1]

Author Topic: Lists of values not localized  (Read 3063 times)

bolide

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.2.8
  • CMS version: Joomla 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Lists of values not localized
September 15, 2012, 03:59:35 pm
Hello,

I just install civicrm 4.2.1 then I set the localization for French (fr_FR)

- Contact Type contain "Individual"
- Address : "Location Type" still contain "Home, Main, Work, ..."
- Phone : "Phone Location" still contain "Home, Main, Work, ..." and "Phone Type" contain "Phone, Mobile, ..."

It not seems to be part of the translations !
Somebody can advice about these lists ?

Regards.

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: Lists of values not localized
September 28, 2012, 02:39:39 pm
Hi / Salut,

Those strings are user-defined. If you install CiviCRM in French from the beginning of the install, it should have been populated directly in French.

Post-install, you can change their values from the admin interface:

* Contact types: /civicrm/admin/options/subtype?reset=1
* Location types: /civicrm/admin/locationType?reset=1
* etc, mostly accessible from Administer -> Customize -> Menu list options (Options de menu déroulant).

Mathieu
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

lunaa

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Lists of values not localized
November 17, 2012, 05:27:03 am
Hi, Mathieu,

I am also confused when localizing the "location types":

At  /civicrm/admin/locationType?reset=1, I notice that the "name" of the existing locations type (eg Billing, Home, Other and Work)  are not active for editing. What I can do is to put "display name" in Chinese.  However, in the drop-down list in Address page, it is "name" showed in the list instead of "display name".

Then, I created new location type and put Chinese "name", and it doesn't work either -  this time I'm told that "Name can only consist of alpha-numeric characters".

Now I am wondering if you have any suggestion. Is it possible to bind the  drop-down list value in Address page to "display name"? Or, could it be a bug?

Thanks a lot.

Joy

Quote from: mlutfy on September 28, 2012, 02:39:39 pm
Hi / Salut,

Those strings are user-defined. If you install CiviCRM in French from the beginning of the install, it should have been populated directly in French.

Post-install, you can change their values from the admin interface:

* Contact types: /civicrm/admin/options/subtype?reset=1
* Location types: /civicrm/admin/locationType?reset=1
* etc, mostly accessible from Administer -> Customize -> Menu list options (Options de menu déroulant).

Mathieu

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: Lists of values not localized
November 17, 2012, 07:30:47 am

I think the main issue is we have a "label to name" conversion which is very US / Latin centric

It strips all non-alpha-numeric characters. So i suspect for chinese / japanese, we strip the entire label and end with blank

i dont know what the solution is in this case :(

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

lunaa

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Lists of values not localized
November 19, 2012, 10:53:24 pm
Hi, Lobo,

Thank u for the quick response.

So is it possible to allow users to specify their own names and thus avoid the conversion where non-alpha-numeric characters are skipped?

Regards,

Joy

Quote from: Donald Lobo on November 17, 2012, 07:30:47 am

I think the main issue is we have a "label to name" conversion which is very US / Latin centric

It strips all non-alpha-numeric characters. So i suspect for chinese / japanese, we strip the entire label and end with blank

i dont know what the solution is in this case :(

lobo

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: Lists of values not localized
November 20, 2012, 10:57:47 am

unfortunately not :( this has come up a bit recently, but so far not code contributions or patches for this

if you can contribute a patch that would be great. Check how drupal does it, seems quite smart and is optional

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

lunaa

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Lists of values not localized
November 21, 2012, 07:56:52 am
Hi Lobo,

Thank you for clarifying the issue. We'll see what we can do about it. ::)

Joy

Quote from: Donald Lobo on November 20, 2012, 10:57:47 am

unfortunately not :( this has come up a bit recently, but so far not code contributions or patches for this

if you can contribute a patch that would be great. Check how drupal does it, seems quite smart and is optional

lobo

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Lists of values not localized
November 27, 2012, 10:57:55 am
I am unclear why we use names at all. What does label/name/id provide that label/id does not?
Try asking your question on the new CiviCRM help site.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Lists of values not localized
November 27, 2012, 12:14:02 pm
The 'name' column functions as a key for option values which are used programmatically, while the 'label' is translated and displayed to the user. As values are added / deleted over the history of a site, the ID's (auto-increment primary keys) vary from install to install.
Protect your investment in CiviCRM by  becoming a Member!

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Lists of values not localized
November 27, 2012, 02:08:07 pm
Oh right of course. OK so the issue is that when the user types in a label for a new option the name needs to be populated with something other than an empty string if the label was not alphanumeric. But it could be anything right, like current timestamp?
Try asking your question on the new CiviCRM help site.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Lists of values not localized
November 27, 2012, 02:14:23 pm
yep :-)
Protect your investment in CiviCRM by  becoming a Member!

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: Lists of values not localized
May 24, 2013, 10:36:56 am
What about using http://en.wikipedia.org/wiki/Internationalized_domain_name? There are some PHP functions that do ToASCII or idn_to_ascii.
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) »
  • Lists of values not localized

This forum was archived on 2017-11-26.