[MIG] html_image_url_extractor: Migration to 14.0

[UPD] Update html_image_url_extractor.pot

[UPD] README.rst

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-14.0/server-tools-14.0-html_image_url_extractor
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-html_image_url_extractor/
pull/2569/head
hkapatel 2021-07-01 17:52:30 +05:30 committed by Víctor Martínez
parent 4e54966b89
commit ef4143a170
10 changed files with 99 additions and 14 deletions

View File

@ -14,13 +14,13 @@ Image URLs from HTML field
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
:target: https://github.com/OCA/server-tools/tree/13.0/html_image_url_extractor :target: https://github.com/OCA/server-tools/tree/14.0/html_image_url_extractor
:alt: OCA/server-tools :alt: OCA/server-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-tools-13-0/server-tools-13-0-html_image_url_extractor :target: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-html_image_url_extractor
:alt: Translate me on Weblate :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/149/13.0 :target: https://runbot.odoo-community.org/runbot/149/14.0
:alt: Try me on Runbot :alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
@ -29,7 +29,7 @@ This module includes a method that extracts image URLs from any chunk of HTML,
in appearing order. in appearing order.
It is useful for modules such as `website_blog_excerpt_img It is useful for modules such as `website_blog_excerpt_img
<https://github.com/OCA/website/tree/9.0/website_blog_excerpt_img>`_: blog list shows the first <https://github.com/OCA/website/tree/14.0/website_blog_excerpt_img>`_: blog list shows the first
image included in the post if haven't a defined cover image. image included in the post if haven't a defined cover image.
**Table of contents** **Table of contents**
@ -70,7 +70,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_. Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported. In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20html_image_url_extractor%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. `feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20html_image_url_extractor%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues. Do not contact contributors directly about support or help with technical issues.
@ -95,6 +95,8 @@ Contributors
* Cristina Martin R * Cristina Martin R
* Víctor Martínezz * Víctor Martínezz
* Helly kapatel <helly.kapatel@initos.com>
Maintainers Maintainers
~~~~~~~~~~~ ~~~~~~~~~~~
@ -108,6 +110,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use. promote its widespread use.
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/13.0/html_image_url_extractor>`_ project on GitHub. This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/14.0/html_image_url_extractor>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -5,7 +5,7 @@
{ {
"name": "Image URLs from HTML field", "name": "Image URLs from HTML field",
"summary": "Extract images found in any HTML field", "summary": "Extract images found in any HTML field",
"version": "13.0.1.0.0", "version": "14.0.1.0.0",
"category": "Tools", "category": "Tools",
"website": "https://github.com/OCA/server-tools", "website": "https://github.com/OCA/server-tools",
"author": "Tecnativa, Onestein, Odoo Community Association (OCA)", "author": "Tecnativa, Onestein, Odoo Community Association (OCA)",

View File

@ -18,11 +18,31 @@ msgstr ""
"Content-Transfer-Encoding: \n" "Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter__display_name
msgid "Display Name"
msgstr ""
#. module: html_image_url_extractor #. module: html_image_url_extractor
#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter #: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter
msgid "Fields Converter" msgid "Fields Converter"
msgstr "" msgstr ""
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter__id
msgid "ID"
msgstr ""
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter____last_update
msgid "Last Modified on"
msgstr ""
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter__smart_search
msgid "Smart Search"
msgstr ""
#~ msgid "Created by" #~ msgid "Created by"
#~ msgstr "Creado por" #~ msgstr "Creado por"

View File

@ -19,11 +19,31 @@ msgstr ""
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter__display_name
msgid "Display Name"
msgstr ""
#. module: html_image_url_extractor #. module: html_image_url_extractor
#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter #: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter
msgid "Fields Converter" msgid "Fields Converter"
msgstr "" msgstr ""
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter__id
msgid "ID"
msgstr ""
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter____last_update
msgid "Last Modified on"
msgstr ""
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter__smart_search
msgid "Smart Search"
msgstr ""
#~ msgid "Created by" #~ msgid "Created by"
#~ msgstr "أنشئ بواسطة" #~ msgstr "أنشئ بواسطة"

View File

@ -18,11 +18,31 @@ msgstr ""
"Content-Transfer-Encoding: \n" "Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter__display_name
msgid "Display Name"
msgstr ""
#. module: html_image_url_extractor #. module: html_image_url_extractor
#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter #: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter
msgid "Fields Converter" msgid "Fields Converter"
msgstr "" msgstr ""
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter__id
msgid "ID"
msgstr ""
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter____last_update
msgid "Last Modified on"
msgstr ""
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter__smart_search
msgid "Smart Search"
msgstr ""
#~ msgid "Created by" #~ msgid "Created by"
#~ msgstr "Създадено от" #~ msgstr "Създадено от"

View File

@ -4,7 +4,7 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 13.0\n" "Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -13,7 +13,27 @@ msgstr ""
"Content-Transfer-Encoding: \n" "Content-Transfer-Encoding: \n"
"Plural-Forms: \n" "Plural-Forms: \n"
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter__display_name
msgid "Display Name"
msgstr ""
#. module: html_image_url_extractor #. module: html_image_url_extractor
#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter #: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter
msgid "Fields Converter" msgid "Fields Converter"
msgstr "" msgstr ""
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter__id
msgid "ID"
msgstr ""
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter____last_update
msgid "Last Modified on"
msgstr ""
#. module: html_image_url_extractor
#: model:ir.model.fields,field_description:html_image_url_extractor.field_ir_fields_converter__smart_search
msgid "Smart Search"
msgstr ""

View File

@ -6,3 +6,5 @@
* Vicent Cubells * Vicent Cubells
* Cristina Martin R * Cristina Martin R
* Víctor Martínezz * Víctor Martínezz
* Helly kapatel <helly.kapatel@initos.com>

View File

@ -2,5 +2,5 @@ This module includes a method that extracts image URLs from any chunk of HTML,
in appearing order. in appearing order.
It is useful for modules such as `website_blog_excerpt_img It is useful for modules such as `website_blog_excerpt_img
<https://github.com/OCA/website/tree/9.0/website_blog_excerpt_img>`_: blog list shows the first <https://github.com/OCA/website/tree/14.0/website_blog_excerpt_img>`_: blog list shows the first
image included in the post if haven't a defined cover image. image included in the post if haven't a defined cover image.

View File

@ -367,10 +367,10 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !! !! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !! !! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" 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" 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" href="https://github.com/OCA/server-tools/tree/13.0/html_image_url_extractor"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-tools-13-0/server-tools-13-0-html_image_url_extractor"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/149/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p><a class="reference external" 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" 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" href="https://github.com/OCA/server-tools/tree/14.0/html_image_url_extractor"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-html_image_url_extractor"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/149/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module includes a method that extracts image URLs from any chunk of HTML, <p>This module includes a method that extracts image URLs from any chunk of HTML,
in appearing order.</p> in appearing order.</p>
<p>It is useful for modules such as <a class="reference external" href="https://github.com/OCA/website/tree/9.0/website_blog_excerpt_img">website_blog_excerpt_img</a>: blog list shows the first <p>It is useful for modules such as <a class="reference external" href="https://github.com/OCA/website/tree/14.0/website_blog_excerpt_img">website_blog_excerpt_img</a>: blog list shows the first
image included in the post if havent a defined cover image.</p> image included in the post if havent a defined cover image.</p>
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents"> <div class="contents local topic" id="contents">
@ -415,7 +415,7 @@ def some_method(self):
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>. <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported. In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20html_image_url_extractor%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20html_image_url_extractor%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p> <p>Do not contact contributors directly about support or help with technical issues.</p>
</div> </div>
<div class="section" id="credits"> <div class="section" id="credits">
@ -438,6 +438,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<li>Víctor Martínezz</li> <li>Víctor Martínezz</li>
</ul> </ul>
</li> </li>
<li>Helly kapatel &lt;<a class="reference external" href="mailto:helly.kapatel&#64;initos.com">helly.kapatel&#64;initos.com</a>&gt;</li>
</ul> </ul>
</div> </div>
<div class="section" id="maintainers"> <div class="section" id="maintainers">
@ -447,7 +448,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use.</p> promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/13.0/html_image_url_extractor">OCA/server-tools</a> project on GitHub.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/14.0/html_image_url_extractor">OCA/server-tools</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div> </div>
</div> </div>

View File

@ -8,7 +8,7 @@ from odoo.tools import mute_logger
class ExtractorCase(TransactionCase): class ExtractorCase(TransactionCase):
def setUp(self): def setUp(self):
super(ExtractorCase, self).setUp() super().setUp()
# Shortcut # Shortcut
self.imgs_from_html = self.env["ir.fields.converter"].imgs_from_html self.imgs_from_html = self.env["ir.fields.converter"].imgs_from_html