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) »
  • Developer Discussion »
  • Sprints »
  • Sprints @ CiviCon 2012 »
  • San Francisco internationalisation-localisation sprint - April 4-12, 2012
Pages: [1]

Author Topic: San Francisco internationalisation-localisation sprint - April 4-12, 2012  (Read 2401 times)

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
San Francisco internationalisation-localisation sprint - April 4-12, 2012
March 12, 2012, 08:21:51 am
Hi everyone,

Some of us are planning to work on internationalisation and localisation (i18n, l10n) during the SF sprint (April 4-12, 2012). Here are some ideas:

- bypassing gettext for us-english (see: http://forum.civicrm.org/index.php/topic,20697.0.html)
- string translation using the database instead of gettext? native gettext? (see bgm's prototype in i18n forum, or xavier's tests)
- transifex review / process / when to update / send welcome e-mails to new coordinators / communication ?
- documentation for translators (for new teams/languages, new team members, suggested workflow, texts for civicrm.org, clean up wiki docs)
- multi-lingual fun (multi-lingual + db logging?)

Planning to join us?
Post your ideas here, as well as links to issues or forum threads that may be relevant.
« Last Edit: April 04, 2012, 02:22:21 pm by mlutfy »
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

samuelsov

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 2
    • Coop SymbioTIC
  • CiviCRM version: 3.x, 4.x
  • CMS version: Drupal 6 & 7
Re: San Francisco internationalisation-localisation sprint - April 4-12, 2012
March 12, 2012, 08:26:42 am
Maybe i can work on a better integration of civicrm multilingual and drupal views : http://issues.civicrm.org/jira/browse/CRM-9844

--
Samuel
Consultant @ SymbioTIC.coop

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: San Francisco internationalisation-localisation sprint - April 4-12, 2012
March 12, 2012, 01:47:23 pm
Being able to have a working with native gettext instead of php emulation should be much better (memory/speed), or not, but at least we know for sure

It needs to change the structure for the way mo files are stored, and dealing with gettest that has the moronic behaviour of doing nothing and not displaying any error message if the translation has a problem (misssing key, missing file, whatever) just silently do nothing.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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: San Francisco internationalisation-localisation sprint - April 4-12, 2012
March 12, 2012, 09:10:20 pm
* need to find out why some API calls do a lot of calls to ts() - c.f. eileen
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: San Francisco internationalisation-localisation sprint - April 4-12, 2012
March 12, 2012, 11:24:11 pm
We know why: it's that we are using getfields for validation, and getfields ts the field description (and other fields maybe).

One solution might be to have a mode for getfields that doesn't translate (or a different function), but hopefully that will fix itself if gettext becomes fast

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: San Francisco internationalisation-localisation sprint - April 4-12, 2012
March 13, 2012, 01:00:26 am
The function that does lots of ts is

$dao->fields();

Looking at it it seems to cache which hadn't been my impression when I tried profiling it.

e.g CRM_Contribute_DAO

    /**
     * returns all the column names of this table
     *
     * @access public
     * @return array
     */
    function &fields()
    {
        if (!(self::$_fields)) {
            self::$_fields = array(
                'contribution_id' => array(
                    'name' => 'id',
                    'type' => CRM_Utils_Type::T_INT,
                    'title' => ts('Contribution ID') ,
                    'required' => true,
                    'import' => true,
                    'where' => 'civicrm_contribution.id',
                    'headerPattern' => '',
                    'dataPattern' => '',
                    'export' => true,
                ) ,
                'contribution_contact_id' => array(
                    'name' => 'contact_id',
                    'type' => CRM_Utils_Type::T_INT,
                    'title' => ts('Contact ID') ,
                    'required' => true,
                    'import' => true,
                    'where' => 'civicrm_contribution.contact_id',
                    'headerPattern' => '/contact(.?id)?/i',
                    'dataPattern' => '/^\d+$/',
                    'export' => true,
                    'FKClassName' => 'CRM_Contact_DAO_Contact',
                ) ,
blah blah
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

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: San Francisco internationalisation-localisation sprint - April 4-12, 2012
March 13, 2012, 05:01:24 pm
Found  these minor issues in the bug tracker:

"Monetary amount multiplied by 100 in contribution form - error in other amount validation"
http://issues.civicrm.org/jira/browse/CRM-9613

"On behalf of: state/province field lists all values, does not limit to those of the default country "
http://issues.civicrm.org/jira/browse/CRM-9520

"Setting Drupal permissions doesn't get picked up by CiviCRM if its language is not English."
http://issues.civicrm.org/jira/browse/CRM-9734
« Last Edit: March 13, 2012, 05:06:48 pm by mlutfy »
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Sprints »
  • Sprints @ CiviCon 2012 »
  • San Francisco internationalisation-localisation sprint - April 4-12, 2012

This forum was archived on 2017-11-26.