From e94e321dbd34607bcbc7dc55d217a76987fbfc1d Mon Sep 17 00:00:00 2001 From: MonsieurB Date: Fri, 3 Feb 2017 15:20:33 +0100 Subject: [PATCH] migrate to V10 OCA Transbot updated translations from Transifex --- scheduler_error_mailer/README.rst | 2 +- .../{__openerp__.py => __manifest__.py} | 2 +- .../data/ir_cron_email_tpl.xml | 12 +-- scheduler_error_mailer/i18n/de.po | 83 ++++++++++++++++++ scheduler_error_mailer/i18n/es.po | 84 +++++++++++++++++++ scheduler_error_mailer/i18n/pt_BR.po | 6 +- .../i18n/scheduler_error_mailer.pot | 6 +- scheduler_error_mailer/i18n/sl.po | 6 +- scheduler_error_mailer/i18n/zh_CN.po | 6 +- scheduler_error_mailer/models/ir_cron.py | 4 +- 10 files changed, 186 insertions(+), 25 deletions(-) rename scheduler_error_mailer/{__openerp__.py => __manifest__.py} (95%) create mode 100644 scheduler_error_mailer/i18n/de.po create mode 100644 scheduler_error_mailer/i18n/es.po diff --git a/scheduler_error_mailer/README.rst b/scheduler_error_mailer/README.rst index 269dec34c..9ba801de4 100644 --- a/scheduler_error_mailer/README.rst +++ b/scheduler_error_mailer/README.rst @@ -24,7 +24,7 @@ To use this module, you need to: .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/149/9.0 + :target: https://runbot.odoo-community.org/runbot/149/10.0 Bug Tracker =========== diff --git a/scheduler_error_mailer/__openerp__.py b/scheduler_error_mailer/__manifest__.py similarity index 95% rename from scheduler_error_mailer/__openerp__.py rename to scheduler_error_mailer/__manifest__.py index cee08d1c7..0da065b2b 100644 --- a/scheduler_error_mailer/__openerp__.py +++ b/scheduler_error_mailer/__manifest__.py @@ -5,7 +5,7 @@ { 'name': 'Scheduler Error Mailer', - 'version': '9.0.1.0.0', + 'version': '10.0.1.0.0', 'category': 'Extra Tools', 'license': 'AGPL-3', 'author': "Akretion,Sodexis,Odoo Community Association (OCA)", diff --git a/scheduler_error_mailer/data/ir_cron_email_tpl.xml b/scheduler_error_mailer/data/ir_cron_email_tpl.xml index b8e6a2598..4e760765a 100644 --- a/scheduler_error_mailer/data/ir_cron_email_tpl.xml +++ b/scheduler_error_mailer/data/ir_cron_email_tpl.xml @@ -1,10 +1,4 @@ - @@ -21,13 +15,13 @@ -

OpenERP tried to run the scheduler ${object.name or ''} in the database ${ctx.get('dbname')} but it failed. Here is the error message :

+

Odoo tried to run the scheduler ${object.name or ''} in the database ${ctx.get('dbname')} but it failed. Here is the error message :

${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'} -

You may check the logs of the OpenERP server to get more information about this failure.

+

You may check the logs of the Odoo server to get more information about this failure.

Properties of the scheduler ${object.name or ''} :

    @@ -42,7 +36,7 @@ ${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get

    --
    -Automatic e-mail sent by OpenERP. Do not reply.
    +Automatic e-mail sent by Odoo. Do not reply.
    Database : ${ctx.get('dbname')}

    diff --git a/scheduler_error_mailer/i18n/de.po b/scheduler_error_mailer/i18n/de.po new file mode 100644 index 000000000..04a086156 --- /dev/null +++ b/scheduler_error_mailer/i18n/de.po @@ -0,0 +1,83 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * scheduler_error_mailer +# +# Translators: +# Niki Waibel , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-08 03:37+0000\n" +"PO-Revision-Date: 2017-02-08 03:37+0000\n" +"Last-Translator: Niki Waibel , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: scheduler_error_mailer +#: model:mail.template,body_html:scheduler_error_mailer.scheduler_error_mailer +msgid "" +"\n" +" \n" +"
    \n" +"\n" +"

    Odoo tried to run the scheduler ${object.name or ''} in the database ${ctx.get('dbname')} but it failed. Here is the error message :

    \n" +"\n" +"\n" +"${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}\n" +"\n" +"\n" +"

    You may check the logs of the Odoo server to get more information about this failure.

    \n" +"\n" +"

    Properties of the scheduler ${object.name or ''} :

    \n" +"
      \n" +"
    • Model : ${object.model or ''}
    • \n" +"
    • Method : ${object.function or ''}
    • \n" +"
    • Arguments : ${object.args or ''}
    • \n" +"
    • Interval : ${object.interval_number or '0'} ${object.interval_type or ''}
    • \n" +"
    • Number of calls : ${object.numbercall or '0'}
    • \n" +"
    • Repeat missed : ${object.doall}
    • \n" +"
    • User : ${object.user_id.name or ''}
    • \n" +"
    \n" +"\n" +"

    \n" +"--
    \n" +"Automatic e-mail sent by Odoo. Do not reply.
    \n" +"Database : ${ctx.get('dbname')}\n" +"

    \n" +"
    \n" +" \n" +" " +msgstr "" + +#. module: scheduler_error_mailer +#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_email_template_id +msgid "Error E-mail Template" +msgstr "Fehler e-Mail Vorlage" + +#. module: scheduler_error_mailer +#: model:ir.model.fields,help:scheduler_error_mailer.field_ir_cron_email_template_id +msgid "Select the email template that will be sent when this scheduler fails." +msgstr "" +"Wähle die e-Mail Vorlage welche bei einem Fehler dieses Schedulers gesendet " +"wird." + +#. module: scheduler_error_mailer +#: code:addons/scheduler_error_mailer/models/ir_cron.py:55 +#, python-format +msgid "Task failure with UID = %d." +msgstr "Task Fehler von UID = %d." + +#. module: scheduler_error_mailer +#: model:mail.template,subject:scheduler_error_mailer.scheduler_error_mailer +msgid "[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FAILED" +msgstr "[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FEHLER" + +#. module: scheduler_error_mailer +#: model:ir.model,name:scheduler_error_mailer.model_ir_cron +msgid "ir.cron" +msgstr "ir.cron" diff --git a/scheduler_error_mailer/i18n/es.po b/scheduler_error_mailer/i18n/es.po new file mode 100644 index 000000000..bc390a1be --- /dev/null +++ b/scheduler_error_mailer/i18n/es.po @@ -0,0 +1,84 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * scheduler_error_mailer +# +# Translators: +# OCA Transbot , 2017 +# Fernando Lara , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-22 00:55+0000\n" +"PO-Revision-Date: 2017-02-22 00:55+0000\n" +"Last-Translator: Fernando Lara , 2017\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: scheduler_error_mailer +#: model:mail.template,body_html:scheduler_error_mailer.scheduler_error_mailer +msgid "" +"\n" +" \n" +"
    \n" +"\n" +"

    Odoo tried to run the scheduler ${object.name or ''} in the database ${ctx.get('dbname')} but it failed. Here is the error message :

    \n" +"\n" +"\n" +"${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}\n" +"\n" +"\n" +"

    You may check the logs of the Odoo server to get more information about this failure.

    \n" +"\n" +"

    Properties of the scheduler ${object.name or ''} :

    \n" +"
      \n" +"
    • Model : ${object.model or ''}
    • \n" +"
    • Method : ${object.function or ''}
    • \n" +"
    • Arguments : ${object.args or ''}
    • \n" +"
    • Interval : ${object.interval_number or '0'} ${object.interval_type or ''}
    • \n" +"
    • Number of calls : ${object.numbercall or '0'}
    • \n" +"
    • Repeat missed : ${object.doall}
    • \n" +"
    • User : ${object.user_id.name or ''}
    • \n" +"
    \n" +"\n" +"

    \n" +"--
    \n" +"Automatic e-mail sent by Odoo. Do not reply.
    \n" +"Database : ${ctx.get('dbname')}\n" +"

    \n" +"
    \n" +" \n" +" " +msgstr "" + +#. module: scheduler_error_mailer +#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_email_template_id +msgid "Error E-mail Template" +msgstr "Plantilla de correo electrónico de error" + +#. module: scheduler_error_mailer +#: model:ir.model.fields,help:scheduler_error_mailer.field_ir_cron_email_template_id +msgid "Select the email template that will be sent when this scheduler fails." +msgstr "" +"Seleccione la plantilla de correo electrónico que se enviará cuando falla " +"este planificador." + +#. module: scheduler_error_mailer +#: code:addons/scheduler_error_mailer/models/ir_cron.py:55 +#, python-format +msgid "Task failure with UID = %d." +msgstr "Error de Tarea con UID = %d." + +#. module: scheduler_error_mailer +#: model:mail.template,subject:scheduler_error_mailer.scheduler_error_mailer +msgid "[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FAILED" +msgstr "" + +#. module: scheduler_error_mailer +#: model:ir.model,name:scheduler_error_mailer.model_ir_cron +msgid "ir.cron" +msgstr "ir.cron" diff --git a/scheduler_error_mailer/i18n/pt_BR.po b/scheduler_error_mailer/i18n/pt_BR.po index beacbdd1c..231579b1e 100644 --- a/scheduler_error_mailer/i18n/pt_BR.po +++ b/scheduler_error_mailer/i18n/pt_BR.po @@ -25,13 +25,13 @@ msgid "" " \n" "
    \n" "\n" -"

    OpenERP tried to run the scheduler ${object.name or ''} in the database ${ctx.get('dbname')} but it failed. Here is the error message :

    \n" +"

    Odoo tried to run the scheduler ${object.name or ''} in the database ${ctx.get('dbname')} but it failed. Here is the error message :

    \n" "\n" "\n" "${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}\n" "\n" "\n" -"

    You may check the logs of the OpenERP server to get more information about this failure.

    \n" +"

    You may check the logs of the Odoo server to get more information about this failure.

    \n" "\n" "

    Properties of the scheduler ${object.name or ''} :

    \n" "
      \n" @@ -46,7 +46,7 @@ msgid "" "\n" "

      \n" "--
      \n" -"Automatic e-mail sent by OpenERP. Do not reply.
      \n" +"Automatic e-mail sent by Odoo. Do not reply.
      \n" "Database : ${ctx.get('dbname')}\n" "

      \n" "
    \n" diff --git a/scheduler_error_mailer/i18n/scheduler_error_mailer.pot b/scheduler_error_mailer/i18n/scheduler_error_mailer.pot index 95fe5ca84..0b55c781e 100644 --- a/scheduler_error_mailer/i18n/scheduler_error_mailer.pot +++ b/scheduler_error_mailer/i18n/scheduler_error_mailer.pot @@ -20,13 +20,13 @@ msgstr "" msgid "\n" "
    \n" "\n" -"

    OpenERP tried to run the scheduler ${object.name or ''} in the database ${ctx.get('dbname')} but it failed. Here is the error message :

    \n" +"

    Odoo tried to run the scheduler ${object.name or ''} in the database ${ctx.get('dbname')} but it failed. Here is the error message :

    \n" "\n" "\n" "${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}\n" "\n" "\n" -"

    You may check the logs of the OpenERP server to get more information about this failure.

    \n" +"

    You may check the logs of the Odoo server to get more information about this failure.

    \n" "\n" "

    Properties of the scheduler ${object.name or ''} :

    \n" "
      \n" @@ -41,7 +41,7 @@ msgid "\n" "\n" "

      \n" "--
      \n" -"Automatic e-mail sent by OpenERP. Do not reply.
      \n" +"Automatic e-mail sent by Odoo. Do not reply.
      \n" "Database : ${ctx.get('dbname')}\n" "

      \n" "
    \n" diff --git a/scheduler_error_mailer/i18n/sl.po b/scheduler_error_mailer/i18n/sl.po index 13ac3181b..3f6d1f5a0 100644 --- a/scheduler_error_mailer/i18n/sl.po +++ b/scheduler_error_mailer/i18n/sl.po @@ -25,13 +25,13 @@ msgid "" " \n" "
    \n" "\n" -"

    OpenERP tried to run the scheduler ${object.name or ''} in the database ${ctx.get('dbname')} but it failed. Here is the error message :

    \n" +"

    Odoo tried to run the scheduler ${object.name or ''} in the database ${ctx.get('dbname')} but it failed. Here is the error message :

    \n" "\n" "\n" "${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}\n" "\n" "\n" -"

    You may check the logs of the OpenERP server to get more information about this failure.

    \n" +"

    You may check the logs of the Odoo server to get more information about this failure.

    \n" "\n" "

    Properties of the scheduler ${object.name or ''} :

    \n" "
      \n" @@ -46,7 +46,7 @@ msgid "" "\n" "

      \n" "--
      \n" -"Automatic e-mail sent by OpenERP. Do not reply.
      \n" +"Automatic e-mail sent by Odoo. Do not reply.
      \n" "Database : ${ctx.get('dbname')}\n" "

      \n" "
    \n" diff --git a/scheduler_error_mailer/i18n/zh_CN.po b/scheduler_error_mailer/i18n/zh_CN.po index f312e6e0c..39488e991 100644 --- a/scheduler_error_mailer/i18n/zh_CN.po +++ b/scheduler_error_mailer/i18n/zh_CN.po @@ -25,13 +25,13 @@ msgid "" " \n" "
    \n" "\n" -"

    OpenERP tried to run the scheduler ${object.name or ''} in the database ${ctx.get('dbname')} but it failed. Here is the error message :

    \n" +"

    Odoo tried to run the scheduler ${object.name or ''} in the database ${ctx.get('dbname')} but it failed. Here is the error message :

    \n" "\n" "\n" "${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}\n" "\n" "\n" -"

    You may check the logs of the OpenERP server to get more information about this failure.

    \n" +"

    You may check the logs of the Odoo server to get more information about this failure.

    \n" "\n" "

    Properties of the scheduler ${object.name or ''} :

    \n" "
      \n" @@ -46,7 +46,7 @@ msgid "" "\n" "

      \n" "--
      \n" -"Automatic e-mail sent by OpenERP. Do not reply.
      \n" +"Automatic e-mail sent by Odoo. Do not reply.
      \n" "Database : ${ctx.get('dbname')}\n" "

      \n" "
    \n" diff --git a/scheduler_error_mailer/models/ir_cron.py b/scheduler_error_mailer/models/ir_cron.py index a6134be15..efb2a4bed 100644 --- a/scheduler_error_mailer/models/ir_cron.py +++ b/scheduler_error_mailer/models/ir_cron.py @@ -3,8 +3,8 @@ # © 2016 Sodexis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp import models, fields, api, _ -from openerp.exceptions import UserError +from odoo import models, fields, api, _ +from odoo.exceptions import UserError import logging