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 #tryton00:12
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:12
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:12
-!- Justuni(471ea247@gateway/web/freenode/ip.71.30.162.71) has joined #tryton03:12
-!- justuni(justuni@gateway/shell/insomnia247/x-makrhzavwmezugqu) has joined #tryton03:12
-!- justuni(justuni@gateway/shell/insomnia247/x-zdmnqyzpqutgzotc) has joined #tryton03:12
-!- udono1(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton04:12
-!- yangoon(~mathiasb@mue-88-130-66-103.dsl.tropolys.de) has joined #tryton04:12
-!- udono(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton04:12
-!- thaneor(~lenovo3@179.26.84.65) has joined #tryton05:12
-!- udono1(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton05:12
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton06:12
-!- udono(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton07:12
-!- thaneor1(~lenovo3@179.26.132.136) has joined #tryton07:12
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:12
-!- xcodinas_(~xcodinas@134.ip-5-196-28.eu) has left #tryton08:12
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton08:12
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:12
-!- zmichal(~michal@chello085216186171.chello.sk) has joined #tryton09:12
-!- smorillo(9f9305ee@gateway/web/cgi-irc/kiwiirc.com/ip.159.147.5.238) has joined #tryton09:12
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:12
-!- scrapper(~scrapper@mail.alpmine.com) has joined #tryton09:12
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:12
-!- rpit(~rpit@h-213.61.178.154.host.de.colt.net) has joined #tryton11:12
-!- scrapper(~scrapper@mail.alpmine.com) has joined #tryton11:12
-!- zmichal(~michal@bband-dyn3.178-40-135.t-com.sk) has joined #tryton12:12
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.12:12
cedkbuxy: is the party language set?12:12
cedkI mean the party invoiced12:12
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)" »12:12
buxycedk: yes, the party language is set to French12:12
cedkbuxy: should check that set_lang is actually been called12:12
cedkbuxy: also use a draft invoice to avoid cache12:12
buxyit's a draft invoice, I know that posted invoices are stored12:12
buxycedk: how can I check that set_lang is called? shall I revert to the previous syntax to compare?12:12
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_lang12:12
cedkbuxy: put a print statement in report.py12:12
cedkbuxy: set_lang has been improved to support both language instance or code12:12
buxycedk: if I use plain "set_lang(invoice.party.lang)" instead of this replace text:p="..." syntax, then it works12:12
buxyI have python-relatorio 0.8.1-1~9stretch+1, do we need a more recent version to support the replace syntax?12:12
-!- mariomop(~quassel@host206.201-253-197.telecom.net.ar) has joined #tryton12:12
buxyso it really looks like that set_lang is not called with the replace syntax12:12
cedkbuxy: is it https://bugs.tryton.org/issue654812:12
pokoliIt is possible to use to print the same string with two diferent languages in same reports?12:12
-!- scrapper(~scrapper@mail.alpmine.com) has joined #tryton12:12
cedkpokoli: you have two switch from one lang to the other12:12
pokolicedk: this maybe a little bit mess because we had the request the print the same string in Catalan and Spanish separated by a /13:12
pokolibut I will see how to we manage it, because I'm not sure if we will endup implementing this request. Thanks for your reply13:12
cedkpokoli: if you know to whom the document is addresed, I do not see the point to make it multilangual.13:12
cedkif it is not addressed to someone in particular, then just make a template bilangual and translate nothing13:12
Timitospokoli: you should treat the complete string of spanish and catalan as one language. we did it that way in one of our projects13:12
cedkTimitos: nice hack :-)13:12
Timitoscedk: in our case it made completely sense that way. invoice goes to english customer. german translations are needed for german customs office13:12
-!- udono1(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton13:12
cedkTimitos: you could just duplicate document for each language13:12
Timitosmaybe. but our solution saves paper :-)13:12
-!- csotelo(~csotelo@2800:200:f400:c6d:93cb:150d:4bbf:365a) has joined #tryton13:12
-!- csotelo(~csotelo@2800:200:f400:c6d:93cb:150d:4bbf:365a) has joined #tryton13:12
buxySo it looks like my problem was that I had the two replaces directives in the same paragraph.14:12
buxythanks cedk for the pointer!14:12
-!- thaneor(~lenovo3@179.26.132.136) has joined #tryton14:12
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton14:12
-!- vmora83(~vmora@109.74.88.137) has joined #tryton15:12
-!- k_valdivia(~k_valdivi@179.7.225.230) has joined #tryton16:12
-!- csotelo(~csotelo@2800:200:f400:c6d:93cb:150d:4bbf:365a) has joined #tryton17:12
-!- vmora83(~vmora@82.64.20.169) has joined #tryton17:12
pokolicedk: Timitos: thanks for the tips! I thought about making the template bilingual and mark it as non translatable17:12
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 Spanish17:12
pokoliso probably the best option is to make it only in Spanish and let the user customize depending on its region17:12
cedkpokoli: that's weird, usually in such case document should be in one of the official languages17:12
pokolicedk: for me it's enought to print it on the party language as it will normally be one oficial language17:12
pokolicedk: but users are used to see it with both languages, so they ask for it.17:12
pokoliStill not sure on which is the best solution17:12
-!- scrapper(~scrapper@mail.alpmine.com) has joined #tryton17:12
-!- thaneor1(~lenovo3@179.26.9.249) has joined #tryton19:12
-!- k_valdivia(~k_valdivi@2800:200:f400:c6d:51d1:b174:b455:20b) has joined #tryton19:12
-!- JanGB(~jan@x2f7f99f.dyn.telefonica.de) has joined #tryton20:12
-!- udono(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton20:12
-!- udono1(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton20:12
-!- udono2(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton20:12
-!- JanGB(~jan@x2f7f99f.dyn.telefonica.de) has joined #tryton20:12
-!- udono(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton20:12
-!- udono1(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton20:12
-!- k_valdivia(~k_valdivi@179.7.225.230) has joined #tryton21:12
-!- JanGB(~jan@x2f7f99f.dyn.telefonica.de) has joined #tryton21:12
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton22:12
-!- JanGB(~jan@x2f7f99f.dyn.telefonica.de) has joined #tryton22:12

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