Browse Source
Merge pull request #537 from yostashiro/11.0-mig-base_country_state_translatable
11.0 mig base country state translatable
pull/566/head
Pedro M. Baeza
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with
267 additions and
0 deletions
-
base_country_state_translatable/README.rst
-
base_country_state_translatable/__init__.py
-
base_country_state_translatable/__manifest__.py
-
base_country_state_translatable/i18n/da.po
-
base_country_state_translatable/i18n/de.po
-
base_country_state_translatable/i18n/es.po
-
base_country_state_translatable/i18n/fr.po
-
base_country_state_translatable/i18n/hr_HR.po
-
base_country_state_translatable/i18n/it.po
-
base_country_state_translatable/i18n/pt_BR.po
-
base_country_state_translatable/i18n/sl.po
-
base_country_state_translatable/models/__init__.py
-
base_country_state_translatable/models/res_country.py
|
|
@ -0,0 +1,50 @@ |
|
|
|
.. 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 |
|
|
|
|
|
|
|
======================== |
|
|
|
Translate Country States |
|
|
|
======================== |
|
|
|
|
|
|
|
This module allows to translate the country states names. |
|
|
|
|
|
|
|
Usage |
|
|
|
===== |
|
|
|
|
|
|
|
* Inherit this module in your l10n_xx_country_states Module and translate the states names. |
|
|
|
|
|
|
|
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas |
|
|
|
:alt: Try me on Runbot |
|
|
|
:target: https://runbot.odoo-community.org/runbot/134/11.0 |
|
|
|
|
|
|
|
|
|
|
|
Bug Tracker |
|
|
|
=========== |
|
|
|
|
|
|
|
Bugs are tracked on `GitHub Issues |
|
|
|
<https://github.com/OCA/partner-contact/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. |
|
|
|
|
|
|
|
Credits |
|
|
|
======= |
|
|
|
|
|
|
|
Contributors |
|
|
|
------------ |
|
|
|
|
|
|
|
* Rami Alwafaie <rami.alwafaie@initos.com> |
|
|
|
|
|
|
|
Maintainer |
|
|
|
---------- |
|
|
|
|
|
|
|
.. image:: https://odoo-community.org/logo.png |
|
|
|
:alt: Odoo Community Association |
|
|
|
:target: https://odoo-community.org |
|
|
|
|
|
|
|
This module is maintained by the OCA. |
|
|
|
|
|
|
|
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. |
|
|
|
|
|
|
|
To contribute to this module, please visit https://odoo-community.org. |
|
|
@ -0,0 +1 @@ |
|
|
|
from . import models |
|
|
@ -0,0 +1,13 @@ |
|
|
|
# © initOS GmbH 2017 |
|
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|
|
|
|
|
|
|
{ |
|
|
|
"name": "Translate Country States", |
|
|
|
"version": "11.0.1.0.0", |
|
|
|
"depends": ['base', |
|
|
|
], |
|
|
|
'author': 'initOS GmbH, Odoo Community Association (OCA)', |
|
|
|
"category": "Localisation", |
|
|
|
'license': 'AGPL-3', |
|
|
|
'installable': True, |
|
|
|
} |
|
|
@ -0,0 +1,24 @@ |
|
|
|
# Translation of Odoo Server. |
|
|
|
# This file contains the translation of the following modules: |
|
|
|
# * base_country_state_translatable |
|
|
|
# |
|
|
|
# Translators: |
|
|
|
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" |
|
|
|
"Language-Team: Danish (https://www.transifex.com/oca/teams/23907/da/)\n" |
|
|
|
"MIME-Version: 1.0\n" |
|
|
|
"Content-Type: text/plain; charset=UTF-8\n" |
|
|
|
"Content-Transfer-Encoding: \n" |
|
|
|
"Language: da\n" |
|
|
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|
|
|
|
|
|
|
#. module: base_country_state_translatable |
|
|
|
#: model:ir.model,name:base_country_state_translatable.model_res_country_state |
|
|
|
msgid "Country state" |
|
|
|
msgstr "Delstat/region" |
|
|
@ -0,0 +1,24 @@ |
|
|
|
# Translation of Odoo Server. |
|
|
|
# This file contains the translation of the following modules: |
|
|
|
# * base_country_state_translatable |
|
|
|
# |
|
|
|
# Translators: |
|
|
|
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" |
|
|
|
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" |
|
|
|
"MIME-Version: 1.0\n" |
|
|
|
"Content-Type: text/plain; charset=UTF-8\n" |
|
|
|
"Content-Transfer-Encoding: \n" |
|
|
|
"Language: de\n" |
|
|
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|
|
|
|
|
|
|
#. module: base_country_state_translatable |
|
|
|
#: model:ir.model,name:base_country_state_translatable.model_res_country_state |
|
|
|
msgid "Country state" |
|
|
|
msgstr "Bundesland" |
|
|
@ -0,0 +1,24 @@ |
|
|
|
# Translation of Odoo Server. |
|
|
|
# This file contains the translation of the following modules: |
|
|
|
# * base_country_state_translatable |
|
|
|
# |
|
|
|
# Translators: |
|
|
|
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" |
|
|
|
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" |
|
|
|
"MIME-Version: 1.0\n" |
|
|
|
"Content-Type: text/plain; charset=UTF-8\n" |
|
|
|
"Content-Transfer-Encoding: \n" |
|
|
|
"Language: es\n" |
|
|
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|
|
|
|
|
|
|
#. module: base_country_state_translatable |
|
|
|
#: model:ir.model,name:base_country_state_translatable.model_res_country_state |
|
|
|
msgid "Country state" |
|
|
|
msgstr "Provincia" |
|
|
@ -0,0 +1,24 @@ |
|
|
|
# Translation of Odoo Server. |
|
|
|
# This file contains the translation of the following modules: |
|
|
|
# * base_country_state_translatable |
|
|
|
# |
|
|
|
# Translators: |
|
|
|
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" |
|
|
|
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" |
|
|
|
"MIME-Version: 1.0\n" |
|
|
|
"Content-Type: text/plain; charset=UTF-8\n" |
|
|
|
"Content-Transfer-Encoding: \n" |
|
|
|
"Language: fr\n" |
|
|
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n" |
|
|
|
|
|
|
|
#. module: base_country_state_translatable |
|
|
|
#: model:ir.model,name:base_country_state_translatable.model_res_country_state |
|
|
|
msgid "Country state" |
|
|
|
msgstr "Etat" |
|
|
@ -0,0 +1,24 @@ |
|
|
|
# Translation of Odoo Server. |
|
|
|
# This file contains the translation of the following modules: |
|
|
|
# * base_country_state_translatable |
|
|
|
# |
|
|
|
# Translators: |
|
|
|
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" |
|
|
|
"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/hr_HR/)\n" |
|
|
|
"MIME-Version: 1.0\n" |
|
|
|
"Content-Type: text/plain; charset=UTF-8\n" |
|
|
|
"Content-Transfer-Encoding: \n" |
|
|
|
"Language: hr_HR\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,name:base_country_state_translatable.model_res_country_state |
|
|
|
msgid "Country state" |
|
|
|
msgstr "Oblast/Županija" |
|
|
@ -0,0 +1,24 @@ |
|
|
|
# Translation of Odoo Server. |
|
|
|
# This file contains the translation of the following modules: |
|
|
|
# * base_country_state_translatable |
|
|
|
# |
|
|
|
# Translators: |
|
|
|
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" |
|
|
|
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" |
|
|
|
"MIME-Version: 1.0\n" |
|
|
|
"Content-Type: text/plain; charset=UTF-8\n" |
|
|
|
"Content-Transfer-Encoding: \n" |
|
|
|
"Language: it\n" |
|
|
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|
|
|
|
|
|
|
#. module: base_country_state_translatable |
|
|
|
#: model:ir.model,name:base_country_state_translatable.model_res_country_state |
|
|
|
msgid "Country state" |
|
|
|
msgstr "Provincia Paese" |
|
|
@ -0,0 +1,24 @@ |
|
|
|
# Translation of Odoo Server. |
|
|
|
# This file contains the translation of the following modules: |
|
|
|
# * base_country_state_translatable |
|
|
|
# |
|
|
|
# Translators: |
|
|
|
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" |
|
|
|
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n" |
|
|
|
"MIME-Version: 1.0\n" |
|
|
|
"Content-Type: text/plain; charset=UTF-8\n" |
|
|
|
"Content-Transfer-Encoding: \n" |
|
|
|
"Language: pt_BR\n" |
|
|
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n" |
|
|
|
|
|
|
|
#. module: base_country_state_translatable |
|
|
|
#: model:ir.model,name:base_country_state_translatable.model_res_country_state |
|
|
|
msgid "Country state" |
|
|
|
msgstr "Estado" |
|
|
@ -0,0 +1,24 @@ |
|
|
|
# Translation of Odoo Server. |
|
|
|
# This file contains the translation of the following modules: |
|
|
|
# * base_country_state_translatable |
|
|
|
# |
|
|
|
# Translators: |
|
|
|
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 2017\n" |
|
|
|
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" |
|
|
|
"MIME-Version: 1.0\n" |
|
|
|
"Content-Type: text/plain; charset=UTF-8\n" |
|
|
|
"Content-Transfer-Encoding: \n" |
|
|
|
"Language: sl\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,name:base_country_state_translatable.model_res_country_state |
|
|
|
msgid "Country state" |
|
|
|
msgstr "Zvezna država" |
|
|
@ -0,0 +1 @@ |
|
|
|
from . import res_country |
|
|
@ -0,0 +1,10 @@ |
|
|
|
# © initOS GmbH 2017 |
|
|
|
# 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) |