Commit Graph

13 Commits

Author SHA1 Message Date
Vidhin Mehta (OpenERP) 5053c1a66e bzr revid: vme@tinyerp.com-20120615085238-d0vm6jr5t23k5jim 2012-06-15 14:22:38 +05:30
Vidhin Mehta (OpenERP) e76a800f90 [IMP]add attr in npybabel.py.
bzr revid: vme@tinyerp.com-20120615085027-z08zieqvr0v8br4j
2012-06-15 14:20:27 +05:30
Xavier Morel 00ff10c0e6 [IMP] remove xmljs extractor from babel conf file (does not work), add note to extractor function
bzr revid: xmo@openerp.com-20120214150718-h12fnjsigna5miar
2012-02-14 16:07:18 +01:00
Olivier Dony df0b4f8c35 [IMP] i18n extractor now ignores comments and PIs + additional spurious translations removed
PO templates updated accordingly

bzr revid: odo@openerp.com-20120207182255-23s4yp4hrteierht
2012-02-07 19:22:55 +01:00
Olivier Dony 1b3701ce59 [IMP] Fix some remaining untranslated areas, and extract @title,@alt and @label attributes too
(pending an update of the qweb rendering engine to
 actually translate the newly exported attributes)

bzr revid: odo@openerp.com-20120207092655-kgdcxa8myalxfyjq
2012-02-07 10:26:55 +01:00
Olivier Dony 968decea96 [IMP] npybabel.py: comment w/ rationale for not using iterparse() in qweb extraction
bzr revid: odo@openerp.com-20120206153217-27ns8rl6q0198vqk
2012-02-06 16:32:17 +01:00
Olivier Dony 7ebc5bdba3 [IMP] refactored translation system to merge web translations with addons translations
- Moved the web *.po files to /i18n to be consistent
  with the addons convention. Using /po was considered
  for a while because it played better with LP's auto-
  detection of PO Templates, but that is not necessary
  anymore, we now have full control on LP templates.

- In order to support addons that contain translations
  for both the web addon and the regular addon part,
  both kinds of translations are now merged in a single
  addon/i18n/addon.pot file. Terms that are used by
  the web part are now marked with a PO annotation:
     #. openerp-web
  so the web client can recognize them and only load
  the relevant translations in the browser memory.
  This is important because a complete PO file can
  be rather large, e.g. account/i18n/de.po = 400KB.

- The web translation export scripts were updated to
  behave properly for addons that have a non-web
  part, and will merge the web translation in the
  original POT file, annotating the web translations
  as needed. These scripts are Unix-only and meant
  to be used by OpenERP packagers when needed.

- The GetText spec says that PO auto-comments indicating
  the source location have this form:
   #: /path/to/file:lineno
  However OpenERP's POT export system defaults to a modified
  version of this format with an extra 'type' field:
   #: type:/path/to/file:lineno
  The babel extractors we use have the GetText format 
  hardcoded so a small patch is needed on the server
  to make it more lenient and accept the standard
  source annotation, defaulting to 'code' type.
  This does not matter for openerp-web, but makes sure
  the server will not fail to load the new PO files 
  that contain openerp-web translations with standard
  annotations.
  The patch for making the server more lenient was
  checked in trunk at revision 4002 
  rev-id odo@openerp.com-20120202143210-05p1w24t6u77cyv8

- The existing translation sync and export wizards for
  regular addons have not been updated to consider
  web addons, so for the time being we will have
  to export regular addons terms first, and run the
  web export script (gen_translations.sh) on the
  addons directory afterwards. This could be improved
  later.

As soon as this change is merged we will have to
perform a full update of addons translation
templates in order to include the web terms as well.

bzr revid: odo@openerp.com-20120202145603-ffo0il0qnfp3r6gt
2012-02-02 15:56:03 +01:00
Xavier Morel 31098bc872 [FIX] npybabel shebang line
bzr revid: xmo@openerp.com-20111205105028-50o1m1lt2p3qvvkb
2011-12-05 11:50:28 +01:00
Fabien Meghazi 278955b207 [ADD] Web client now support template translations
bzr revid: fme@openerp.com-20111020091619-1i2nhopdgszsy48q
2011-10-20 11:16:19 +02:00
niv-openerp 4d12385eab [imp] improved i18n to scan all files
bzr revid: nicolas.vanhoren@openerp.com-20110817112828-tghtfms3zm3r0044
2011-08-17 13:28:28 +02:00
niv-openerp f713807311 [imp] improved wqweb scanning for translations
bzr revid: nicolas.vanhoren@openerp.com-20110816113400-f1laiorv1nx58yo9
2011-08-16 13:34:00 +02:00
niv-openerp be46b05129 [imp] improved qweb scanning function
bzr revid: nicolas.vanhoren@openerp.com-20110816104219-wt0rl0kpfn5rcvz7
2011-08-16 12:42:19 +02:00
niv-openerp 5b522f5d06 [imp] setup infrastructure for qweb message extraction
bzr revid: nicolas.vanhoren@openerp.com-20110816100940-h7mxs3ajvoem9ujj
2011-08-16 12:09:40 +02:00