diff --git a/base_country_state_translatable/README.rst b/base_country_state_translatable/README.rst new file mode 100644 index 000000000..7c1a8487d --- /dev/null +++ b/base_country_state_translatable/README.rst @@ -0,0 +1,80 @@ +======================== +Translate Country States +======================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fpartner--contact-lightgray.png?logo=github + :target: https://github.com/OCA/partner-contact/tree/12.0/base_country_state_translatable + :alt: OCA/partner-contact +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/partner-contact-12-0/partner-contact-12-0-base_country_state_translatable + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/134/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows to translate the country states names. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +Inherit this module in your l10n_xx_country_states Module and translate the states names. + +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 smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* initOS GmbH + +Contributors +~~~~~~~~~~~~ + +* Rami Alwafaie +* Dhara Solanki +* Numigi (tm) and all its contributors (https://bit.ly/numigiens) + +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/partner-contact `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_country_state_translatable/__init__.py b/base_country_state_translatable/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/base_country_state_translatable/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/base_country_state_translatable/__manifest__.py b/base_country_state_translatable/__manifest__.py new file mode 100644 index 000000000..cc8159c80 --- /dev/null +++ b/base_country_state_translatable/__manifest__.py @@ -0,0 +1,14 @@ +# Copyright 2017 initOS GmbH +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Translate Country States", + "version": "14.0.1.0.0", + "depends": ["base"], + "website": "https://github.com/OCA/partner-contact", + "summary": "Translate Country States", + "author": "initOS GmbH, Odoo Community Association (OCA)", + "category": "Localisation", + "license": "AGPL-3", + "installable": True, +} diff --git a/base_country_state_translatable/i18n/base_country_state_translatable.pot b/base_country_state_translatable/i18n/base_country_state_translatable.pot new file mode 100644 index 000000000..e985000c0 --- /dev/null +++ b/base_country_state_translatable/i18n/base_country_state_translatable.pot @@ -0,0 +1,30 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_country_state_translatable +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.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: base_country_state_translatable +#: model:ir.model.fields,help:base_country_state_translatable.field_res_country_state__name +msgid "Administrative divisions of a country. E.g. Fed. State, Departement, Canton" +msgstr "" + +#. module: base_country_state_translatable +#: model:ir.model,name:base_country_state_translatable.model_res_country_state +msgid "Country state" +msgstr "" + +#. module: base_country_state_translatable +#: model:ir.model.fields,field_description:base_country_state_translatable.field_res_country_state__name +msgid "State Name" +msgstr "" + diff --git a/base_country_state_translatable/i18n/da.po b/base_country_state_translatable/i18n/da.po new file mode 100644 index 000000000..1ee6545e9 --- /dev/null +++ b/base_country_state_translatable/i18n/da.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_country_state_translatable +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-21 01:48+0000\n" +"PO-Revision-Date: 2017-11-21 01:48+0000\n" +"Last-Translator: OCA Transbot , 2017\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: base_country_state_translatable +#: model:ir.model.fields,help:base_country_state_translatable.field_res_country_state__name +msgid "" +"Administrative divisions of a country. E.g. Fed. State, Departement, Canton" +msgstr "" + +#. module: base_country_state_translatable +#: model:ir.model,name:base_country_state_translatable.model_res_country_state +msgid "Country state" +msgstr "Delstat/region" + +#. module: base_country_state_translatable +#: model:ir.model.fields,field_description:base_country_state_translatable.field_res_country_state__name +msgid "State Name" +msgstr "" diff --git a/base_country_state_translatable/i18n/de.po b/base_country_state_translatable/i18n/de.po new file mode 100644 index 000000000..e27ec33fe --- /dev/null +++ b/base_country_state_translatable/i18n/de.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_country_state_translatable +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-21 01:48+0000\n" +"PO-Revision-Date: 2017-11-21 01:48+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: base_country_state_translatable +#: model:ir.model.fields,help:base_country_state_translatable.field_res_country_state__name +msgid "" +"Administrative divisions of a country. E.g. Fed. State, Departement, Canton" +msgstr "" + +#. module: base_country_state_translatable +#: model:ir.model,name:base_country_state_translatable.model_res_country_state +msgid "Country state" +msgstr "Bundesland" + +#. module: base_country_state_translatable +#: model:ir.model.fields,field_description:base_country_state_translatable.field_res_country_state__name +msgid "State Name" +msgstr "" diff --git a/base_country_state_translatable/i18n/es.po b/base_country_state_translatable/i18n/es.po new file mode 100644 index 000000000..8774a1f82 --- /dev/null +++ b/base_country_state_translatable/i18n/es.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_country_state_translatable +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-21 01:48+0000\n" +"PO-Revision-Date: 2017-11-21 01:48+0000\n" +"Last-Translator: OCA Transbot , 2017\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" + +#. module: base_country_state_translatable +#: model:ir.model.fields,help:base_country_state_translatable.field_res_country_state__name +msgid "" +"Administrative divisions of a country. E.g. Fed. State, Departement, Canton" +msgstr "" + +#. module: base_country_state_translatable +#: model:ir.model,name:base_country_state_translatable.model_res_country_state +msgid "Country state" +msgstr "Provincia" + +#. module: base_country_state_translatable +#: model:ir.model.fields,field_description:base_country_state_translatable.field_res_country_state__name +msgid "State Name" +msgstr "" diff --git a/base_country_state_translatable/i18n/fr.po b/base_country_state_translatable/i18n/fr.po new file mode 100644 index 000000000..357f80b79 --- /dev/null +++ b/base_country_state_translatable/i18n/fr.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_country_state_translatable +# +# Translators: +# Quentin THEURET , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-28 03:45+0000\n" +"PO-Revision-Date: 2018-02-28 03:45+0000\n" +"Last-Translator: Quentin THEURET , 2018\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: base_country_state_translatable +#: model:ir.model.fields,help:base_country_state_translatable.field_res_country_state__name +msgid "" +"Administrative divisions of a country. E.g. Fed. State, Departement, Canton" +msgstr "" + +#. module: base_country_state_translatable +#: model:ir.model,name:base_country_state_translatable.model_res_country_state +msgid "Country state" +msgstr "État" + +#. module: base_country_state_translatable +#: model:ir.model.fields,field_description:base_country_state_translatable.field_res_country_state__name +msgid "State Name" +msgstr "" diff --git a/base_country_state_translatable/i18n/hr.po b/base_country_state_translatable/i18n/hr.po new file mode 100644 index 000000000..c97df1200 --- /dev/null +++ b/base_country_state_translatable/i18n/hr.po @@ -0,0 +1,33 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_country_state_translatable +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-11-18 14:34+0000\n" +"Last-Translator: Bole \n" +"Language-Team: none\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" +"X-Generator: Weblate 3.8\n" + +#. module: base_country_state_translatable +#: model:ir.model.fields,help:base_country_state_translatable.field_res_country_state__name +msgid "Administrative divisions of a country. E.g. Fed. State, Departement, Canton" +msgstr "Administrativna jedinica države, npr: Županija, Kanton isl..." + +#. module: base_country_state_translatable +#: model:ir.model,name:base_country_state_translatable.model_res_country_state +msgid "Country state" +msgstr "Županija" + +#. module: base_country_state_translatable +#: model:ir.model.fields,field_description:base_country_state_translatable.field_res_country_state__name +msgid "State Name" +msgstr "Naziv županije" diff --git a/base_country_state_translatable/i18n/hr_HR.po b/base_country_state_translatable/i18n/hr_HR.po new file mode 100644 index 000000000..4da920f2b --- /dev/null +++ b/base_country_state_translatable/i18n/hr_HR.po @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_country_state_translatable +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-21 01:48+0000\n" +"PO-Revision-Date: 2017-11-21 01:48+0000\n" +"Last-Translator: OCA Transbot , 2017\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: base_country_state_translatable +#: model:ir.model.fields,help:base_country_state_translatable.field_res_country_state__name +msgid "" +"Administrative divisions of a country. E.g. Fed. State, Departement, Canton" +msgstr "" + +#. module: base_country_state_translatable +#: model:ir.model,name:base_country_state_translatable.model_res_country_state +msgid "Country state" +msgstr "Oblast/Županija" + +#. module: base_country_state_translatable +#: model:ir.model.fields,field_description:base_country_state_translatable.field_res_country_state__name +msgid "State Name" +msgstr "" diff --git a/base_country_state_translatable/i18n/it.po b/base_country_state_translatable/i18n/it.po new file mode 100644 index 000000000..3379eae80 --- /dev/null +++ b/base_country_state_translatable/i18n/it.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_country_state_translatable +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-21 01:48+0000\n" +"PO-Revision-Date: 2017-11-21 01:48+0000\n" +"Last-Translator: OCA Transbot , 2017\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" + +#. module: base_country_state_translatable +#: model:ir.model.fields,help:base_country_state_translatable.field_res_country_state__name +msgid "" +"Administrative divisions of a country. E.g. Fed. State, Departement, Canton" +msgstr "" + +#. module: base_country_state_translatable +#: model:ir.model,name:base_country_state_translatable.model_res_country_state +msgid "Country state" +msgstr "Provincia Paese" + +#. module: base_country_state_translatable +#: model:ir.model.fields,field_description:base_country_state_translatable.field_res_country_state__name +msgid "State Name" +msgstr "" diff --git a/base_country_state_translatable/i18n/pt_BR.po b/base_country_state_translatable/i18n/pt_BR.po new file mode 100644 index 000000000..afb3f1f4c --- /dev/null +++ b/base_country_state_translatable/i18n/pt_BR.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_country_state_translatable +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-21 01:48+0000\n" +"PO-Revision-Date: 2019-09-23 14:24+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: base_country_state_translatable +#: model:ir.model.fields,help:base_country_state_translatable.field_res_country_state__name +msgid "" +"Administrative divisions of a country. E.g. Fed. State, Departement, Canton" +msgstr "" +"Divisões administrativas de um país. Por exemplo. Fed. Estado, Departamento, " +"Distrito" + +#. module: base_country_state_translatable +#: model:ir.model,name:base_country_state_translatable.model_res_country_state +msgid "Country state" +msgstr "Estado" + +#. module: base_country_state_translatable +#: model:ir.model.fields,field_description:base_country_state_translatable.field_res_country_state__name +msgid "State Name" +msgstr "Nome do Estado" diff --git a/base_country_state_translatable/i18n/sl.po b/base_country_state_translatable/i18n/sl.po new file mode 100644 index 000000000..c8cdaa18e --- /dev/null +++ b/base_country_state_translatable/i18n/sl.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_country_state_translatable +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-21 01:48+0000\n" +"PO-Revision-Date: 2017-11-21 01:48+0000\n" +"Last-Translator: OCA Transbot , 2017\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: base_country_state_translatable +#: model:ir.model.fields,help:base_country_state_translatable.field_res_country_state__name +msgid "" +"Administrative divisions of a country. E.g. Fed. State, Departement, Canton" +msgstr "" + +#. module: base_country_state_translatable +#: model:ir.model,name:base_country_state_translatable.model_res_country_state +msgid "Country state" +msgstr "Zvezna država" + +#. module: base_country_state_translatable +#: model:ir.model.fields,field_description:base_country_state_translatable.field_res_country_state__name +msgid "State Name" +msgstr "" diff --git a/base_country_state_translatable/models/__init__.py b/base_country_state_translatable/models/__init__.py new file mode 100644 index 000000000..11573766f --- /dev/null +++ b/base_country_state_translatable/models/__init__.py @@ -0,0 +1 @@ +from . import res_country diff --git a/base_country_state_translatable/models/res_country.py b/base_country_state_translatable/models/res_country.py new file mode 100644 index 000000000..2a4d11656 --- /dev/null +++ b/base_country_state_translatable/models/res_country.py @@ -0,0 +1,10 @@ +# Copyright 2017 initOS GmbH +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class CountryState(models.Model): + _inherit = "res.country.state" + + name = fields.Char(translate=True) diff --git a/base_country_state_translatable/readme/CONTRIBUTORS.rst b/base_country_state_translatable/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..f30390c69 --- /dev/null +++ b/base_country_state_translatable/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Rami Alwafaie +* Dhara Solanki +* Numigi (tm) and all its contributors (https://bit.ly/numigiens) diff --git a/base_country_state_translatable/readme/DESCRIPTION.rst b/base_country_state_translatable/readme/DESCRIPTION.rst new file mode 100644 index 000000000..1a6410943 --- /dev/null +++ b/base_country_state_translatable/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows to translate the country states names. diff --git a/base_country_state_translatable/readme/USAGE.rst b/base_country_state_translatable/readme/USAGE.rst new file mode 100644 index 000000000..6b012bbf6 --- /dev/null +++ b/base_country_state_translatable/readme/USAGE.rst @@ -0,0 +1 @@ +Inherit this module in your l10n_xx_country_states Module and translate the states names. diff --git a/base_country_state_translatable/static/description/icon.png b/base_country_state_translatable/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/base_country_state_translatable/static/description/icon.png differ diff --git a/base_country_state_translatable/static/description/index.html b/base_country_state_translatable/static/description/index.html new file mode 100644 index 000000000..1ad0f91a9 --- /dev/null +++ b/base_country_state_translatable/static/description/index.html @@ -0,0 +1,425 @@ + + + + + + +Translate Country States + + + +
+

Translate Country States

+ + +

Beta License: AGPL-3 OCA/partner-contact Translate me on Weblate Try me on Runbot

+

This module allows to translate the country states names.

+

Table of contents

+ +
+

Usage

+

Inherit this module in your l10n_xx_country_states Module and translate the states names.

+
+
+

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 smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • initOS GmbH
  • +
+
+
+

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/partner-contact project on GitHub.

+

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

+
+
+
+ + diff --git a/setup/base_country_state_translatable/odoo/addons/base_country_state_translatable b/setup/base_country_state_translatable/odoo/addons/base_country_state_translatable new file mode 120000 index 000000000..f900efbb2 --- /dev/null +++ b/setup/base_country_state_translatable/odoo/addons/base_country_state_translatable @@ -0,0 +1 @@ +../../../../base_country_state_translatable \ No newline at end of file diff --git a/setup/base_country_state_translatable/setup.py b/setup/base_country_state_translatable/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/base_country_state_translatable/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)