diff --git a/html_image_url_extractor/README.rst b/html_image_url_extractor/README.rst new file mode 100644 index 00000000000..6d1c08e9aea --- /dev/null +++ b/html_image_url_extractor/README.rst @@ -0,0 +1,122 @@ +========================== +Image URLs from HTML field +========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:4d0bc4c7368afafaf3fbf96096c81a159def1874506d9dafd0075bc2ea029858 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github + :target: https://github.com/OCA/server-tools/tree/18.0/html_image_url_extractor + :alt: OCA/server-tools +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-html_image_url_extractor + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module includes a method that extracts image URLs from any chunk of +HTML, in appearing order. + +It is useful for modules such as +`website_blog_excerpt_img `__: +blog list shows the first image included in the post if haven't a +defined cover image. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +This module just adds a technical utility, but nothing for the end user. + +If you are a developer and need this utility for your module, see these +examples and read the docs inside the code. + +Python example: + +:: + + @api.multi + def some_method(self): + # Get images from an HTML field + imgs = self.env["ir.fields.converter"].imgs_from_html(self.html_field) + for url in imgs: + # Do stuff with those URLs + pass + +QWeb example: + +:: + + + + + + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Tecnativa +* Onestein + +Contributors +------------ + +- Dennis Sluijk +- `Tecnativa `__: + + - Jairo Llopis + - Vicent Cubells + - Cristina Martin R + - Víctor Martínez + +- Helly kapatel + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/server-tools `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/html_image_url_extractor/__init__.py b/html_image_url_extractor/__init__.py new file mode 100644 index 00000000000..31660d6a965 --- /dev/null +++ b/html_image_url_extractor/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import models diff --git a/html_image_url_extractor/__manifest__.py b/html_image_url_extractor/__manifest__.py new file mode 100644 index 00000000000..df8eec44e13 --- /dev/null +++ b/html_image_url_extractor/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2016-2017 Jairo Llopis +# Copyright 2016 Tecnativa - Vicent Cubells +# Copyright 2016 Tecnativa - Cristina Martin R. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +{ + "name": "Image URLs from HTML field", + "summary": "Extract images found in any HTML field", + "version": "18.0.1.0.0", + "category": "Tools", + "website": "https://github.com/OCA/server-tools", + "author": "Tecnativa, Onestein, Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": ["base"], +} diff --git a/html_image_url_extractor/i18n/am.po b/html_image_url_extractor/i18n/am.po new file mode 100644 index 00000000000..4572e1a5787 --- /dev/null +++ b/html_image_url_extractor/i18n/am.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n" +"Language: am\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/ar.po b/html_image_url_extractor/i18n/ar.po new file mode 100644 index 00000000000..4313a5a8d77 --- /dev/null +++ b/html_image_url_extractor/i18n/ar.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" +"Language: ar\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"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" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/bg.po b/html_image_url_extractor/i18n/bg.po new file mode 100644 index 00000000000..19bebe3afb6 --- /dev/null +++ b/html_image_url_extractor/i18n/bg.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/bs.po b/html_image_url_extractor/i18n/bs.po new file mode 100644 index 00000000000..dc4bdcef986 --- /dev/null +++ b/html_image_url_extractor/i18n/bs.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n" +"Language: bs\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/ca.po b/html_image_url_extractor/i18n/ca.po new file mode 100644 index 00000000000..aadd79a5ec4 --- /dev/null +++ b/html_image_url_extractor/i18n/ca.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-07-21 02:43+0000\n" +"PO-Revision-Date: 2017-07-21 02:43+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +#, fuzzy +msgid "Fields Converter" +msgstr "ir.fields.converter" diff --git a/html_image_url_extractor/i18n/cs.po b/html_image_url_extractor/i18n/cs.po new file mode 100644 index 00000000000..b0dbb3d4f7d --- /dev/null +++ b/html_image_url_extractor/i18n/cs.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Czech (https://www.transifex.com/oca/teams/23907/cs/)\n" +"Language: cs\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/cs_CZ.po b/html_image_url_extractor/i18n/cs_CZ.po new file mode 100644 index 00000000000..78e0b518fcd --- /dev/null +++ b/html_image_url_extractor/i18n/cs_CZ.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# Lukáš Spurný , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-03 10:08+0000\n" +"PO-Revision-Date: 2018-03-03 10:08+0000\n" +"Last-Translator: Lukáš Spurný , 2018\n" +"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/" +"teams/23907/cs_CZ/)\n" +"Language: cs_CZ\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +#, fuzzy +msgid "Fields Converter" +msgstr "ir.fields.converter" diff --git a/html_image_url_extractor/i18n/da.po b/html_image_url_extractor/i18n/da.po new file mode 100644 index 00000000000..ef24dd91402 --- /dev/null +++ b/html_image_url_extractor/i18n/da.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Danish (https://www.transifex.com/oca/teams/23907/da/)\n" +"Language: da\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/de.po b/html_image_url_extractor/i18n/de.po new file mode 100644 index 00000000000..0bdd0a4ec8a --- /dev/null +++ b/html_image_url_extractor/i18n/de.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-07-21 02:43+0000\n" +"PO-Revision-Date: 2017-07-21 02:43+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +#, fuzzy +msgid "Fields Converter" +msgstr "ir.fields.converter" diff --git a/html_image_url_extractor/i18n/el_GR.po b/html_image_url_extractor/i18n/el_GR.po new file mode 100644 index 00000000000..98b26405ceb --- /dev/null +++ b/html_image_url_extractor/i18n/el_GR.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/" +"el_GR/)\n" +"Language: el_GR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/en_GB.po b/html_image_url_extractor/i18n/en_GB.po new file mode 100644 index 00000000000..4027b3ff24d --- /dev/null +++ b/html_image_url_extractor/i18n/en_GB.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: English (United Kingdom) (https://www.transifex.com/oca/" +"teams/23907/en_GB/)\n" +"Language: en_GB\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/es.po b/html_image_url_extractor/i18n/es.po new file mode 100644 index 00000000000..5b71449a78c --- /dev/null +++ b/html_image_url_extractor/i18n/es.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-07-21 02:43+0000\n" +"PO-Revision-Date: 2021-03-19 17:46+0000\n" +"Last-Translator: Ana Suárez \n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "Convertidor de Campos" diff --git a/html_image_url_extractor/i18n/es_AR.po b/html_image_url_extractor/i18n/es_AR.po new file mode 100644 index 00000000000..68af1bdf231 --- /dev/null +++ b/html_image_url_extractor/i18n/es_AR.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2022-03-13 21:17+0000\n" +"Last-Translator: Ignacio Buioli \n" +"Language-Team: Spanish (Argentina) (https://www.transifex.com/oca/" +"teams/23907/es_AR/)\n" +"Language: es_AR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "Convertidor de Campos" diff --git a/html_image_url_extractor/i18n/es_CL.po b/html_image_url_extractor/i18n/es_CL.po new file mode 100644 index 00000000000..9cb3fea56d2 --- /dev/null +++ b/html_image_url_extractor/i18n/es_CL.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Spanish (Chile) (https://www.transifex.com/oca/teams/23907/" +"es_CL/)\n" +"Language: es_CL\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/es_CO.po b/html_image_url_extractor/i18n/es_CO.po new file mode 100644 index 00000000000..2985d395685 --- /dev/null +++ b/html_image_url_extractor/i18n/es_CO.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Spanish (Colombia) (https://www.transifex.com/oca/teams/23907/" +"es_CO/)\n" +"Language: es_CO\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/es_CR.po b/html_image_url_extractor/i18n/es_CR.po new file mode 100644 index 00000000000..a66a92ee579 --- /dev/null +++ b/html_image_url_extractor/i18n/es_CR.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Spanish (Costa Rica) (https://www.transifex.com/oca/" +"teams/23907/es_CR/)\n" +"Language: es_CR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/es_DO.po b/html_image_url_extractor/i18n/es_DO.po new file mode 100644 index 00000000000..afd6f540d10 --- /dev/null +++ b/html_image_url_extractor/i18n/es_DO.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Spanish (Dominican Republic) (https://www.transifex.com/oca/" +"teams/23907/es_DO/)\n" +"Language: es_DO\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/es_EC.po b/html_image_url_extractor/i18n/es_EC.po new file mode 100644 index 00000000000..fde70b0c3e2 --- /dev/null +++ b/html_image_url_extractor/i18n/es_EC.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Spanish (Ecuador) (https://www.transifex.com/oca/teams/23907/" +"es_EC/)\n" +"Language: es_EC\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/es_ES.po b/html_image_url_extractor/i18n/es_ES.po new file mode 100644 index 00000000000..b8d87e3b08e --- /dev/null +++ b/html_image_url_extractor/i18n/es_ES.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-01 02:10+0000\n" +"PO-Revision-Date: 2017-12-01 02:10+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/" +"es_ES/)\n" +"Language: es_ES\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +#, fuzzy +msgid "Fields Converter" +msgstr "ir.documentos.conversor" diff --git a/html_image_url_extractor/i18n/es_MX.po b/html_image_url_extractor/i18n/es_MX.po new file mode 100644 index 00000000000..00decf7df95 --- /dev/null +++ b/html_image_url_extractor/i18n/es_MX.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/" +"es_MX/)\n" +"Language: es_MX\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/es_PE.po b/html_image_url_extractor/i18n/es_PE.po new file mode 100644 index 00000000000..240aca46ec3 --- /dev/null +++ b/html_image_url_extractor/i18n/es_PE.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Spanish (Peru) (https://www.transifex.com/oca/teams/23907/" +"es_PE/)\n" +"Language: es_PE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/es_PY.po b/html_image_url_extractor/i18n/es_PY.po new file mode 100644 index 00000000000..83cebb68cd4 --- /dev/null +++ b/html_image_url_extractor/i18n/es_PY.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Spanish (Paraguay) (https://www.transifex.com/oca/teams/23907/" +"es_PY/)\n" +"Language: es_PY\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/es_VE.po b/html_image_url_extractor/i18n/es_VE.po new file mode 100644 index 00000000000..1356ab18a04 --- /dev/null +++ b/html_image_url_extractor/i18n/es_VE.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Spanish (Venezuela) (https://www.transifex.com/oca/" +"teams/23907/es_VE/)\n" +"Language: es_VE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/et.po b/html_image_url_extractor/i18n/et.po new file mode 100644 index 00000000000..c4849325881 --- /dev/null +++ b/html_image_url_extractor/i18n/et.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Estonian (https://www.transifex.com/oca/teams/23907/et/)\n" +"Language: et\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/eu.po b/html_image_url_extractor/i18n/eu.po new file mode 100644 index 00000000000..17b6a1ca7ea --- /dev/null +++ b/html_image_url_extractor/i18n/eu.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Basque (https://www.transifex.com/oca/teams/23907/eu/)\n" +"Language: eu\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/fa.po b/html_image_url_extractor/i18n/fa.po new file mode 100644 index 00000000000..02962214dc2 --- /dev/null +++ b/html_image_url_extractor/i18n/fa.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Persian (https://www.transifex.com/oca/teams/23907/fa/)\n" +"Language: fa\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/fi.po b/html_image_url_extractor/i18n/fi.po new file mode 100644 index 00000000000..87c66e6a038 --- /dev/null +++ b/html_image_url_extractor/i18n/fi.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"Language: fi\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/fr.po b/html_image_url_extractor/i18n/fr.po new file mode 100644 index 00000000000..1bd4d756289 --- /dev/null +++ b/html_image_url_extractor/i18n/fr.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/fr_CA.po b/html_image_url_extractor/i18n/fr_CA.po new file mode 100644 index 00000000000..a129480b78b --- /dev/null +++ b/html_image_url_extractor/i18n/fr_CA.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: French (Canada) (https://www.transifex.com/oca/teams/23907/" +"fr_CA/)\n" +"Language: fr_CA\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/fr_CH.po b/html_image_url_extractor/i18n/fr_CH.po new file mode 100644 index 00000000000..74bb141d933 --- /dev/null +++ b/html_image_url_extractor/i18n/fr_CH.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: French (Switzerland) (https://www.transifex.com/oca/" +"teams/23907/fr_CH/)\n" +"Language: fr_CH\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/gl.po b/html_image_url_extractor/i18n/gl.po new file mode 100644 index 00000000000..88a76d83ca6 --- /dev/null +++ b/html_image_url_extractor/i18n/gl.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"Language: gl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/he.po b/html_image_url_extractor/i18n/he.po new file mode 100644 index 00000000000..7dc8b725544 --- /dev/null +++ b/html_image_url_extractor/i18n/he.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Hebrew (https://www.transifex.com/oca/teams/23907/he/)\n" +"Language: he\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/hr.po b/html_image_url_extractor/i18n/hr.po new file mode 100644 index 00000000000..ff7b813138c --- /dev/null +++ b/html_image_url_extractor/i18n/hr.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/hr_HR.po b/html_image_url_extractor/i18n/hr_HR.po new file mode 100644 index 00000000000..42c3a7ce909 --- /dev/null +++ b/html_image_url_extractor/i18n/hr_HR.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/" +"hr_HR/)\n" +"Language: hr_HR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/html_image_url_extractor.pot b/html_image_url_extractor/i18n/html_image_url_extractor.pot new file mode 100644 index 00000000000..494d9669240 --- /dev/null +++ b/html_image_url_extractor/i18n/html_image_url_extractor.pot @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +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 "" diff --git a/html_image_url_extractor/i18n/hu.po b/html_image_url_extractor/i18n/hu.po new file mode 100644 index 00000000000..93248a9e4f5 --- /dev/null +++ b/html_image_url_extractor/i18n/hu.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Hungarian (https://www.transifex.com/oca/teams/23907/hu/)\n" +"Language: hu\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/id.po b/html_image_url_extractor/i18n/id.po new file mode 100644 index 00000000000..70759346e5e --- /dev/null +++ b/html_image_url_extractor/i18n/id.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Indonesian (https://www.transifex.com/oca/teams/23907/id/)\n" +"Language: id\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/it.po b/html_image_url_extractor/i18n/it.po new file mode 100644 index 00000000000..313daa7afcf --- /dev/null +++ b/html_image_url_extractor/i18n/it.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# Paolo Valier , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-06 02:25+0000\n" +"PO-Revision-Date: 2025-09-18 15:04+0000\n" +"Last-Translator: mymage \n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 5.10.4\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "Convertitore campi" diff --git a/html_image_url_extractor/i18n/ja.po b/html_image_url_extractor/i18n/ja.po new file mode 100644 index 00000000000..80402d2bf15 --- /dev/null +++ b/html_image_url_extractor/i18n/ja.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Japanese (https://www.transifex.com/oca/teams/23907/ja/)\n" +"Language: ja\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/ko.po b/html_image_url_extractor/i18n/ko.po new file mode 100644 index 00000000000..152d792ff81 --- /dev/null +++ b/html_image_url_extractor/i18n/ko.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Korean (https://www.transifex.com/oca/teams/23907/ko/)\n" +"Language: ko\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/lt.po b/html_image_url_extractor/i18n/lt.po new file mode 100644 index 00000000000..ab516f81689 --- /dev/null +++ b/html_image_url_extractor/i18n/lt.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n" +"Language: lt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" +"%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/lt_LT.po b/html_image_url_extractor/i18n/lt_LT.po new file mode 100644 index 00000000000..c870c92bc8f --- /dev/null +++ b/html_image_url_extractor/i18n/lt_LT.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# Arminas Grigonis , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: Arminas Grigonis , 2016\n" +"Language-Team: Lithuanian (Lithuania) (https://www.transifex.com/oca/" +"teams/23907/lt_LT/)\n" +"Language: lt_LT\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" +"%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/lv.po b/html_image_url_extractor/i18n/lv.po new file mode 100644 index 00000000000..08d9ce8fa1c --- /dev/null +++ b/html_image_url_extractor/i18n/lv.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Latvian (https://www.transifex.com/oca/teams/23907/lv/)\n" +"Language: lv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " +"2);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/mk.po b/html_image_url_extractor/i18n/mk.po new file mode 100644 index 00000000000..29f70484e78 --- /dev/null +++ b/html_image_url_extractor/i18n/mk.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Macedonian (https://www.transifex.com/oca/teams/23907/mk/)\n" +"Language: mk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/mn.po b/html_image_url_extractor/i18n/mn.po new file mode 100644 index 00000000000..1a072ebfdc8 --- /dev/null +++ b/html_image_url_extractor/i18n/mn.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Mongolian (https://www.transifex.com/oca/teams/23907/mn/)\n" +"Language: mn\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/nb.po b/html_image_url_extractor/i18n/nb.po new file mode 100644 index 00000000000..9adda6100c9 --- /dev/null +++ b/html_image_url_extractor/i18n/nb.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Norwegian Bokmål (https://www.transifex.com/oca/teams/23907/" +"nb/)\n" +"Language: nb\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/nb_NO.po b/html_image_url_extractor/i18n/nb_NO.po new file mode 100644 index 00000000000..d3179dbb70f --- /dev/null +++ b/html_image_url_extractor/i18n/nb_NO.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# Imre Kristoffer Eilertsen , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: Imre Kristoffer Eilertsen , 2016\n" +"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/" +"teams/23907/nb_NO/)\n" +"Language: nb_NO\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/nl.po b/html_image_url_extractor/i18n/nl.po new file mode 100644 index 00000000000..749c27730ed --- /dev/null +++ b/html_image_url_extractor/i18n/nl.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/nl_BE.po b/html_image_url_extractor/i18n/nl_BE.po new file mode 100644 index 00000000000..c2c57174dc2 --- /dev/null +++ b/html_image_url_extractor/i18n/nl_BE.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Dutch (Belgium) (https://www.transifex.com/oca/teams/23907/" +"nl_BE/)\n" +"Language: nl_BE\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/pl.po b/html_image_url_extractor/i18n/pl.po new file mode 100644 index 00000000000..e4873b6fa7d --- /dev/null +++ b/html_image_url_extractor/i18n/pl.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Polish (https://www.transifex.com/oca/teams/23907/pl/)\n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/pt.po b/html_image_url_extractor/i18n/pt.po new file mode 100644 index 00000000000..64140bd6b87 --- /dev/null +++ b/html_image_url_extractor/i18n/pt.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/pt_BR.po b/html_image_url_extractor/i18n/pt_BR.po new file mode 100644 index 00000000000..cb8e577bd26 --- /dev/null +++ b/html_image_url_extractor/i18n/pt_BR.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2019-09-03 01:23+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 3.8\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "Converter Campos" diff --git a/html_image_url_extractor/i18n/pt_PT.po b/html_image_url_extractor/i18n/pt_PT.po new file mode 100644 index 00000000000..2d88f6be12e --- /dev/null +++ b/html_image_url_extractor/i18n/pt_PT.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/" +"teams/23907/pt_PT/)\n" +"Language: pt_PT\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/ro.po b/html_image_url_extractor/i18n/ro.po new file mode 100644 index 00000000000..1d70b172d02 --- /dev/null +++ b/html_image_url_extractor/i18n/ro.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/ru.po b/html_image_url_extractor/i18n/ru.po new file mode 100644 index 00000000000..e5c09cf292d --- /dev/null +++ b/html_image_url_extractor/i18n/ru.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Russian (https://www.transifex.com/oca/teams/23907/ru/)\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" +"%100>=11 && n%100<=14)? 2 : 3);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/sk.po b/html_image_url_extractor/i18n/sk.po new file mode 100644 index 00000000000..4f61185756c --- /dev/null +++ b/html_image_url_extractor/i18n/sk.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Slovak (https://www.transifex.com/oca/teams/23907/sk/)\n" +"Language: sk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/sl.po b/html_image_url_extractor/i18n/sl.po new file mode 100644 index 00000000000..c2e7d1b14fe --- /dev/null +++ b/html_image_url_extractor/i18n/sl.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/sr.po b/html_image_url_extractor/i18n/sr.po new file mode 100644 index 00000000000..0bb6834c794 --- /dev/null +++ b/html_image_url_extractor/i18n/sr.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Serbian (https://www.transifex.com/oca/teams/23907/sr/)\n" +"Language: sr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/sr@latin.po b/html_image_url_extractor/i18n/sr@latin.po new file mode 100644 index 00000000000..e55becff17e --- /dev/null +++ b/html_image_url_extractor/i18n/sr@latin.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Serbian (Latin) (https://www.transifex.com/oca/teams/23907/" +"sr@latin/)\n" +"Language: sr@latin\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/sv.po b/html_image_url_extractor/i18n/sv.po new file mode 100644 index 00000000000..c1ca18dc957 --- /dev/null +++ b/html_image_url_extractor/i18n/sv.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Swedish (https://www.transifex.com/oca/teams/23907/sv/)\n" +"Language: sv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/th.po b/html_image_url_extractor/i18n/th.po new file mode 100644 index 00000000000..6abbb835525 --- /dev/null +++ b/html_image_url_extractor/i18n/th.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Thai (https://www.transifex.com/oca/teams/23907/th/)\n" +"Language: th\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/tr.po b/html_image_url_extractor/i18n/tr.po new file mode 100644 index 00000000000..5674aa66c7f --- /dev/null +++ b/html_image_url_extractor/i18n/tr.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-07-21 02:43+0000\n" +"PO-Revision-Date: 2017-07-21 02:43+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +#, fuzzy +msgid "Fields Converter" +msgstr "ir.fields.converter" diff --git a/html_image_url_extractor/i18n/tr_TR.po b/html_image_url_extractor/i18n/tr_TR.po new file mode 100644 index 00000000000..7d1d540f6f9 --- /dev/null +++ b/html_image_url_extractor/i18n/tr_TR.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# Ozge Altinisik , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-07 04:04+0000\n" +"PO-Revision-Date: 2017-01-07 04:04+0000\n" +"Last-Translator: Ozge Altinisik , 2017\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/" +"tr_TR/)\n" +"Language: tr_TR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/uk.po b/html_image_url_extractor/i18n/uk.po new file mode 100644 index 00000000000..cdad6fb4814 --- /dev/null +++ b/html_image_url_extractor/i18n/uk.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Ukrainian (https://www.transifex.com/oca/teams/23907/uk/)\n" +"Language: uk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/vi.po b/html_image_url_extractor/i18n/vi.po new file mode 100644 index 00000000000..0eb0cc10f35 --- /dev/null +++ b/html_image_url_extractor/i18n/vi.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Vietnamese (https://www.transifex.com/oca/teams/23907/vi/)\n" +"Language: vi\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/vi_VN.po b/html_image_url_extractor/i18n/vi_VN.po new file mode 100644 index 00000000000..5eabe2a9af6 --- /dev/null +++ b/html_image_url_extractor/i18n/vi_VN.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/" +"teams/23907/vi_VN/)\n" +"Language: vi_VN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/i18n/zh_CN.po b/html_image_url_extractor/i18n/zh_CN.po new file mode 100644 index 00000000000..942f1b6a3e2 --- /dev/null +++ b/html_image_url_extractor/i18n/zh_CN.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2019-08-31 06:18+0000\n" +"Last-Translator: 黎伟杰 <674416404@qq.com>\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/" +"zh_CN/)\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 3.8\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "字段转换器" diff --git a/html_image_url_extractor/i18n/zh_TW.po b/html_image_url_extractor/i18n/zh_TW.po new file mode 100644 index 00000000000..13bb97a8edd --- /dev/null +++ b/html_image_url_extractor/i18n/zh_TW.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * html_image_url_extractor +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-03 04:11+0000\n" +"PO-Revision-Date: 2016-12-03 04:11+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Chinese (Taiwan) (https://www.transifex.com/oca/teams/23907/" +"zh_TW/)\n" +"Language: zh_TW\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: html_image_url_extractor +#: model:ir.model,name:html_image_url_extractor.model_ir_fields_converter +msgid "Fields Converter" +msgstr "" diff --git a/html_image_url_extractor/models/__init__.py b/html_image_url_extractor/models/__init__.py new file mode 100644 index 00000000000..e21238ee902 --- /dev/null +++ b/html_image_url_extractor/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import ir_fields_converter diff --git a/html_image_url_extractor/models/ir_fields_converter.py b/html_image_url_extractor/models/ir_fields_converter.py new file mode 100644 index 00000000000..9dcdf6e4823 --- /dev/null +++ b/html_image_url_extractor/models/ir_fields_converter.py @@ -0,0 +1,68 @@ +# Copyright 2016-2017 Tecnativa - Jairo Llopis +# Copyright 2016 Tecnativa - Vicent Cubells +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +import logging +import re + +from lxml import etree, html + +from odoo import api, models + +_logger = logging.getLogger(__name__) + + +class IrFieldsConverter(models.AbstractModel): + _inherit = "ir.fields.converter" + + @api.model + def imgs_from_html(self, html_content, limit=None, fail=False): + """Extract all images in order from an HTML field in a generator. + :param str html_content: + HTML contents from where to extract the images. + :param int limit: + Only get up to this number of images. + :param bool fail: + If ``True``, exceptions will be raised. + """ + # Parse HTML + try: + doc = html.fromstring(html_content) + except (TypeError, etree.XMLSyntaxError, etree.ParserError): + if fail: + raise + else: + _logger.exception("Failure parsing this HTML:\n%s", html_content) + return + # Required tools + query = """ + //img[@src] | + //*[contains(translate(@style, "BACKGROUND", "background"), + 'background')] + [contains(translate(@style, "URL", "url"), 'url(')] + """ + rgx = r""" + url\(\s* # Start function + (?P[^)]*) # URL string + \s*\) # End function + """ + rgx = re.compile(rgx, re.IGNORECASE | re.VERBOSE) + # Loop through possible image URLs + for lap, element in enumerate(doc.xpath(query)): + if limit and lap >= limit: + break + if element.tag == "img": + yield element.attrib["src"] + else: + for rule in element.attrib["style"].split(";"): + # Extract background image + parts = rule.split(":", 1) + try: + if parts[0].strip().lower() in { + "background", + "background-image", + }: + yield (rgx.search(parts[1]).group("url").strip("\"'")) + # Malformed CSS or no match for URL + except (IndexError, AttributeError): + _logger.info("Malformed CSS or no match for URL") diff --git a/html_image_url_extractor/pyproject.toml b/html_image_url_extractor/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/html_image_url_extractor/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/html_image_url_extractor/readme/CONTRIBUTORS.md b/html_image_url_extractor/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..ff0f7f01356 --- /dev/null +++ b/html_image_url_extractor/readme/CONTRIBUTORS.md @@ -0,0 +1,7 @@ +- Dennis Sluijk \<\> +- [Tecnativa](https://www.tecnativa.com): + - Jairo Llopis + - Vicent Cubells + - Cristina Martin R + - Víctor Martínez +- Helly kapatel \<\> diff --git a/html_image_url_extractor/readme/DESCRIPTION.md b/html_image_url_extractor/readme/DESCRIPTION.md new file mode 100644 index 00000000000..6e8319dc186 --- /dev/null +++ b/html_image_url_extractor/readme/DESCRIPTION.md @@ -0,0 +1,7 @@ +This module includes a method that extracts image URLs from any chunk of +HTML, in appearing order. + +It is useful for modules such as +[website_blog_excerpt_img](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. diff --git a/html_image_url_extractor/readme/USAGE.md b/html_image_url_extractor/readme/USAGE.md new file mode 100644 index 00000000000..bb4416f8cad --- /dev/null +++ b/html_image_url_extractor/readme/USAGE.md @@ -0,0 +1,23 @@ +This module just adds a technical utility, but nothing for the end user. + +If you are a developer and need this utility for your module, see these +examples and read the docs inside the code. + +Python example: + + @api.multi + def some_method(self): + # Get images from an HTML field + imgs = self.env["ir.fields.converter"].imgs_from_html(self.html_field) + for url in imgs: + # Do stuff with those URLs + pass + +QWeb example: + + + + + diff --git a/html_image_url_extractor/static/description/icon.png b/html_image_url_extractor/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/html_image_url_extractor/static/description/icon.png differ diff --git a/html_image_url_extractor/static/description/index.html b/html_image_url_extractor/static/description/index.html new file mode 100644 index 00000000000..24ceac333a2 --- /dev/null +++ b/html_image_url_extractor/static/description/index.html @@ -0,0 +1,463 @@ + + + + + +Image URLs from HTML field + + + +
+

Image URLs from HTML field

+ + +

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runboat

+

This module includes a method that extracts image URLs from any chunk of +HTML, in appearing order.

+

It is useful for modules such as +website_blog_excerpt_img: +blog list shows the first image included in the post if haven’t a +defined cover image.

+

Table of contents

+ +
+

Usage

+

This module just adds a technical utility, but nothing for the end user.

+

If you are a developer and need this utility for your module, see these +examples and read the docs inside the code.

+

Python example:

+
+@api.multi
+def some_method(self):
+    # Get images from an HTML field
+    imgs = self.env["ir.fields.converter"].imgs_from_html(self.html_field)
+    for url in imgs:
+        # Do stuff with those URLs
+        pass
+
+

QWeb example:

+
+<!-- Extract first image from a blog post -->
+<t t-foreach="env['ir.fields.converter']
+              .imgs_from_html(blog_post.content, 1)"
+   t-as="url">
+    <img t-att-href="url"/>
+</t>
+
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Tecnativa
  • +
  • Onestein
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/server-tools project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/html_image_url_extractor/tests/__init__.py b/html_image_url_extractor/tests/__init__.py new file mode 100644 index 00000000000..d9d2b331a8f --- /dev/null +++ b/html_image_url_extractor/tests/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import test_extractor diff --git a/html_image_url_extractor/tests/test_extractor.py b/html_image_url_extractor/tests/test_extractor.py new file mode 100644 index 00000000000..f32dde99b8c --- /dev/null +++ b/html_image_url_extractor/tests/test_extractor.py @@ -0,0 +1,57 @@ +# Copyright 2016-2017 Tecnativa - Jairo Llopis +# Copyright 2021 Tecnativa - Víctor Martínez +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo.tests.common import TransactionCase +from odoo.tools import mute_logger + + +class ExtractorCase(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + # Shortcut + cls.imgs_from_html = cls.env["ir.fields.converter"].imgs_from_html + + def test_mixed_images_found(self): + """Images correctly found in elements and backgrounds.""" + content = """ +
+ + +

+ + + + +

+
+

+ +

+
+
+
+ """ + # Read all images + for n, url in enumerate(self.imgs_from_html(content)): + self.assertEqual("/path/%d" % n, url) + self.assertEqual(n, 7) + # Read only first image + for n, url in enumerate(self.imgs_from_html(content, 1)): + self.assertEqual("/path/%d" % n, url) + self.assertEqual(n, 0) + + @mute_logger("odoo.addons.html_image_url_extractor" + ".models.ir_fields_converter") + def test_empty_html(self): + """Empty HTML handled correctly.""" + self.assertTrue(enumerate(self.imgs_from_html(""))) + with self.assertRaisesRegex(Exception, "Document is empty"): + list(self.imgs_from_html("", fail=True)) + + @mute_logger("odoo.addons.html_image_url_extractor" + ".models.ir_fields_converter") + def test_false_html(self): + """``False`` HTML handled correctly.""" + self.assertTrue(enumerate(self.imgs_from_html(False))) + with self.assertRaisesRegex(Exception, "expected string or bytes-like object"): + list(self.imgs_from_html(False, fail=True))