Commit Graph

219 Commits

Author SHA1 Message Date
Olivier Dony 8edba174ce [MERGE] translations: refactoring/deferral of translated resource id resolution, fixing several translation issues
lp bug: https://launchpad.net/bugs/696760 fixed

bzr revid: odo@openerp.com-20110107151735-agubxu82g0ursdbh
2011-01-07 16:17:35 +01:00
Olivier Dony 7d3375f49f [MERGE] bugfixes: default language for partners, password change, validation of custom selection fields, ...
See the bug links

lp bug: https://launchpad.net/bugs/670264 fixed
lp bug: https://launchpad.net/bugs/692891 fixed
lp bug: https://launchpad.net/bugs/695678 fixed
lp bug: https://launchpad.net/bugs/631547 fixed
lp bug: https://launchpad.net/bugs/632927 fixed

bzr revid: odo@openerp.com-20110106173828-kdv1gtdvbws1ceb5
2011-01-06 18:38:28 +01:00
Vo Minh Thu 4629c7af78 [IMP] translation: Added two columns to ir_translation to fix the res_ids after loading is done.
Currently res_ids are resolved and written to ir_translation on the fly, as
the .po are loaded, line by line. Doing this in a second step should resolve
a translation bug and make things faster too.

bzr revid: vmt@openerp.com-20110106105021-xj9vah5oz0ceto7i
2011-01-06 11:50:21 +01:00
Vo Minh Thu c2402b14a9 [IMP] trans_export/trans_load: passing a cursor around instead of a dbname.
bzr revid: vmt@openerp.com-20110105140758-vgoufkd85v6ywrjk
2011-01-05 15:07:58 +01:00
Olivier Dony bf16725dc8 [FIX] all: ensure all open files are closed (partial patch courtesy of Lampman Trading)
lp bug: https://launchpad.net/bugs/676931 fixed

bzr revid: odo@openerp.com-20110104101335-964sl0e71zsgzfjw
2011-01-04 11:13:35 +01:00
Yogesh Sakhreliya 4862a5f846 Merge with trunk-server
bzr revid: ysa@tinyerp.com-20101230092459-b1xlf2trdw76zn6k
2010-12-30 14:54:59 +05:30
Yogesh Sakhreliya 3ebc68162a [FIX] default languange set in partner according to database installation language.
bzr revid: ysa@tinyerp.com-20101230091734-0hrmb3fzpdy78w2v
2010-12-30 14:47:34 +05:30
Fabien Pinckaers 840e76b9ac merge
bzr revid: fp@tinyerp.com-20101229185833-ujdxwg5zyg2i3zf2
2010-12-29 19:58:33 +01:00
P. Christeas 7100cfa985 [MERGE] translations: source line numbers added in PO, ORM terms exported in base, XML comments ignored
bzr revid: odo@openerp.com-20101229182028-astrsxry7v3lz1eg
2010-12-29 19:20:28 +01:00
P. Christeas 76bd5dfb72 tools/translate: import skipped xml types from tools.misc, after recent patch
bzr revid: p_christ@hol.gr-20101229114025-p1aj5tfuf5pwxxw2
2010-12-29 13:40:25 +02:00
P. Christeas bcb7335027 tools/translate: don't export comments and PI nodes for translation
We are not going to display them to user, so let the teams skip those
strings.

bzr revid: p_christ@hol.gr-20101229113334-71fe2bnw1dra167q
2010-12-29 13:33:34 +02:00
P. Christeas b0e2c85065 translate: implement a counter to export the code line number
Before this, all code sources were like "#: code:foo/bar.py:0", now
they will have line no like "#: code:foo/bar.py:123".

Note that the gettext() wouldn't be affected, since it doesn't consult
the file name or line so far.

bzr revid: p_christ@hol.gr-20101229113306-vo3gflwunq2f75qm
2010-12-29 13:33:06 +02:00
P. Christeas 263b4524fb tools/translate: fix couple of errors caught by the lint check.
bzr revid: p_christ@hol.gr-20101229113134-6cz48hjh2hcc186e
2010-12-29 13:31:34 +02:00
P. Christeas fbc69de16b translate: export the orm and report code translations
bzr revid: p_christ@hol.gr-20101229112850-cqe0wxxtewyfdjsk
2010-12-29 13:28:50 +02:00
Vo Minh Thu 799ef1b988 [ADD] clean-po.py: script to clean .po files.
bzr revid: vmt@openerp.com-20101228155640-hift2uqfcmif1s9r
2010-12-28 16:56:40 +01:00
Vo Minh Thu 8f8001d5f0 [IMP] translate: load language xx before xx_XX and overwrite only when a translation is available.
bzr revid: vmt@openerp.com-20101227135800-qwvsk4xwhzrjg6yf
2010-12-27 14:58:00 +01:00
Olivier Dony 7964fd96f8 [MERGE] tools.translate, test_reports, res_config: several bugfixes (see buglinks)
lp bug: https://launchpad.net/bugs/692845 fixed
lp bug: https://launchpad.net/bugs/692598 fixed
lp bug: https://launchpad.net/bugs/692746 fixed

bzr revid: odo@openerp.com-20101221170809-zqusunjw2em9xz9y
2010-12-21 18:08:09 +01:00
P. Christeas 1970c59234 translate: fix usage of TinyPoFile.warn() [Bug 692845]
as reported by Phong Nguyen, thanks.

bzr revid: p_christ@hol.gr-20101221144646-74a9qy43nbiepbxu
2010-12-21 16:46:46 +02:00
P. Christeas bc9611bd40 translate: fix skipping one translation per .po file in a .tgz
Thanks TFR for asking me to translate the *single* term that had been
missing due that bug!
The .po file loop skips the first line of the supplied rows, but the
calling was not consistent to always provide the redudant header row.

bzr revid: p_christ@hol.gr-20101221144354-chc9oz6r3to75pu1
2010-12-21 16:43:54 +02:00
Olivier Dony e5ecadeda7 [FIX] tools.translate: remove useless duplicate line
bzr revid: odo@openerp.com-20101221143718-ml2xg42yypn6b8fm
2010-12-21 15:37:18 +01:00
Vo Minh Thu (OpenERP) 35b9fd82ff [FIX] re-commit previous merge broken by bzr-rebase:
translate,orm: simplify loading of field value translations and avoid ignoring them when string has changed (many issues with menus not loaded yet)

bzr revid: odo@openerp.com-20101221105843-myzlkd74tci3puer
2010-12-21 11:58:43 +01:00
Olivier Dony 97ea0b97a3 [IMP] translate: _( ) should always use ir.translation OSV, no fallback to direct DB access needed
bzr revid: odo@openerp.com-20101215132128-1pxzjrde0bpu5smg
2010-12-15 14:21:28 +01:00
Olivier Dony 650490d61d [IMP] ir.translation,tools.translate._(): cleanup and speedup if translations via _()
- Removed expensive inspect.stack() (courtesy of xrg)
- Improved heuristics for detection of context/lang and cursor
- Switch to using ir.translation when possible instead of direct DB hit to benefit from cache
- Cleanup

lp bug: https://launchpad.net/bugs/624114 fixed

bzr revid: odo@openerp.com-20101215114019-psrsu998inw6cksu
2010-12-15 12:40:19 +01:00
nel@tinyerp.com 10c0a345e8 [FIX] translation in xpath
bzr revid: nel@tinyerp.com-20101214122911-qxw0vozlqmnzt89q
2010-12-14 13:29:11 +01:00
Olivier Dony f1cfc436a7 [MERGE+FIX] fixes for translations,sequence,copy,error messages - some patches courtesy of Margarita Manterola and Don Kirkby
lp bug: https://launchpad.net/bugs/672130 fixed
lp bug: https://launchpad.net/bugs/663775 fixed
lp bug: https://launchpad.net/bugs/673194 fixed
lp bug: https://launchpad.net/bugs/663977 fixed

bzr revid: odo@openerp.com-20101130110940-0tf6ra0uwhiptieb
2010-11-30 12:09:40 +01:00
olt@tinyerp.com cf152730b8 [FIX] po file parser: database creation crashes if res_id is an empty string
bzr revid: olt@tinyerp.com-20101126082048-ndc55bsf4vo3cu2c
2010-11-26 09:20:48 +01:00
Olivier Dony 2a99340541 [IMP] tools.translate: more lenient with malformed PO entries
bzr revid: odo@openerp.com-20101125172236-son3382958xbds8y
2010-11-25 18:22:36 +01:00
Olivier Dony 727b9d7e55 [IMP] tools.translate: use consistent logging API
bzr revid: odo@openerp.com-20101125172144-3z0rs97u50q142vx
2010-11-25 18:21:44 +01:00
P. Christeas, O. Dony 6a69f37cf0 [MERGE] many improvements regarding translations, logging, reports, http, speed
bzr revid: odo@openerp.com-20101125142219-8bkqfboyuslzpvyo
2010-11-25 15:22:19 +01:00
Margarita Manterola b140c3cacb Confirm message support translation and export
bzr revid: ysa@tinyerp.com-20101124093647-hbh2gzghkf39desi
2010-11-24 15:06:47 +05:30
Yogesh Sakhreliya 8940877f64 revert rev no :-3030
bzr revid: ysa@tinyerp.com-20101124093435-3d7ioctc8raaf1j2
2010-11-24 15:04:35 +05:30
Yogesh Sakhreliya ca3a65d9ad Confirm message support translation and export--author=Margarita Manterola
bzr revid: ysa@tinyerp.com-20101124091207-5gccf6h5h0hgu06i
2010-11-24 14:42:07 +05:30
P. Christeas 4db6f0e5c1 translate: fix default arguments after last patch
bzr revid: p_christ@hol.gr-20101123152740-pn9mbptpdvw0sz98
2010-11-23 17:27:40 +02:00
P. Christeas 7ce5179086 translate: don't complain about fuzzy strings.
They are part of the format and ought to be silently discarded.

bzr revid: p_christ@hol.gr-20101123135858-zkp7hjcn4slv3r57
2010-11-23 15:58:58 +02:00
P. Christeas c67f1746f4 translate: port to pythonic logging, filename in a message
It is good to know which .po file we are currently loading.
Warning: some messages moved from the 'db' logger to the 'i18n' one.

bzr revid: p_christ@hol.gr-20101123135835-k6d6r7sgif5zhb75
2010-11-23 15:58:35 +02:00
P. Christeas 89c40dec2f translate: fix scanning the ir.models for translations
The loop would only consider models that have >0 records registered in
    ir.model.data.

This is merge of commits 3988ebf4dc130, 070e7d6ac717de and adapt to trunk.

bzr revid: p_christ@hol.gr-20101116163510-yemzlcy0f0yk893l
2010-11-16 18:35:10 +02:00
Olivier Dony 8472cfb7e3 [IMP] tools.translate: improved debug message for illegal values in PO terms
bzr revid: odo@openerp.com-20101116141508-jls1v2rqyvb7pf0v
2010-11-16 15:15:08 +01:00
Olivier Dony 6a3324a7a0 [IMP] tools.translate: various improvements to tranlations export/import, courtesy of P. Christeas:
- better support for multiline labels
- better support for multiple addons paths

bzr revid: odo@openerp.com-20101116123844-mo9mljrzduzs90gg
2010-11-16 13:38:44 +01:00
Olivier Dony 69ea053093 [FIX] translations: export wizard should also export _sql_constraints + cleanup
bzr revid: odo@openerp.com-20101020163822-myx69vpr1vavlqru
2010-10-20 18:38:22 +02:00
Olivier Dony eed35f8c52 [ADD] languages: add support for more spanish locales (latin america)
lp bug: https://launchpad.net/bugs/660933 fixed

bzr revid: odo@openerp.com-20101020161843-rpdcihejmiluv3k7
2010-10-20 18:18:43 +02:00
Julien Thewys 2272c189d9 [IMP] Added cli args to load one or more languages translation terms automatically.
Mainly used to automate languages installation at DB initialization.

bzr revid: jth@openerp.com-20101020144248-q20vnt72ovx3md96
2010-10-20 16:42:48 +02:00
Fabien Pinckaers a357961185 [FIX] translation terms overwrited
bzr revid: fp@tinyerp.com-20101017154335-fhdwj610nkqfez9w
2010-10-17 17:43:35 +02:00
Olivier Dony 3af1a322d4 [IMP] tools.translate: log at debug level rather than warning when a translation fails
bzr revid: odo@openerp.com-20101012182042-d2wcjr2jru9k7j17
2010-10-12 20:20:42 +02:00
Anup (OpenERP) e1f829b0eb [FIX] Export & Synchronize Translations Corrected
lp bug: https://launchpad.net/bugs/658993 fixed

bzr revid: ach@tinyerp.com-20101012120908-1u5n29r040drhhzs
2010-10-12 17:39:08 +05:30
Olivier Dony 2171202b32 [IMP] translations: support generic "report" translation type + export from *.mako files + multiple types for _get_source() + lint cleanup
bzr revid: odo@openerp.com-20101008140349-9hclfqwjmndkrtn4
2010-10-08 16:03:49 +02:00
Julien Thewys 34577af85f [FIX] Fixed gettext translation (in particular, fixed translation in RML reports).
bzr revid: jth@openerp.com-20100907084902-0l323afsiju4y1i4
2010-09-07 10:49:02 +02:00
Anup (OpenERP) 73ac56eaf1 [FIX] msgstr in .pot file must be '' while exporting template translation
bzr revid: ach@tinyerp.com-20100901075244-wz3c75j56q6m79yg
2010-09-01 13:22:44 +05:30
Julien Thewys 34be1742ad [FIX] Fixed translation string generation when parsing source files.
bzr revid: jth@openerp.com-20100812182412-r64bujtwge7wwz2t
2010-08-12 20:24:12 +02:00
vra 7ed648ce88 [MERGE] merge the changes from main trunk branch.
bzr revid: vra@tinyerp.com-20100624084539-ne1e1tscqn1z3jw5
bzr revid: vra@tinyerp.com-20100624084650-svala4jb0dnf7aal
2010-06-24 14:16:50 +05:30
P. Christeas, Olivier Dony 162c7b50ae [IMP] orm/translate: don't attempt to translate callable constraints
bzr revid: odo@openerp.com-20100624075425-ylv7weqpy7skg7md
2010-06-24 09:54:25 +02:00