Commit Graph
11 Commits
Author SHA1 Message Date
std-odoo af82dc2a9a [IMP] mail_plugin: never let the company section empty
Purpose
=======
When you do not have IAP credit, if the partner and the company
do not exist in the Odoo database, you have an empty section.

Now, a message tell you that you need to save the partner to
generate the company (so the section is not empty anymore).

Add the translation for this text.

Task-2601837

X-original-commit: 2951b41ba639fbe6e1bec9ef53ca300369ad5a74
Part-of: odoo/odoo#89848
2022-04-27 15:31:48 +02:00
std-odoo 8739c81867 [FIX] mail_plugin: fix missing translations
Purpose
=======
Fix missing translations on the Outlook / Gmail plugin and add them in
the mail plugin module.

Task-2612788

closes odoo/odoo#75599

X-original-commit: 47c9be8970011863e8e7b474665c823e751df085
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-08-30 10:58:57 +00:00
std-odoo 61d9cb8098 [IMP] mail_plugin: add translations for 404 error management
Purpose
=======

Currently the application will display a 404 error message, if the mail
plugin module is not installed or if the user made an error in the URL
of his Odoo database, which is confusing for end users.

So, we show an error message during the authentication process if the
database is not reachable and we should add the translations related to
those changes.

Task-2577531
See odoo/mail-client-extensions/pull/17

closes odoo/odoo#75637

X-original-commit: 3c00fddb99091b96259eed1e45ef9de53c53f795
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-08-26 12:46:55 +00:00
std-odoo 9d13bb4534 [FIX] mail_plugin: fix missing translations
Purpose
=======
Fix missing translations on the Outlook plugin and add them in the
mail plugin module.

Task-2612788

closes odoo/odoo#74399

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-29 12:27:45 +00:00
Stephane Debauche 347111c7b8 [FIX] mail_plugin: improve error management when enriching companies
Purpose
=======

If the partner was removed after the user open the email on the Gmail
side, return a clean error message instead of raising a traceback.

Add translations for the new strings in the plugin.

Links
=====

Task-2567566
Followup of odoo/odoo#73653
See odoo/mail-client-extensions#15

closes odoo/odoo#75076

X-original-commit: e782c85b95aed30dd38bd30c29e57a9acc540a49
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-08-13 13:38:42 +00:00
std-odoo 540f7b8cab [IMP] mail_plugin: shorten the error messages
Purpose
=======
Shorten the error message to make them appear on a single line.

Task-2518668
See odoo/mail-client-extensions/pull/12

closes odoo/odoo#71542

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-27 06:57:28 +00:00
std-odoo 43052586cb [FIX] mail_plugin: fix a translation when the enrichment fail
Bug
===
One error message is not translated.

Task-2518668

closes odoo/odoo#73856

X-original-commit: cfeff76797f2f6bd390e41974f2f8255df81a738
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-16 11:30:03 +00:00
nounoubensebia ba048b0317 [IMP] mail_plugin: add enrich strings to translate
Enrich capability has been improved in 14.3 . This commit adds strings to
translate for plugins in 14.4 + .

Task-2563180
Odoo PR: odoo/odoo#71947
Outlook code: odoo/mail-client-extensions@d122177927

closes odoo/odoo#73687

X-original-commit: a9cc87a57b80b4f962b11de8e3e0b41248384273
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-07-14 10:35:30 +00:00
std-odoo 00f2840f0c [IMP] mail_plugin: add the translation for the attachment related message
Purpose
=======
In 14.3 we added the possibility to upload attachments when logging
an email. In the commit, we add the translation for the corresponding
error message.

Task 2545048
See odoo/odoo/pull/71543
See odoo/mail-client-extensions/pull/11

closes odoo/odoo#72530

X-original-commit: ba747ed81631cca549a380446cd8f05e711bdf76
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-06-22 12:00:24 +00:00
std-odoo d27fb9c952 [IMP] (crm_)mail_plugin: support translations for the Gmail addon
Purpose
=======
This commit allow the users to translate their Gmail Addon.

The language of the addon will be the language the user set on his
preference, on his Odoo database.

The translations will be downloaded from Odoo and stored in the cache,
so translator can use the existing system to translate the addon.

Task 2502261
See odoo/mail-client-extensions/pull/8
See odoo/odoo/pull/69288
See odoo/enterprise/pull/17711

closes odoo/odoo#69288

Related: odoo/enterprise#17711
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-05-31 07:26:31 +00:00
nounoubensebia 24d5c789f1 [IMP] mail_plugin, crm_mail_plugin: add translation support for email plugins
In mail_plugin module, add a method which returns translatable modules,
this method will be overridden in the other modules to add their module names.

Translations are prepared via the _prepare_translations method which uses
the get_translations_for_webclient method, this way we can easily fetch
translations without having to write python code.

We also add xml files in "static/", these files contain terms to be translated,
for each plugin we create a separate xml file so that we can easily update each
plugin separately.

This implementation will allow having translations handled by Odoo, which has
several advantages:
- existing system, nothing to develop
- it will use transifex and the terms will be translated by the community
- forces that mail_client implementations to have the same logic (consistency)
- compared to other solutions which rely on python code to return translations,
  this solution is more robust as it avoids having to type the string to
  translate twice

Task-2480075

closes odoo/odoo#69118

Ent-pr: https://github.com/odoo/enterprise/pull/17626
Plugin-pr: https://github.com/odoo/mail-client-extensions/pull/6
Related: odoo/enterprise#17626
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-05-26 12:51:57 +00:00