chat.freenode.net #tryton log beginning Mon 29 Jun 2020 12:00:01 AM CEST | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:19 | |
-!- rajivr(uid269651@gateway/web/irccloud.com/x-xjifyrlzelptfdvv) has joined #tryton | 02:26 | |
-!- cryptic(~cryptic@142.196.139.17) has joined #tryton | 04:41 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 04:50 | |
-!- thaneor1(~ldlc6@r186-54-241-121.dialup.adsl.anteldata.net.uy) has joined #tryton | 05:02 | |
-!- Timitos(~kpreisler@2001:a61:5ad:c901:762b:62ff:fe84:ed7e) has joined #tryton | 05:26 | |
-!- rpit(~rpit@p200300c88f48a0005d783dcf5eebabdf.dip0.t-ipconnect.de) has joined #tryton | 05:31 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 06:48 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:58 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 08:44 | |
-!- mariomop(~quassel@190.193.24.15) has joined #tryton | 10:50 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 12:01 | |
cedk | I'm implementing sending email from client (https://discuss.tryton.org/t/set-up-emails-and-easy-email-delivery/2116/6) | 14:07 |
---|---|---|
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/matrix.org/x-raxbusrfancnesyl) has joined #tryton | 14:08 | |
cedk | I'm creating email templates which prefill recipients, subject and body | 14:08 |
cedk | I'm wondering which language should I use for the body? | 14:08 |
cedk | the language of the recipients or the language of the user? | 14:09 |
cedk | also recipients may have different languages | 14:09 |
semarie | cedk: if translation in "recipients language" exists then use it, else fallback to "user language" | 14:16 |
semarie | but I dunno if it is something easy to do or not... | 14:16 |
cedk | but what if the user does not speak the recipients language? | 14:17 |
semarie | if it is a template, it means an administrator configured it. so I assume the user could or trust the administrator, or ask him to confirm ? | 14:20 |
semarie | but I agree it isn't ideal | 14:20 |
semarie | and it assumes that the template comes from configuration (and not from tryton) | 14:21 |
semarie | ACTION is reading the discuss link to have more context | 14:22 |
cedk | as it is a prefill, I expect user to edit it | 14:23 |
pokoli | cedk: it is doable to have the language as parameter of the email dialog? | 14:24 |
pokoli | so the system prefills it with the recipient language but the user can change it and the server prefills it with the user language | 14:25 |
cedk | pokoli: adding options is always the easy solution | 14:28 |
cedk | but in this case I do not think user will care about changing that and they will just re-type the content | 14:28 |
cedk | by the way, the current report email option was using the user language | 14:29 |
pokoli | cedk: then I think we will use the receipent language and let the uder re-type if he does not understand | 14:30 |
cedk | pokoli: and how do you determine the recipients language? | 14:31 |
pokoli | cedk: If the recipient is related to a party you will know it | 14:33 |
pokoli | cedk: otherwise we could set it on the template, so the user can pick the right template depending on the expected language | 14:33 |
nicoe | If the user sends something that he does not understand why bother showing him the information? | 14:39 |
-!- lenucksi[m](lenucksieu@gateway/shell/matrix.org/x-xzyimuntyqbtbnxh) has joined #tryton | 14:40 | |
pokoli | nicoe: could be the user insterested on adding some attachments only? | 14:40 |
nicoe | maybe indeed | 14:43 |
cedk | email with attachment only and no body nor subject have few chances to reach the INBOX | 14:45 |
pokoli | cedk: but user may keep the original content in case he does not understand | 14:49 |
cedk | I find weird that user send message that he does not understand | 14:51 |
-!- udono(~udono@216-059-210-188.ip-addr.inexio.net) has joined #tryton | 14:55 | |
nicoe | +1 | 14:55 |
pokoli | so you prefer that the recipient receives a text that he does not understand? :$ | 15:02 |
cedk | we do not know which languages he understand, we only know the preferred language to receive documents | 15:20 |
cedk | so I think we can guess that user who send an email to recipients will know that the language he uses will be understood | 15:20 |
Timitos | i am with pokoli. i would prefer to provide a language related to the recipient | 15:25 |
cedk | OK but how do you choose this language? There are many recipients. | 15:26 |
cedk | also user may choose a template and then change the recipients list. what should happen then? | 15:27 |
Timitos | when the dialog opens and a default tax is available it should use a context related language. any changes that are required after this action are up the user | 15:28 |
Timitos | s/default tax/default language :-D | 15:34 |
Timitos | no. | 15:34 |
Timitos | s/default tax/default text | 15:34 |
cedk | I see many drawbacks when trying to be smarter by guessing recipients language | 16:04 |
cedk | when I see coherence in using the user and UI language by default | 16:05 |
Timitos | it is the way the reports work. they use the language of the context related party. why should it be different for the body of the email? | 16:07 |
cedk | reports do not always work like that, it is inside the report that we choose to change the user language by something else | 16:09 |
cedk | also emails are communication that implies possible exchange when reports have not replies | 16:10 |
Timitos | ok. but i think this way is the most common case so for the body should be such an option too | 16:10 |
cedk | I do not understand | 16:11 |
Timitos | using the language of the context related party is for me the common case on a report and i think it should be the same for the email body | 16:11 |
cedk | so for you, it is perfectly normal that a user is sending an email in a language he does not speak and then receive answers in this unknown language later? | 16:13 |
Timitos | i think it is a matter of configuration to prevent that scenario and if this scenario happens then it may be on purpose | 16:14 |
cedk | what configuration are you talking about? | 16:16 |
pokoli | cedk: Normally users do not send emails in a language they do not speak and parties do not receive emails on languages that they do not speak | 16:17 |
cedk | pokoli: I receive frequently emails from language I do not speak | 16:17 |
pokoli | cedk: For example, I do not speak italian, so when sending documents to Italian parties I will write them in English | 16:17 |
cedk | pokoli: so you agree to use the user language | 16:18 |
pokoli | cedk: no, because my language is Catalan | 16:18 |
pokoli | cedk: normally in this case I will set the party email to English because despite they speak Italian, it's the common language that we use for comunication | 16:19 |
cedk | I will use the language context as long as I do not have a proposal for a better behavior | 16:20 |
pokoli | cedk: This prevents the user to know which is the expected language for the recipient | 16:23 |
pokoli | also, using the party language it will ensure the same language for notification_emails and client emails | 16:25 |
pokoli | ACTION bbl | 16:25 |
cedk | notification is manageable because we put a version of the content for each language of the recipient*s* but here it is a single text that user has to fill | 16:42 |
-!- thaneor(~ldlc6@179.26.32.62) has joined #tryton | 17:04 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 18:03 | |
-!- ioanp(~ioanp@78-69-28-182-no206.tbcn.telia.com) has joined #tryton | 18:51 | |
-!- lucascastro(~lucascast@177-185-139-41.isotelco.net.br) has joined #tryton | 21:17 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!