Commit Graph

199 Commits

Author SHA1 Message Date
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
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
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
Anup (OpenERP) e0d94956c1 [IMP] SQL injection Refactored
bzr revid: ach@tinyerp.com-20100618101641-84cdea9n1pzx36v2
2010-06-18 15:46:41 +05:30
Anup (OpenERP) 6b90ca82c5 [IMP] removed the possible SQL injection server.
bzr revid: ach@tinyerp.com-20100615132722-zbua6ciz3dz43qd8
2010-06-15 18:57:22 +05:30
Anup (OpenERP) 4178ddbc9b [FIX] translate: error with workaround about \xa0 in decimal_point and thousands_sep
bzr revid: ach@tinyerp.com-20100512140640-yhum1bfmy5lfhg2w
2010-05-12 19:36:40 +05:30
Jay (Open ERP) 773238132b [FIX] Export translations: module name from path calculations corrected
lp bug: https://launchpad.net/bugs/519699 fixed

bzr revid: jvo@tinyerp.com-20100512103352-604yu97m9aexm9zr
2010-05-12 16:03:52 +05:30
Anup (OpenERP) 505b63fe5f [IMP] By pass a missing field in the translation
bzr revid: ach@tinyerp.com-20100511140111-87az887kvi6rl0uz
2010-05-11 19:31:11 +05:30
Fabien Pinckaers 1350a121fd [Imp] add company on sequences
bzr revid: fp@tinyerp.com-20100202222730-vck4y6nl1qgc70sm
2010-02-02 23:27:30 +01:00
Xavier Morel b4f3dcde7e [merge] mx.DateTime-removal branch by rvalyi
https://code.launchpad.net/~openerp-commiter/openobject-server/server-mxdatetime-free/+merge/16099

bzr revid: xmo@tinyerp.com-20100202073928-xcnqd57l10jd3dg1
2010-02-02 08:39:28 +01:00
Raphaël Valyi 48e935e6a2 [MERGE] from trunk
bzr revid: rvalyi@gmail.com-20100201130334-mgd708bztw2uxya9
2010-02-01 11:03:34 -02:00
Raphaël Valyi fe3562a57b [REF] use datetime.utcnow() rather than having to import: from dateutil.tz import tzutc
bzr revid: rvalyi@gmail.com-20100201125944-lpr1ijeg2zmkadmv
2010-02-01 10:59:44 -02:00
HDA (OpenERP) 8a887ad4e0 Merged
bzr revid: hda@tinyerp.com-20100112104830-x35l4g08og2gacwo
2010-01-12 16:18:30 +05:30
Raphaël Valyi b53e15b576 [FIX] translate; Launchpad export: time is now UTC and we use a clean strftime rather than a hacky split/concat, output is exactly the same as mx.Datetime
bzr revid: rvalyi@gmail.com-20091225180329-a22s8o5lr5qw4qr2
2009-12-25 16:03:29 -02:00
Raphaël Valyi a638f8aaba [MERGE]
bzr revid: rvalyi@gmail.com-20091217232137-y7gb1lvi3vyjbvtn
2009-12-17 21:21:37 -02:00
Raphaël Valyi 1cbec3a642 [REF] changed coding style from datetime.datime.foo to datetime.foo, changing the import accordingly
bzr revid: rvalyi@gmail.com-20091214152104-evcck2uv66bbulnf
2009-12-14 13:21:04 -02:00
Raphaël Valyi 15b965fb6f [FIX] correct datetime replacement for mxdt.ISO.strUTC(mxdt.ISO.DateTime.utc())
bzr revid: rvalyi@gmail.com-20091214031018-xxl8l8r9s02jvxva
2009-12-14 01:10:18 -02:00
Cristian Salamea (GnuThink) f41e524133 [REF] get rid of the mx.Datetime C dependency, meaning better portability, especially to alternative Python interpreters, better maintainability; implements this blueprint: https://blueprints.launchpad.net/openobject-server/+spec/get-rid-of-mx-datetime-dependency; largely the work of Cristian Salamea (GnuThink)
bzr revid: rvalyi@gmail.com-20091213181601-4k4mhtgnv2qynrjo
2009-12-13 16:16:01 -02:00
Christophe Simonis 2d4686660c [FIX] handle the case of missing "#:" formated comment in po files
bzr revid: chs@tinyerp.com-20091210110826-he983jrra2tr4sfo
2009-12-10 12:08:26 +01:00
hda (Tiny) 24cd74becf Merge
bzr revid: hda@tinyerp.com-20091208101246-5ave2zzgzsjqf0m8
2009-12-08 15:42:46 +05:30
mra (Open ERP) 160b545067 [FIX] Translation: Error parsing .po files when application puts comments in a single line
lp bug: https://launchpad.net/bugs/491365 fixed

bzr revid: mra@tinyerp.com-20091203120914-cx2kv7gk7zg65248
2009-12-03 17:39:14 +05:30
Xavier Morel 91c515382c [merge] 5.0-lxml-fixes into trunk
bzr revid: xmo@tinyerp.com-20091202092042-36gz0wkbu27aetvc
bzr revid: xmo@tinyerp.com-20091202093008-9uwo63c0bwdh8eaw
2009-12-02 10:30:08 +01:00
rpa-openerp 9119fffc19 [FIX]: Translaiton: Fixed problem of other files included in export of translation of base module
bzr revid: mra@tinyerp.com-20091130111734-2hh985euf8n26omg
2009-11-30 16:47:34 +05:30