chat.freenode.net #tryton log beginning Thu Dec 13 00:00:01 CET 2018 | ||
-!- scrapper(~scrapper@mail.alpmine.com) has joined #tryton | 23:05 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:26 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 00:38 | |
-!- Justuni(471ea247@gateway/web/freenode/ip.71.30.162.71) has joined #tryton | 02:33 | |
-!- justuni(justuni@gateway/shell/insomnia247/x-makrhzavwmezugqu) has joined #tryton | 02:40 | |
-!- justuni(justuni@gateway/shell/insomnia247/x-zdmnqyzpqutgzotc) has joined #tryton | 02:46 | |
-!- udono1(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton | 03:01 | |
-!- yangoon(~mathiasb@mue-88-130-66-103.dsl.tropolys.de) has joined #tryton | 03:19 | |
-!- udono(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton | 03:41 | |
-!- thaneor(~lenovo3@179.26.84.65) has joined #tryton | 04:08 | |
-!- udono1(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton | 04:40 | |
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton | 05:50 | |
-!- udono(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton | 06:15 | |
-!- thaneor1(~lenovo3@179.26.132.136) has joined #tryton | 06:22 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 07:20 | |
-!- xcodinas_(~xcodinas@134.ip-5-196-28.eu) has left #tryton | 07:50 | |
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton | 07:51 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 07:55 | |
-!- zmichal(~michal@chello085216186171.chello.sk) has joined #tryton | 08:16 | |
-!- smorillo(9f9305ee@gateway/web/cgi-irc/kiwiirc.com/ip.159.147.5.238) has joined #tryton | 08:21 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:29 | |
-!- scrapper(~scrapper@mail.alpmine.com) has joined #tryton | 08:50 | |
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 09:29 | |
-!- rpit(~rpit@h-213.61.178.154.host.de.colt.net) has joined #tryton | 10:03 | |
-!- scrapper(~scrapper@mail.alpmine.com) has joined #tryton | 10:15 | |
-!- zmichal(~michal@bband-dyn3.178-40-135.t-com.sk) has joined #tryton | 11:02 | |
buxy | I 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 |
---|---|---|
cedk | buxy: is the party language set? | 11:29 |
cedk | I mean the party invoiced | 11:29 |
buxy | I 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 |
buxy | cedk: yes, the party language is set to French | 11:31 |
cedk | buxy: should check that set_lang is actually been called | 11:34 |
cedk | buxy: also use a draft invoice to avoid cache | 11:34 |
buxy | it's a draft invoice, I know that posted invoices are stored | 11:34 |
buxy | cedk: how can I check that set_lang is called? shall I revert to the previous syntax to compare? | 11:35 |
buxy | hum, 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_lang | 11:40 |
cedk | buxy: put a print statement in report.py | 11:40 |
cedk | buxy: set_lang has been improved to support both language instance or code | 11:41 |
buxy | cedk: if I use plain "set_lang(invoice.party.lang)" instead of this replace text:p="..." syntax, then it works | 11:50 |
buxy | I 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 #tryton | 11:52 | |
buxy | so it really looks like that set_lang is not called with the replace syntax | 11:53 |
cedk | buxy: is it https://bugs.tryton.org/issue6548 | 11:54 |
pokoli | It 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 #tryton | 11:58 | |
cedk | pokoli: you have two switch from one lang to the other | 11:59 |
pokoli | cedk: 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 |
pokoli | but I will see how to we manage it, because I'm not sure if we will endup implementing this request. Thanks for your reply | 12:02 |
cedk | pokoli: if you know to whom the document is addresed, I do not see the point to make it multilangual. | 12:03 |
cedk | if it is not addressed to someone in particular, then just make a template bilangual and translate nothing | 12:04 |
Timitos | pokoli: you should treat the complete string of spanish and catalan as one language. we did it that way in one of our projects | 12:05 |
cedk | Timitos: nice hack :-) | 12:10 |
Timitos | cedk: in our case it made completely sense that way. invoice goes to english customer. german translations are needed for german customs office | 12:17 |
-!- udono1(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton | 12:22 | |
cedk | Timitos: you could just duplicate document for each language | 12:24 |
Timitos | maybe. but our solution saves paper :-) | 12:25 |
-!- csotelo(~csotelo@2800:200:f400:c6d:93cb:150d:4bbf:365a) has joined #tryton | 12:54 | |
-!- csotelo(~csotelo@2800:200:f400:c6d:93cb:150d:4bbf:365a) has joined #tryton | 12:59 | |
buxy | So it looks like my problem was that I had the two replaces directives in the same paragraph. | 13:15 |
buxy | thanks cedk for the pointer! | 13:16 |
-!- thaneor(~lenovo3@179.26.132.136) has joined #tryton | 13:39 | |
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton | 13:49 | |
-!- vmora83(~vmora@109.74.88.137) has joined #tryton | 14:22 | |
-!- k_valdivia(~k_valdivi@179.7.225.230) has joined #tryton | 15:44 | |
-!- csotelo(~csotelo@2800:200:f400:c6d:93cb:150d:4bbf:365a) has joined #tryton | 16:32 | |
-!- vmora83(~vmora@82.64.20.169) has joined #tryton | 16:34 | |
pokoli | cedk: Timitos: thanks for the tips! I thought about making the template bilingual and mark it as non translatable | 16:34 |
pokoli | the 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 Spanish | 16:36 |
pokoli | so probably the best option is to make it only in Spanish and let the user customize depending on its region | 16:36 |
cedk | pokoli: that's weird, usually in such case document should be in one of the official languages | 16:38 |
pokoli | cedk: for me it's enought to print it on the party language as it will normally be one oficial language | 16:40 |
pokoli | cedk: but users are used to see it with both languages, so they ask for it. | 16:40 |
pokoli | Still not sure on which is the best solution | 16:41 |
-!- scrapper(~scrapper@mail.alpmine.com) has joined #tryton | 16:53 | |
-!- thaneor1(~lenovo3@179.26.9.249) has joined #tryton | 18:24 | |
-!- k_valdivia(~k_valdivi@2800:200:f400:c6d:51d1:b174:b455:20b) has joined #tryton | 18:43 | |
-!- JanGB(~jan@x2f7f99f.dyn.telefonica.de) has joined #tryton | 19:01 | |
-!- udono(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton | 19:39 | |
-!- udono1(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton | 19:41 | |
-!- udono2(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton | 19:42 | |
-!- JanGB(~jan@x2f7f99f.dyn.telefonica.de) has joined #tryton | 19:42 | |
-!- udono(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton | 19:46 | |
-!- udono1(~udono@138-100-000-128.ip-addr.inexio.net) has joined #tryton | 19:50 | |
-!- k_valdivia(~k_valdivi@179.7.225.230) has joined #tryton | 20:34 | |
-!- JanGB(~jan@x2f7f99f.dyn.telefonica.de) has joined #tryton | 20:41 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 21:01 | |
-!- JanGB(~jan@x2f7f99f.dyn.telefonica.de) has joined #tryton | 21:14 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!