Skip to content

Commit

Permalink
[16.0] web_notify_upgrade: fr translation
Browse files Browse the repository at this point in the history
  • Loading branch information
bealdav committed Aug 5, 2024
1 parent 45686a2 commit 5bdbc56
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 19 deletions.
4 changes: 4 additions & 0 deletions web_notify_upgrade/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ This module uses web_notify send a notification to every active users whenever a

The notification will ask the user to refresh the page to get the latest changes.


.. figure:: https://raw.githubusercontent.com/OCA/web/16.0/web_notify_upgrade/static/description/notify.png
:alt: Refresh page

**Table of contents**

.. contents::
Expand Down
37 changes: 37 additions & 0 deletions web_notify_upgrade/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_notify_upgrade
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.0.1\n"

#. module: web_notify_upgrade
#: model:ir.model,name:web_notify_upgrade.model_ir_model_data
msgid "Model Data"
msgstr "Model Data"

#. module: web_notify_upgrade
#. odoo-python
#: code:addons/web_notify_upgrade/models/ir_model.py:0
#, python-format
msgid "Reload"
msgstr "Recharger"

#. module: web_notify_upgrade
#. odoo-python
#: code:addons/web_notify_upgrade/models/ir_model.py:0
#, python-format
msgid "Your odoo instance has been upgraded, please reload the web page."
msgstr "Votre instance odoo a été mise à jour, merci de recharger la page web."
32 changes: 19 additions & 13 deletions web_notify_upgrade/i18n/web_notify_upgrade.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
Expand All @@ -14,21 +14,27 @@ msgstr ""
"Plural-Forms: \n"

#. module: web_notify_upgrade
#: model:ir.model.fields,field_description:web_notify_upgrade.field_ir_model_data__display_name
msgid "Display Name"
msgstr ""
#: model:ir.model,name:web_notify_upgrade.model_ir_model_data
msgid "Model Data"
msgstr "Model Data"

#. module: web_notify_upgrade
#: model:ir.model.fields,field_description:web_notify_upgrade.field_ir_model_data__id
msgid "ID"
msgstr ""
#. odoo-python
#: code:addons/web_notify_upgrade/models/ir_model.py:0
#, python-format
msgid "Reload"
msgstr "Recharger"

#. module: web_notify_upgrade
#: model:ir.model.fields,field_description:web_notify_upgrade.field_ir_model_data____last_update
msgid "Last Modified on"
msgstr ""
#. odoo-python
#: code:addons/web_notify_upgrade/models/ir_model.py:0
#, python-format
msgid "Upgrade Notification"
msgstr "Notification de mise à jour"

#. module: web_notify_upgrade
#: model:ir.model,name:web_notify_upgrade.model_ir_model_data
msgid "Model Data"
msgstr ""
#. odoo-python
#: code:addons/web_notify_upgrade/models/ir_model.py:0
#, python-format
msgid "Your odoo instance has been upgraded, please reload the web page."
msgstr "Votre instance odoo a été mise à jour, merci de recharger la page web."
13 changes: 7 additions & 6 deletions web_notify_upgrade/models/ir_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging

from odoo import api, models
from odoo import _, api, models

from odoo.addons.bus.models.bus_presence import AWAY_TIMER, DISCONNECTION_TIMER

Expand Down Expand Up @@ -50,11 +50,12 @@ def _get_active_users_to_notify_of_upgrade(self):
def _get_upgrade_notification_params(self):
"""Return the parameters to pass to the notify_info method."""
return dict(

Check warning on line 52 in web_notify_upgrade/models/ir_model.py

View check run for this annotation

Codecov / codecov/patch

web_notify_upgrade/models/ir_model.py#L52

Added line #L52 was not covered by tests
message="Your odoo instance has been upgraded, "
"please reload the web page.<br />"
message=_(
"Your odoo instance has been upgraded, " "please reload the web page."
)
+ "<br />"
'<button onclick="location.reload(true)" class="btn btn-primary mt-4">'
'<i class="fa fa-refresh"></i> Reload'
"</button>",
title="Upgrade Notification",
'<i class="fa fa-refresh"></i>' + _("Reload") + "</button>",
title=_("Upgrade Notification"),
sticky=True,
)
4 changes: 4 additions & 0 deletions web_notify_upgrade/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
This module uses web_notify send a notification to every active users whenever a module has been installed or upgraded.

The notification will ask the user to refresh the page to get the latest changes.


.. figure:: ../static/description/notify.png
:alt: Refresh page
Binary file removed web_notify_upgrade/static/description/icon.png
Binary file not shown.
3 changes: 3 additions & 0 deletions web_notify_upgrade/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ <h1 class="title">Web Notify Upgrade</h1>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/web/tree/16.0/web_notify_upgrade"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_notify_upgrade"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/web&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module uses web_notify send a notification to every active users whenever a module has been installed or upgraded.</p>
<p>The notification will ask the user to refresh the page to get the latest changes.</p>
<div class="figure">
<img alt="Refresh page" src="https://raw.githubusercontent.com/OCA/web/16.0/web_notify_upgrade/static/description/notify.png" />
</div>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand Down
Binary file added web_notify_upgrade/static/description/notify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5bdbc56

Please sign in to comment.