IRC logs of #tryton for Thursday, 2018-12-13

chat.freenode.net #tryton log beginning Thu Dec 13 00:00:01 CET 2018
-!- scrapper(~scrapper@mail.alpmine.com) has joined #tryton23:05
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:26
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:38
-!- Justuni(471ea247@gateway/web/freenode/ip.71.30.162.71) has joined #tryton02:33
-!- justuni(justuni@gateway/shell/insomnia247/x-makrhzavwmezugqu) has joined #tryton02:40
-!- justuni(justuni@gateway/shell/insomnia247/x-zdmnqyzpqutgzotc) has joined #tryton02:46
-!- udono1(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton03:01
-!- yangoon(~mathiasb@mue-88-130-66-103.dsl.tropolys.de) has joined #tryton03:19
-!- udono(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton03:41
-!- thaneor(~lenovo3@179.26.84.65) has joined #tryton04:08
-!- udono1(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton04:40
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton05:50
-!- udono(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton06:15
-!- thaneor1(~lenovo3@179.26.132.136) has joined #tryton06:22
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton07:20
-!- xcodinas_(~xcodinas@134.ip-5-196-28.eu) has left #tryton07:50
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton07:51
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton07:55
-!- zmichal(~michal@chello085216186171.chello.sk) has joined #tryton08:16
-!- smorillo(9f9305ee@gateway/web/cgi-irc/kiwiirc.com/ip.159.147.5.238) has joined #tryton08:21
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:29
-!- scrapper(~scrapper@mail.alpmine.com) has joined #tryton08:50
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton09:29
-!- rpit(~rpit@h-213.61.178.154.host.de.colt.net) has joined #tryton10:03
-!- scrapper(~scrapper@mail.alpmine.com) has joined #tryton10:15
-!- zmichal(~michal@bband-dyn3.178-40-135.t-com.sk) has joined #tryton11:02
buxyI have upgraded to Tryton 5.0 and my invoices are no longer properly translated. I have checked that all translations are present (set translations, sync translations, etc.) and none are marked as fuzzy. Despite this all my invoices are in English.11:28
cedkbuxy: is the party language set?11:29
cedkI mean the party invoiced11:29
buxyI use a custom invoice report but I have updated it to match the latest changes. In particular, I have two placeholder fields with « replace text:p="set_lang(invoice.party.lang)" » and « replace text:p="invoice.set_lang(invoice.party.lang)" »11:30
buxycedk: yes, the party language is set to French11:31
cedkbuxy: should check that set_lang is actually been called11:34
cedkbuxy: also use a draft invoice to avoid cache11:34
buxyit's a draft invoice, I know that posted invoices are stored11:34
buxycedk: how can I check that set_lang is called? shall I revert to the previous syntax to compare?11:35
buxyhum, before I had "set_lang(invoice.party.lang and invoice.party.lang.code or 'en_US')" so it's lang.code that was passed to set_lang11:40
cedkbuxy: put a print statement in report.py11:40
cedkbuxy: set_lang has been improved to support both language instance or code11:41
buxycedk: if I use plain "set_lang(invoice.party.lang)" instead of this replace text:p="..." syntax, then it works11:50
buxyI have python-relatorio 0.8.1-1~9stretch+1, do we need a more recent version to support the replace syntax?11:51
-!- mariomop(~quassel@host206.201-253-197.telecom.net.ar) has joined #tryton11:52
buxyso it really looks like that set_lang is not called with the replace syntax11:53
cedkbuxy: is it https://bugs.tryton.org/issue654811:54
pokoliIt is possible to use to print the same string with two diferent languages in same reports?11:55
-!- scrapper(~scrapper@mail.alpmine.com) has joined #tryton11:58
cedkpokoli: you have two switch from one lang to the other11:59
pokolicedk: this maybe a little bit mess because we had the request the print the same string in Catalan and Spanish separated by a /12:01
pokolibut I will see how to we manage it, because I'm not sure if we will endup implementing this request. Thanks for your reply12:02
cedkpokoli: if you know to whom the document is addresed, I do not see the point to make it multilangual.12:03
cedkif it is not addressed to someone in particular, then just make a template bilangual and translate nothing12:04
Timitospokoli: you should treat the complete string of spanish and catalan as one language. we did it that way in one of our projects12:05
cedkTimitos: nice hack :-)12:10
Timitoscedk: in our case it made completely sense that way. invoice goes to english customer. german translations are needed for german customs office12:17
-!- udono1(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton12:22
cedkTimitos: you could just duplicate document for each language12:24
Timitosmaybe. but our solution saves paper :-)12:25
-!- csotelo(~csotelo@2800:200:f400:c6d:93cb:150d:4bbf:365a) has joined #tryton12:54
-!- csotelo(~csotelo@2800:200:f400:c6d:93cb:150d:4bbf:365a) has joined #tryton12:59
buxySo it looks like my problem was that I had the two replaces directives in the same paragraph.13:15
buxythanks cedk for the pointer!13:16
-!- thaneor(~lenovo3@179.26.132.136) has joined #tryton13:39
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton13:49
-!- vmora83(~vmora@109.74.88.137) has joined #tryton14:22
-!- k_valdivia(~k_valdivi@179.7.225.230) has joined #tryton15:44
-!- csotelo(~csotelo@2800:200:f400:c6d:93cb:150d:4bbf:365a) has joined #tryton16:32
-!- vmora83(~vmora@82.64.20.169) has joined #tryton16:34
pokolicedk: Timitos: thanks for the tips! I thought about making the template bilingual and mark it as non translatable16:34
pokolithe document should be in the oficial languages of the Area, for catalionia it is Catalan and Spanish, for Basque Country it is Spanish and Basque, and for other spanish regions only Spanish16:36
pokoliso probably the best option is to make it only in Spanish and let the user customize depending on its region16:36
cedkpokoli: that's weird, usually in such case document should be in one of the official languages16:38
pokolicedk: for me it's enought to print it on the party language as it will normally be one oficial language16:40
pokolicedk: but users are used to see it with both languages, so they ask for it.16:40
pokoliStill not sure on which is the best solution16:41
-!- scrapper(~scrapper@mail.alpmine.com) has joined #tryton16:53
-!- thaneor1(~lenovo3@179.26.9.249) has joined #tryton18:24
-!- k_valdivia(~k_valdivi@2800:200:f400:c6d:51d1:b174:b455:20b) has joined #tryton18:43
-!- JanGB(~jan@x2f7f99f.dyn.telefonica.de) has joined #tryton19:01
-!- udono(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton19:39
-!- udono1(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton19:41
-!- udono2(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton19:42
-!- JanGB(~jan@x2f7f99f.dyn.telefonica.de) has joined #tryton19:42
-!- udono(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton19:46
-!- udono1(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton19:50
-!- k_valdivia(~k_valdivi@179.7.225.230) has joined #tryton20:34
-!- JanGB(~jan@x2f7f99f.dyn.telefonica.de) has joined #tryton20:41
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton21:01
-!- JanGB(~jan@x2f7f99f.dyn.telefonica.de) has joined #tryton21:14

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!