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 CJK capability
Pages: [1]

Author Topic: CiviCRM CJK capability  (Read 2803 times)

i-sako

  • Guest
CiviCRM CJK capability
February 10, 2010, 07:32:47 pm
Hello, everyone.

Please pardon a question from someone who is not yet a CiviCRM user, but I am curious about how well CiviCRM handles Chinese, Japanese, and Korean, particularly with respect to searches conducted by site users in those languages. I am asking in part because I am now seeking developers to provide professional services for a Tokyo-based NPO (please see the RFP post at the URL below if interested), and the project requires flawless CJK support.

http://forum.civicrm.org/index.php/topic,12153.0.html

I would imagine that these languages should be no problem, but am I correct in that assumption? Please let me know.

Thank you,

Patrick Eaton
http://jat.org

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: CiviCRM CJK capability
February 10, 2010, 09:05:18 pm

i assume it works ok, since we have some folks in taiwan using it:

http://civicrm.org/node/652

i've requested charles to post a more detailed response to this

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

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: CiviCRM CJK capability
February 15, 2010, 05:56:26 am
I’m not very good at the technicalities behind how CJK characters are represented in UTF-8, but assuming the representation is consistent, then I don’t see any show-stoppers – CiviCRM is in UTF-8 from grounds up.

The only problem I can think of if the same characters are represented in various ways (e.g., a single character can be represented either as X or as Y plus a combining character Z), but I hope it’s not a common problem in CJK (it’s quite rare in Central- and Easter-European characters).
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.

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: CiviCRM CJK capability
February 15, 2010, 06:02:14 am

might also want to check this post out: http://civicrm.org/node/252

we heard that they were using it for the japanese defense services

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

charlesc

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
Re: CiviCRM CJK capability
February 17, 2010, 06:19:44 pm
Hi all,

We don't have full testing on CiviCRM 3.x about l10n in Chinese. Some basic search does work for me, but sometimes we need care about specific situation, such as full name sorting in Chinese is different than in English. Fo example, if we search lastname+firstname without comma, we cant find anything. (But in fact, "ChuangCharles" is the format we use, not "Chuang, Charles" or "Charles Chuang")

Any suggestion?

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: CiviCRM CJK capability
February 18, 2010, 04:56:55 am
You can try changing the rules CiviCRM uses to create the civicrm_contact.display_name entries and (once this column is refreshed for all of the contacts) see whether the search works.
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.

eggtart

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 2
Re: CiviCRM CJK capability
March 22, 2010, 09:54:29 pm
Where should I go to change the rules for {contact.display_name}?

Thanks!

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: CiviCRM CJK capability
March 23, 2010, 10:49:34 am

The easiest place is to probably do this as a mysql trigger on your database. Note that you need super user privileges on your mysql DB in 5.0.x

if you do write a mysql trigger, please publish your code so others can benefit

at some point, we might want to make both the display_name and sort_name hookable so modules can change the behavior if needed

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

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: CiviCRM CJK capability
March 25, 2010, 10:38:10 am
Quote from: Donald Lobo on March 23, 2010, 10:49:34 am
at some point, we might want to make both the display_name and sort_name hookable so modules can change the behavior if needed

…or make them virtual columns (view columns) built on-the-fly by MySQL. Perhaps harder to make hookable then, though (at the benefit of not having to handle regeneration on the PHP side).
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.

eggtart

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 2
Re: CiviCRM CJK capability
March 27, 2010, 09:17:55 pm
I have tried changing the logic in Individual.php, and it seems to work.

Thanks

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • CiviCRM CJK capability

This forum was archived on 2017-11-26.