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) »
  • Automatic sync for en_CA?
Pages: [1]

Author Topic: Automatic sync for en_CA?  (Read 592 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)
Automatic sync for en_CA?
May 03, 2014, 03:53:42 pm
en_CA has only a few terms different than en_US, e.g. Province for State. I'd like an automatic synch of en_US strings to en_CA strings, with the understanding that previously entered regionalizations won't be overwritten by that process.
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: Automatic sync for en_CA?
May 04, 2014, 12:55:50 pm
Hi Joe,

It can be done, and I was thinking of automating the sync for fr_CA and es_XX as well.

Just to be sure: the only impact would be that Transifex will show the language as 100% completed, otherwise translation at run-time already fallsback to en_US when the string has not been translated.

Mathieu
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: Automatic sync for en_CA?
May 04, 2014, 04:57:16 pm
Agreed. Thanks!
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: Automatic sync for en_CA?
May 07, 2014, 09:09:16 am
Hrm, I thought that with msgcat it would be easy to do, but I have not found an easy way to do it. This isn't like the usual pattern of synchronizing translations (the source language, i.e. en_US, appears as un-translated). This can probably be done with a bit of scripting though to parse the .pot and output a .po for English in which the msgid and msgstr are the same.
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Automatic sync for en_CA?

This forum was archived on 2017-11-26.