Olivier Dony
868a77616d
[FIX] ir.translation: export/import of QWeb terms
...
Fixes the translation term import/export logic to
support terms inside QWeb templates.
Refactored a bit the export code so the babel-based
QWeb terms extractor for ./static/src/*.xml files
uses the same logic as the regular extractor for
ir.ui.views with type QWeb.
Server-side QWeb rendering uses a mix of the native
view inheritance mechanism and the template inclusion
(t-call) mechanism. During rendering the translations
are only applied at "template" level, *after* the
view inheritance has already been resolved.
As a result translations are local to a template,
not to the inherited view in which they are actually
written.
In terms of exporting PO[T] files, this is done by
resolving the "root" QWeb template a view belongs
to, and using it as the location of the translated term.
During import there is one extra quirk for QWeb
terms: they need to be linked to the `website` model
rather than the actual `ir.ui.view` model they
are really pointing to, so the rendering phase can
properly recognize them.
2014-08-13 11:08:02 +02:00
Raphael Collet
cbe2dbb672
[MERGE] new v8 api by rco
...
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.
- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Jeremy Kersten
18bb52ee88
[FIX] Gengo - Update modoel ir_translation for gengo and make it working. Works with order and not job, because when you send a batch to translate, you don't know all the job but only the order.
2014-06-20 17:33:09 +02:00
Fabien Meghazi
1895d8bd76
[FIX] clear ir.ui.view cache on translation write/create
...
bzr revid: fme@openerp.com-20140122151327-keaozhwa7rx4qj73
2014-01-22 16:13:27 +01:00
Thibault Delavallée
7a72d858cb
[MERGE] Sync with trunk
...
bzr revid: tde@openerp.com-20140103151324-jk0u8vmrxxomy5vx
2014-01-03 16:13:24 +01:00
Martin Trigaux
216303c2fa
[FIX] ir_translation: rename method load to load_module_terms to avoid name clash with load call from base_import
...
bzr revid: mat@openerp.com-20131230125307-kald7ir36bvq3o7c
2013-12-30 13:53:07 +01:00
Christophe Matthieu
8460122209
[MERGE] sync with trunk
...
bzr revid: chm@openerp.com-20131202150856-fzrfcoa8pmsjutau
2013-12-02 16:08:56 +01:00
Denis Ledoux
6fd552c3ce
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5139 rev-id: dle@openerp.com-20131121132305-qjlclgz5v9tze1fr
...
bzr revid: odo@openerp.com-20131120102545-2tlp031yib6viz35
bzr revid: chs@openerp.com-20131120161708-c8sbom592moukwxw
bzr revid: dle@openerp.com-20131121155457-lh7fzouk2upeiu16
2013-11-21 16:54:57 +01:00
Denis Ledoux
58080c6569
[FIX] ir, ir_translation: it was not possible to empty the source of a translation, or this is sometime something that we want
...
bzr revid: dle@openerp.com-20131121132305-qjlclgz5v9tze1fr
2013-11-21 14:23:05 +01:00
Thibault Delavallée
97f164ba99
[MERGE] Sync with trunk
...
bzr revid: tde@openerp.com-20131028163325-2hpks3hp23zop40n
2013-10-28 17:33:25 +01:00
Xavier Morel
a622a5ad55
[FIX] remove handling of parameters in ormcache clearing
...
It's completely broken in case of optional parameters
e.g. (ir.translation)._get_source, as a call with the optional
parameter won't be matched by a clear without, and the other way
around. This becomes even more problematic in the website branch as
_get_source now has *two* optional parameters (source and res_id).
After discussion with odo and discovery that in multiprocess only the
current node will use any granularity (other nodes not only clear all
of the current method cache, but all caches of all models), simplify
cache clearing, ignore parameters and just blow the current method's
cache entirely.
bzr revid: xmo@openerp.com-20131024132956-4tl3prum8za47igy
2013-10-24 15:29:56 +02:00
Olivier Dony
54f740960e
[MERGE] Forward-port of latest saas-1 bugfixes, up to rev. 4912 rev-id: odo@openerp.com-20131016110621-36vvlpn8dgsabyt1
...
bzr revid: odo@openerp.com-20131016111800-jjybreg62bwz61zn
2013-10-16 13:18:00 +02:00
Olivier Dony
8ac110c4dd
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5098 rev-id: odo@openerp.com-20131011123914-7zuvd9mch21yxgj8
...
bzr revid: dle@openerp.com-20131009131902-a93nsbou4w8y0vlx
bzr revid: chs@openerp.com-20131009175454-j06y1ngylfbqyrpj
bzr revid: dle@openerp.com-20130918160049-fo88fl7uyhfoofkv
bzr revid: dle@openerp.com-20130924130544-kmkyr0d73cusvdav
bzr revid: odo@openerp.com-20131011134433-nyfjipvlql4xu127
2013-10-11 15:44:33 +02:00
Denis Ledoux
447dec696b
[FIX]base, ir_translation: in _get_src, if model or record id does not exist anymore, do not apptempt to read it
...
bzr revid: dle@openerp.com-20130924124654-9lz76t6hx0cmxnx5
2013-09-24 14:46:54 +02:00
Fabien Meghazi
31af948f59
[ADD] Add res_id parameter to ir.translation#_get_source()
...
bzr revid: fme@openerp.com-20130923114454-soquy5fkp1npjl40
2013-09-23 13:44:54 +02:00
Olivier Dony
fbd0758cb5
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5054 rev-id: odo@openerp.com-20130820091157-e5brwlxuhujf8rrd
...
bzr revid: chs@openerp.com-20130724085026-525l9apggc9yzx0h
bzr revid: odo@openerp.com-20130730140644-1xih0as5jsks4pub
bzr revid: dle@openerp.com-20130801130723-khgwjkglgsdn34fj
bzr revid: odo@openerp.com-20130820091638-jpbcmh653bpa29em
2013-08-20 11:16:38 +02:00
Martin Trigaux
1fc7e4d532
[IMP] ir_translation: better log message
...
bzr revid: mat@openerp.com-20130813130109-yhvgipdy9m63jcqy
2013-08-13 15:01:09 +02:00
Martin Trigaux
2bac9b3353
[ADD] ir_translation: allow extra translations in folder i18n_extra
...
bzr revid: mat@openerp.com-20130813121258-q9y4kudhavndlod6
2013-08-13 14:12:58 +02:00
Olivier Dony
a4589a84cc
[FIX] ir.translation: backport of trunk fix to allow editing master english source terms
...
Original trunk commits rev-ids:
- 4855 qdp-launchpad@openerp.com-20130416091501-sgm3gdm80oxajahz
- 4856 qdp-launchpad@openerp.com-20130417121718-jfwi2f3gn0tum9xa
- 4857 qdp-launchpad@openerp.com-20130418114627-unmfdu6010hyc8xx
bzr revid: odo@openerp.com-20130703161520-mk0g187rpmmw6bdx
2013-07-03 18:15:20 +02:00
Quentin (OpenERP)
9a21f819b6
[FIX] ir_translation: fixed erro 'context_wo_lang is not defined'
...
bzr revid: qdp-launchpad@openerp.com-20130418114627-unmfdu6010hyc8xx
2013-04-18 13:46:27 +02:00
Quentin (OpenERP)
96a60e42c6
[FIX] ir_translation: fix in new methods made to improve the usability, see previous commit
...
bzr revid: qdp-launchpad@openerp.com-20130417121718-jfwi2f3gn0tum9xa
2013-04-17 14:17:18 +02:00
Quentin (OpenERP)
d2e71a65e1
[IMP] ir_translation: GUI improve in order to be able to change the english value of a model field (eg: a product name) directly in the translation window + small refactoring in order to test 'if context is None' rather than 'if not context' (see lp bug 525808)
...
bzr revid: qdp-launchpad@openerp.com-20130416091501-sgm3gdm80oxajahz
2013-04-16 11:15:01 +02:00
Cedric Snauwaert
56badfcb46
[REF]ir_translation: improve _get_src and _set_src function
...
bzr revid: csn@openerp.com-20130415100914-wm0wqhgg5mou2wxs
2013-04-15 12:09:14 +02:00
Cedric Snauwaert
2455ef9463
[FIX]ir_translation: replace source field to show value of the term stored in db and reflect change directly
...
in db when changing source value
bzr revid: csn@openerp.com-20130412124914-8epmco1z37ge1oui
2013-04-12 14:49:14 +02:00
Raphael Collet
09be864f1d
[IMP] replace all tests like 'registry.get(X)' by 'X in registry' where X is non static
...
bzr revid: rco@openerp.com-20130329140723-dnrl02saky570xg0
2013-03-29 15:07:23 +01:00
Cecile Tonglet
ad8b76de53
[MERGE] From trunk (second time)
...
bzr revid: cto@openerp.com-20121217144753-1rboqdw01h8yrehj
2012-12-17 15:47:53 +01:00
Xavier Morel
3ee178ab2c
[FIX] unnecessary backslashes
...
bzr revid: xmo@openerp.com-20121214132113-1ofmm5x0ua3l2q5d
2012-12-14 14:21:13 +01:00
Xavier Morel
c6079dd6bb
[REM] unnecessary parens
...
bzr revid: xmo@openerp.com-20121214123803-6xu2s1ndnoyj4i3e
2012-12-14 13:38:03 +01:00
Vo Minh Thu
509a084e79
[IMP] use the openerp namespace.
...
bzr revid: vmt@openerp.com-20121210152723-mv4dykfu6ip1991h
2012-12-10 16:27:23 +01:00
Fabien Meghazi
c71ce60400
[IMP] ir.translation, raise exception when trying to translate fields when no extra language is installed.
...
bzr revid: fme@openerp.com-20121106162753-6eqbhnwqhjgeun78
2012-11-06 17:27:53 +01:00
Vo Minh Thu
749ee11eb2
[MERGE] removed a few warnings.
...
bzr revid: vmt@openerp.com-20121022132759-64qupagcv9cdqnkq
2012-10-22 15:27:59 +02:00
Mayur Maheshwari (OpenERP)
e1dfd1fadc
[IMP]all: imporve string state to status
...
bzr revid: mma@tinyerp.com-20121012122419-mtiw3wpxlcbl4y1r
2012-10-12 17:54:19 +05:30
Twinkle Christian (OpenERP)
2f8236bdd1
[FIX]Fix warning:no translation for language en_US
...
bzr revid: tch@tinyerp.com-20121011090232-i0lo4eelz74seja9
2012-10-11 14:32:32 +05:30
Olivier Dony
550751b358
[IMP] translations: wip, remove unnecessary code, support loading PO comments and storing them, split ir.translation view data in separate XML file
...
bzr revid: odo@openerp.com-20120913142920-ggpeqth4s2wwqwd2
2012-09-13 16:29:20 +02:00
Olivier Dony
09ba29883c
[FIX] ir.translation: typo in last sync with trunk
...
bzr revid: odo@openerp.com-20120911135254-uqi1s4n8qh0e3d1y
2012-09-11 15:52:54 +02:00
Olivier Dony
9a577ef431
[MERGE] Sync with trunk
...
bzr revid: odo@openerp.com-20120911114104-vk8afbjq9ao1dqr2
2012-09-11 13:41:04 +02:00
Fabien Meghazi
6e5a9053e5
[FIX] Fixed remarks of merge proposal
...
bzr revid: fme@openerp.com-20120904133216-7v82tmcqi1n21c3f
2012-09-04 15:32:16 +02:00
Fabien Meghazi
06e6bf71cc
[IMP] Always update src to the last value
...
bzr revid: fme@openerp.com-20120903155408-9agsj0y8y6g7ydsj
2012-09-03 17:54:08 +02:00
Fabien Meghazi
8295b4f181
[IMP] ir.tranlsation#translate: create ir.translation entries for a particular record
...
bzr revid: fme@openerp.com-20120903124818-myjy2616uv3blyki
2012-09-03 14:48:18 +02:00
Fabien Meghazi
dc93500740
[MERGE] trunk
...
bzr revid: fme@openerp.com-20120903124618-vpe2erkcml7131gp
2012-09-03 14:46:18 +02:00
Fabien Meghazi
df557637d1
[ADD] ir.translation#translate()
...
bzr revid: fme@openerp.com-20120830161553-hmf4fbsnqd2dhq7z
2012-08-30 18:15:53 +02:00
Quentin (OpenERP)
46f287b2d1
[FIX] base, ir_translation: a write of '' as translated value should reset the translation in 'to_translate' state
...
bzr revid: qdp-launchpad@openerp.com-20120830145000-61uh1tpux5dyp7na
2012-08-30 16:50:00 +02:00
Jigar Amin - OpenERP
46604fccb5
[FIX] Impoved treanlstion state field conditions
...
bzr revid: jam@tinyerp.com-20120830115055-tf396grzw3f6olfz
2012-08-30 17:20:55 +05:30
Jigar Amin - OpenERP
9464f474a4
[FIX] State Condition
...
bzr revid: jam@tinyerp.com-20120828103859-jp22lgwzlucc55gl
2012-08-28 16:08:59 +05:30
Jigar Amin - OpenERP
a4dae41a49
[FIX] Removed the unused wrong code
...
bzr revid: jam@tinyerp.com-20120828101723-d6qdm3bqpx3gcqbe
2012-08-28 15:47:23 +05:30
Jigar Amin - OpenERP
d27721f480
[REN] Renamed the state field key value
...
bzr revid: jam@tinyerp.com-20120828101559-l2zbivjzlmu7baq2
2012-08-28 15:45:59 +05:30
Turkesh Patel (Open ERP)
402ba23000
[IMP] improved code to retun traslation in proper format from server
...
bzr revid: tpa@tinyerp.com-20120713065521-07a7qdfxfio673cq
2012-07-13 12:25:21 +05:30
Turkesh Patel (Open ERP)
bc76991e24
[IMP] improved code.
...
bzr revid: tpa@tinyerp.com-20120712132308-1qvurv572sxmsnqe
2012-07-12 18:53:08 +05:30
Turkesh Patel (Open ERP)
976944bce2
[IMP] improved code in module.py to load translation.
...
bzr revid: tpa@tinyerp.com-20120712095131-3tt25snidvafflhb
2012-07-12 15:21:31 +05:30
Turkesh Patel (Open ERP)
20646e9104
[IMP] move load function to the ir_translation.py
...
bzr revid: tpa@tinyerp.com-20120712093130-rcis1aamb7bbptdd
2012-07-12 15:01:30 +05:30