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) »
  • Change of structure between 2.2 & 2.1 from svn ?
Pages: [1]

Author Topic: Change of structure between 2.2 & 2.1 from svn ?  (Read 2213 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Change of structure between 2.2 & 2.1 from svn ?
February 23, 2009, 11:46:08 am
Hi

On the 2.1 branch, the .po files where under l10n/en_GB/LC_MESSAGES on the 2.2 they are under l10n/en_GB directly

Do I have to do something that I missed or is this normal change ?

Otherwise, is there a way of debugging ? I followed the track as described and compiled the po and all that, but the messages I changed are stubbornly unchanged. There isn't any error message in the process, is there a way to verify that the right .mo is loaded, force to reload it or something ?

X+






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

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Change of structure between 2.2 & 2.1 from svn ?
February 24, 2009, 01:05:47 am
Quote from: xavier on February 23, 2009, 11:46:08 am
On the 2.1 branch, the .po files where under l10n/en_GB/LC_MESSAGES on the 2.2 they are under l10n/en_GB directly

Do I have to do something that I missed or is this normal change ?

I moved the POT/PO files to a separate repo, one level up (dropping LC_MESSAGES) and dropped the MO files. They are currently hooked from our main repo via svn:externals.

Quote
Otherwise, is there a way of debugging ? I followed the track as described and compiled the po and all that, but the messages I changed are stubbornly unchanged. There isn't any error message in the process, is there a way to verify that the right .mo is loaded, force to reload it or something ?

I’m doing a general rework of the l10n stuff this week, so things might be a bit broken – but, in general,
Code: [Select]
msgcat l10n/en_GB/*.po | msgfmt -o l10n/en_GB/civicrm.mo -
should do the trick and refresh the MO file.

Note that the v2.2 branch still uses CiviCRM 2.1’s files (I’ll rebuild them today).
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.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Change of structure between 2.2 & 2.1 from svn ?
February 24, 2009, 02:47:36 am
So that's the same po for all the future versions on civi ? (ie you will keep unused messages so it doesn't break up compatibility) ?

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

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Change of structure between 2.2 & 2.1 from svn ?
February 24, 2009, 04:40:16 am
Quote from: xavier on February 24, 2009, 02:47:36 am
So that's the same po for all the future versions on civi ? (ie you will keep unused messages so it doesn't break up compatibility) ?

No, we have a per-version POT files (and, so PO and MO files). Currently l10n/branches/v2.1 equals l10n/branches/v2.2 (and it’s the latter that’s svn:externals-sourced in the v2.2 branch in the main repo), but this will change later today, when I rebuild POT files and then regenerate the PO files for the various languages.

I think I might hook the MO regeneration to bin/setup.sh, as it seems to be useful to be able to recompile MO files easily/from-time-to-time.
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.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Change of structure between 2.2 & 2.1 from svn ?

This forum was archived on 2017-11-26.