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) »
  • How include contents of l10n from github to civicrm-x.x.x-l10n.tar.gz ?
Pages: [1]

Author Topic: How include contents of l10n from github to civicrm-x.x.x-l10n.tar.gz ?  (Read 933 times)

chmelvv

  • I’m new here
  • *
  • Posts: 4
  • Karma: 1
  • CiviCRM version: 4.5.4
  • CMS version: WordPress 4.0.1
  • MySQL version: 5.1.72
  • PHP version: 5.3.29
How include contents of l10n from github to civicrm-x.x.x-l10n.tar.gz ?
December 15, 2014, 06:13:16 am
Hi! I want to speed up CiviCRM localization to Ukraine. An have question: Why Ukrainian localization files which exist on github  - https://github.com/civicrm/l10n/tree/master/po/uk did not included in http://sourceforge.net/projects/civicrm/files/civicrm-stable/4.5.4/civicrm-4.5.4-l10n.tar.gz ?
What is criterion (may be translated words %) to be included in release?
Thanks!
« Last Edit: December 17, 2014, 01:43:55 pm by chmelvv »

chmelvv

  • I’m new here
  • *
  • Posts: 4
  • Karma: 1
  • CiviCRM version: 4.5.4
  • CMS version: WordPress 4.0.1
  • MySQL version: 5.1.72
  • PHP version: 5.3.29
Re: How include l10n from github to civicrm-4.5.4-l10n.tar.gz ?
December 17, 2014, 01:43:05 pm
Another questions about contents of civicrm-4.5.4-l10n.tar.gz file:
I understand how to create one civicrm.mo (located in civicrm/l10n/uk_UA/LC_MESSAGES/) file from all my translations, but  who and how create such files as
- civicrm/sql/civicrm_acl.uk_UA.mysql
 - civicrm/sql/civicrm_data.uk_UA.mysql ?


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: How include contents of l10n from github to civicrm-x.x.x-l10n.tar.gz ?
December 18, 2014, 03:34:02 pm
Welcome to CiviCRM :-)

Languages that reach 20% completion are added to civicrm-l10n.tar.gz. However, it's not automatic, so we encourage translators to post here to request it. This was very badly documented (my bad), so I updated the wiki page here: http://wiki.civicrm.org/confluence/display/CRMDOC/Resources+for+Translators

I also did a few updates to the i18n administrator guide: http://wiki.civicrm.org/confluence/display/CRMDOC/i18n+Administrator's+Guide

Since the Ukrainian translation is at 40%, I have added it to the languages that will be distributed in the next release: https://github.com/civicrm/l10n/commit/11daf2971f55e1205413be65986e2674ee1d803f

(I'm not sure why it wasn't added earlier, may have been a mistake?)

I also renamed in github the 'uk' directory to 'uk_UA'. It should not change much in practice, but it's more clear for the release scripts.

Meanwhile, you can download a daily updated civicrm.mo for uk_UA at:
https://download.civicrm.org/civicrm-l10n-core/mo/uk_UA/civicrm.mo

To regenerate the mysql_data.uk_UA.mysql, it is a bit more complicated. You will need to use a development environment for CiviCRM, using the instructions from this guide: http://wiki.civicrm.org/confluence/display/CRMDOC/GitHub+for+CiviCRM

In short: you need to checkout the code from github (using "git clone" or "gitify" -- if using 'gitify', I think there is an option for i18n/l10n). Once you have the code, you need to run "gencode" (cd xml; php ./Gencode.php).

If it can help for initial testing until the next CiviCRM release, I generated the files for CiviCRM 4.5:
https://www.symbiotic.coop/files/civicrm_data.uk_UA.mysql.txt
https://www.symbiotic.coop/files/civicrm_acl.uk_UA.mysql.txt

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

chmelvv

  • I’m new here
  • *
  • Posts: 4
  • Karma: 1
  • CiviCRM version: 4.5.4
  • CMS version: WordPress 4.0.1
  • MySQL version: 5.1.72
  • PHP version: 5.3.29
Re: How include contents of l10n from github to civicrm-x.x.x-l10n.tar.gz ?
December 22, 2014, 04:08:27 am
mathieu, thanks a lot!
I will try connect uk_UA translation to CiviCRM.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • How include contents of l10n from github to civicrm-x.x.x-l10n.tar.gz ?

This forum was archived on 2017-11-26.