From c931e7494aadc3e5711f5fb279038ecb2fab485e Mon Sep 17 00:00:00 2001 From: Damien Crier Date: Fri, 2 Jun 2017 13:40:21 +0200 Subject: [PATCH] fix unicode/ascii error --- partner_firstname/i18n/bg.po | 58 ++++++++++++++++ partner_firstname/i18n/de.po | 17 +++-- partner_firstname/i18n/es.po | 48 ++++++++++--- partner_firstname/i18n/fi.po | 58 ++++++++++++++++ partner_firstname/i18n/fr.po | 48 +++++++++++-- partner_firstname/i18n/hr.po | 58 ++++++++++++++++ partner_firstname/i18n/it.po | 22 +++--- partner_firstname/i18n/nl_NL.po | 92 +++++++++++++++++++++++++ partner_firstname/i18n/pt.po | 58 ++++++++++++++++ partner_firstname/i18n/pt_BR.po | 30 ++++---- partner_firstname/i18n/pt_PT.po | 58 ++++++++++++++++ partner_firstname/models/res_partner.py | 21 ++++-- 12 files changed, 506 insertions(+), 62 deletions(-) create mode 100644 partner_firstname/i18n/bg.po create mode 100644 partner_firstname/i18n/fi.po create mode 100644 partner_firstname/i18n/hr.po create mode 100644 partner_firstname/i18n/nl_NL.po create mode 100644 partner_firstname/i18n/pt.po create mode 100644 partner_firstname/i18n/pt_PT.po diff --git a/partner_firstname/i18n/bg.po b/partner_firstname/i18n/bg.po new file mode 100644 index 000000000..e8f0cab79 --- /dev/null +++ b/partner_firstname/i18n/bg.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_firstname +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-31 01:39+0000\n" +"PO-Revision-Date: 2016-12-31 01:39+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: bg\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_firstname +#: sql_constraint:res.partner:0 +msgid "Contacts require a name." +msgstr "" + +#. module: partner_firstname +#: code:addons/partner_firstname/exceptions.py:11 +#, python-format +msgid "Error(s) with partner %d's name." +msgstr "" + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_users_firstname +msgid "First name" +msgstr "" + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_partner_lastname +#: model:ir.model.fields,field_description:partner_firstname.field_res_users_lastname +msgid "Last name" +msgstr "" + +#. module: partner_firstname +#: code:addons/partner_firstname/exceptions.py:8 +#, python-format +msgid "No name is set." +msgstr "" + +#. module: partner_firstname +#: model:ir.model,name:partner_firstname.model_res_partner +msgid "Partner" +msgstr "Партньор" + +#. module: partner_firstname +#: model:ir.model,name:partner_firstname.model_res_users +msgid "Users" +msgstr "" diff --git a/partner_firstname/i18n/de.po b/partner_firstname/i18n/de.po index 8a685162d..b789f4c5d 100644 --- a/partner_firstname/i18n/de.po +++ b/partner_firstname/i18n/de.po @@ -3,17 +3,16 @@ # * partner_firstname # # Translators: -# Armando Vulcano Junior , 2015 -# Matjaž Mozetič , 2016 -# Rudolf Schnapka , 2016 +# OCA Transbot , 2016 +# Niki Waibel , 2016 msgid "" msgstr "" -"Project-Id-Version: partner-contact (9.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-04-17 04:15+0000\n" -"PO-Revision-Date: 2016-04-21 08:29+0000\n" -"Last-Translator: Rudolf Schnapka \n" -"Language-Team: German (http://www.transifex.com/oca/OCA-partner-contact-9-0/language/de/)\n" +"POT-Creation-Date: 2016-11-14 03:37+0000\n" +"PO-Revision-Date: 2016-11-14 03:37+0000\n" +"Last-Translator: Niki Waibel , 2016\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" @@ -47,7 +46,7 @@ msgstr "Nachname" #: code:addons/partner_firstname/exceptions.py:8 #, python-format msgid "No name is set." -msgstr "Kein Name gepflegt." +msgstr "Kein Name eingetragen." #. module: partner_firstname #: model:ir.model,name:partner_firstname.model_res_partner diff --git a/partner_firstname/i18n/es.po b/partner_firstname/i18n/es.po index 617a7055e..d51befbbc 100644 --- a/partner_firstname/i18n/es.po +++ b/partner_firstname/i18n/es.po @@ -3,17 +3,15 @@ # * partner_firstname # # Translators: -# Francisco Palm , 2015 -# Hotellook, 2014 -# Paolo Valier, 2016 +# OCA Transbot , 2016 msgid "" msgstr "" -"Project-Id-Version: partner-contact (9.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-04-14 11:14+0000\n" -"PO-Revision-Date: 2016-04-05 10:01+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: Spanish (http://www.transifex.com/oca/OCA-partner-contact-9-0/language/es/)\n" +"POT-Creation-Date: 2017-06-30 02:48+0000\n" +"PO-Revision-Date: 2017-06-30 02:48+0000\n" +"Last-Translator: OCA Transbot , 2016\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" @@ -23,7 +21,7 @@ msgstr "" #. module: partner_firstname #: sql_constraint:res.partner:0 msgid "Contacts require a name." -msgstr "" +msgstr "Los contactos requieren un nombre." #. module: partner_firstname #: code:addons/partner_firstname/exceptions.py:11 @@ -49,12 +47,44 @@ msgstr "Apellido" msgid "No name is set." msgstr "No se ha establecido ningún nombre." +#. module: partner_firstname +#: model:ir.model.fields,help:partner_firstname.field_base_config_settings_partner_names_order +msgid "Order to compose partner fullname" +msgstr "" + #. module: partner_firstname #: model:ir.model,name:partner_firstname.model_res_partner msgid "Partner" msgstr "Empresa" +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_base_config_settings_partner_names_order +msgid "Partner names order" +msgstr "" + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_base_config_settings_partner_names_order_changed +msgid "Partner names order changed" +msgstr "" + +#. module: partner_firstname +#: model:ir.ui.view,arch_db:partner_firstname.view_general_configuration +msgid "Recalculate names" +msgstr "" + +#. module: partner_firstname +#: model:ir.ui.view,arch_db:partner_firstname.view_general_configuration +msgid "" +"Recalculate names for all partners. This process could take so much time if " +"there are more than 10,000 active partners" +msgstr "" + #. module: partner_firstname #: model:ir.model,name:partner_firstname.model_res_users msgid "Users" msgstr "Usuarios" + +#. module: partner_firstname +#: model:ir.model,name:partner_firstname.model_base_config_settings +msgid "base.config.settings" +msgstr "base.config.settings" diff --git a/partner_firstname/i18n/fi.po b/partner_firstname/i18n/fi.po new file mode 100644 index 000000000..4fbe19aa1 --- /dev/null +++ b/partner_firstname/i18n/fi.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_firstname +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-21 03:40+0000\n" +"PO-Revision-Date: 2016-12-21 03:40+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_firstname +#: sql_constraint:res.partner:0 +msgid "Contacts require a name." +msgstr "" + +#. module: partner_firstname +#: code:addons/partner_firstname/exceptions.py:11 +#, python-format +msgid "Error(s) with partner %d's name." +msgstr "" + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_users_firstname +msgid "First name" +msgstr "" + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_partner_lastname +#: model:ir.model.fields,field_description:partner_firstname.field_res_users_lastname +msgid "Last name" +msgstr "" + +#. module: partner_firstname +#: code:addons/partner_firstname/exceptions.py:8 +#, python-format +msgid "No name is set." +msgstr "" + +#. module: partner_firstname +#: model:ir.model,name:partner_firstname.model_res_partner +msgid "Partner" +msgstr "Kumppani" + +#. module: partner_firstname +#: model:ir.model,name:partner_firstname.model_res_users +msgid "Users" +msgstr "" diff --git a/partner_firstname/i18n/fr.po b/partner_firstname/i18n/fr.po index 4c96e5195..4017cd747 100644 --- a/partner_firstname/i18n/fr.po +++ b/partner_firstname/i18n/fr.po @@ -3,15 +3,16 @@ # * partner_firstname # # Translators: -# Laurent Mignon (ACSONE) , 2016 +# OCA Transbot , 2016 +# Lixon Jean-Yves , 2017 msgid "" msgstr "" -"Project-Id-Version: partner-contact (9.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-06-28 11:23+0000\n" -"PO-Revision-Date: 2016-06-16 15:35+0000\n" -"Last-Translator: Laurent Mignon (ACSONE) \n" -"Language-Team: French (http://www.transifex.com/oca/OCA-partner-contact-9-0/language/fr/)\n" +"POT-Creation-Date: 2017-07-08 02:42+0000\n" +"PO-Revision-Date: 2017-07-08 02:42+0000\n" +"Last-Translator: Lixon Jean-Yves , 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" @@ -47,12 +48,47 @@ msgstr "Nom" msgid "No name is set." msgstr "Aucun nom spécifié." +#. module: partner_firstname +#: model:ir.model.fields,help:partner_firstname.field_base_config_settings_partner_names_order +msgid "Order to compose partner fullname" +msgstr "Ordre de la composition du nom complet" + #. module: partner_firstname #: model:ir.model,name:partner_firstname.model_res_partner msgid "Partner" msgstr "Partenaire" +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_base_config_settings_partner_names_order +msgid "Partner names order" +msgstr "Ordre des noms et prénoms des partenaires" + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_base_config_settings_partner_names_order_changed +msgid "Partner names order changed" +msgstr "L'ordre des noms et prénoms des partenaires a changé" + +#. module: partner_firstname +#: model:ir.ui.view,arch_db:partner_firstname.view_general_configuration +msgid "Recalculate names" +msgstr "Recalculer les noms et prénoms" + +#. module: partner_firstname +#: model:ir.ui.view,arch_db:partner_firstname.view_general_configuration +msgid "" +"Recalculate names for all partners. This process could take so much time if " +"there are more than 10,000 active partners" +msgstr "" +"Calcul des noms et prénoms de tous les partenaires. Ce traitement peut " +"prendre plusieurs minutes, voir plus si le nombre de partenaires actifs " +"dépasse les 10000. " + #. module: partner_firstname #: model:ir.model,name:partner_firstname.model_res_users msgid "Users" msgstr "Utilisateurs" + +#. module: partner_firstname +#: model:ir.model,name:partner_firstname.model_base_config_settings +msgid "base.config.settings" +msgstr "" diff --git a/partner_firstname/i18n/hr.po b/partner_firstname/i18n/hr.po new file mode 100644 index 000000000..db2849c31 --- /dev/null +++ b/partner_firstname/i18n/hr.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_firstname +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-31 01:39+0000\n" +"PO-Revision-Date: 2016-12-31 01:39+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: 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: partner_firstname +#: sql_constraint:res.partner:0 +msgid "Contacts require a name." +msgstr "" + +#. module: partner_firstname +#: code:addons/partner_firstname/exceptions.py:11 +#, python-format +msgid "Error(s) with partner %d's name." +msgstr "" + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_users_firstname +msgid "First name" +msgstr "" + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_partner_lastname +#: model:ir.model.fields,field_description:partner_firstname.field_res_users_lastname +msgid "Last name" +msgstr "" + +#. module: partner_firstname +#: code:addons/partner_firstname/exceptions.py:8 +#, python-format +msgid "No name is set." +msgstr "" + +#. module: partner_firstname +#: model:ir.model,name:partner_firstname.model_res_partner +msgid "Partner" +msgstr "Partner" + +#. module: partner_firstname +#: model:ir.model,name:partner_firstname.model_res_users +msgid "Users" +msgstr "" diff --git a/partner_firstname/i18n/it.po b/partner_firstname/i18n/it.po index 68b6a20df..9ff39ef06 100644 --- a/partner_firstname/i18n/it.po +++ b/partner_firstname/i18n/it.po @@ -3,20 +3,16 @@ # * partner_firstname # # Translators: -# Antonio Trueba, 2016 -# Francisco Palm , 2015 -# Hotellook, 2014 -# Matjaž Mozetič , 2016 -# Paolo Valier, 2016 -# Paolo Valier, 2016 +# OCA Transbot , 2016 +# Giuliano Lotta , 2016 msgid "" msgstr "" -"Project-Id-Version: partner-contact (9.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-04-14 11:14+0000\n" -"PO-Revision-Date: 2016-04-05 10:01+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: Italian (http://www.transifex.com/oca/OCA-partner-contact-9-0/language/it/)\n" +"POT-Creation-Date: 2016-12-21 03:40+0000\n" +"PO-Revision-Date: 2016-12-21 03:40+0000\n" +"Last-Translator: Giuliano Lotta , 2016\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" @@ -26,7 +22,7 @@ msgstr "" #. module: partner_firstname #: sql_constraint:res.partner:0 msgid "Contacts require a name." -msgstr "" +msgstr "I contatti richiedono un nome" #. module: partner_firstname #: code:addons/partner_firstname/exceptions.py:11 @@ -50,7 +46,7 @@ msgstr "Cognome" #: code:addons/partner_firstname/exceptions.py:8 #, python-format msgid "No name is set." -msgstr "Il nome è impostato." +msgstr "Il none non è impostato." #. module: partner_firstname #: model:ir.model,name:partner_firstname.model_res_partner diff --git a/partner_firstname/i18n/nl_NL.po b/partner_firstname/i18n/nl_NL.po new file mode 100644 index 000000000..38b0123b4 --- /dev/null +++ b/partner_firstname/i18n/nl_NL.po @@ -0,0 +1,92 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_firstname +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-30 02:48+0000\n" +"PO-Revision-Date: 2017-06-30 02:48+0000\n" +"Last-Translator: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl_NL\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_firstname +#: sql_constraint:res.partner:0 +msgid "Contacts require a name." +msgstr "Relaties moeten een naam hebben" + +#. module: partner_firstname +#: code:addons/partner_firstname/exceptions.py:11 +#, python-format +msgid "Error(s) with partner %d's name." +msgstr "Fout(en) met de naam van relatie %d." + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_users_firstname +msgid "First name" +msgstr "Voornaam" + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_partner_lastname +#: model:ir.model.fields,field_description:partner_firstname.field_res_users_lastname +msgid "Last name" +msgstr "Achternaam" + +#. module: partner_firstname +#: code:addons/partner_firstname/exceptions.py:8 +#, python-format +msgid "No name is set." +msgstr "Geen naam ingesteld." + +#. module: partner_firstname +#: model:ir.model.fields,help:partner_firstname.field_base_config_settings_partner_names_order +msgid "Order to compose partner fullname" +msgstr "Volgorde om volledige naam van relatie samen te stellen" + +#. module: partner_firstname +#: model:ir.model,name:partner_firstname.model_res_partner +msgid "Partner" +msgstr "Relatie" + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_base_config_settings_partner_names_order +msgid "Partner names order" +msgstr "Relatienaam volgorde" + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_base_config_settings_partner_names_order_changed +msgid "Partner names order changed" +msgstr "Volgorde van Relatienamen gewijzigd" + +#. module: partner_firstname +#: model:ir.ui.view,arch_db:partner_firstname.view_general_configuration +msgid "Recalculate names" +msgstr "Hersorteer namen" + +#. module: partner_firstname +#: model:ir.ui.view,arch_db:partner_firstname.view_general_configuration +msgid "" +"Recalculate names for all partners. This process could take so much time if " +"there are more than 10,000 active partners" +msgstr "" +"Hersorteer de namen van alle relaties. Dit proces kan zeer veel tijd kosten " +"indien er meer dan 10.000 actieve relaties zijn." + +#. module: partner_firstname +#: model:ir.model,name:partner_firstname.model_res_users +msgid "Users" +msgstr "Gebruikers" + +#. module: partner_firstname +#: model:ir.model,name:partner_firstname.model_base_config_settings +msgid "base.config.settings" +msgstr "base.config.settings" diff --git a/partner_firstname/i18n/pt.po b/partner_firstname/i18n/pt.po new file mode 100644 index 000000000..9903c2323 --- /dev/null +++ b/partner_firstname/i18n/pt.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_firstname +# +# Translators: +# Tiago Baptista , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-14 03:37+0000\n" +"PO-Revision-Date: 2016-11-14 03:37+0000\n" +"Last-Translator: Tiago Baptista , 2016\n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_firstname +#: sql_constraint:res.partner:0 +msgid "Contacts require a name." +msgstr "" + +#. module: partner_firstname +#: code:addons/partner_firstname/exceptions.py:11 +#, python-format +msgid "Error(s) with partner %d's name." +msgstr "" + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_users_firstname +msgid "First name" +msgstr "" + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_partner_lastname +#: model:ir.model.fields,field_description:partner_firstname.field_res_users_lastname +msgid "Last name" +msgstr "" + +#. module: partner_firstname +#: code:addons/partner_firstname/exceptions.py:8 +#, python-format +msgid "No name is set." +msgstr "" + +#. module: partner_firstname +#: model:ir.model,name:partner_firstname.model_res_partner +msgid "Partner" +msgstr "Parceiro" + +#. module: partner_firstname +#: model:ir.model,name:partner_firstname.model_res_users +msgid "Users" +msgstr "" diff --git a/partner_firstname/i18n/pt_BR.po b/partner_firstname/i18n/pt_BR.po index e2d726e6b..9d766ae1d 100644 --- a/partner_firstname/i18n/pt_BR.po +++ b/partner_firstname/i18n/pt_BR.po @@ -3,21 +3,15 @@ # * partner_firstname # # Translators: -# Armando Vulcano Junior , 2015 -# Christophe CHAUVET , 2015 -# danimaribeiro , 2015 -# FIRST AUTHOR , 2014 -# Hans Henrik Gabelgaard , 2015 -# Paolo Valier, 2016 -# Rudolf Schnapka , 2016 +# Albert Vonpupp , 2016 msgid "" msgstr "" -"Project-Id-Version: partner-contact (9.0)\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-04-14 11:14+0000\n" -"PO-Revision-Date: 2016-04-05 10:01+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-partner-contact-9-0/language/pt_BR/)\n" +"POT-Creation-Date: 2016-12-03 03:23+0000\n" +"PO-Revision-Date: 2016-12-03 03:23+0000\n" +"Last-Translator: Albert Vonpupp , 2016\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" @@ -27,31 +21,31 @@ msgstr "" #. module: partner_firstname #: sql_constraint:res.partner:0 msgid "Contacts require a name." -msgstr "" +msgstr "Os contatos requerem um nome" #. module: partner_firstname #: code:addons/partner_firstname/exceptions.py:11 #, python-format msgid "Error(s) with partner %d's name." -msgstr "" +msgstr "Erro(s) com o nome do parceiro %d." #. module: partner_firstname #: model:ir.model.fields,field_description:partner_firstname.field_res_partner_firstname #: model:ir.model.fields,field_description:partner_firstname.field_res_users_firstname msgid "First name" -msgstr "" +msgstr "Nome" #. module: partner_firstname #: model:ir.model.fields,field_description:partner_firstname.field_res_partner_lastname #: model:ir.model.fields,field_description:partner_firstname.field_res_users_lastname msgid "Last name" -msgstr "" +msgstr "Sobrenome" #. module: partner_firstname #: code:addons/partner_firstname/exceptions.py:8 #, python-format msgid "No name is set." -msgstr "" +msgstr "O nome nao foi setado" #. module: partner_firstname #: model:ir.model,name:partner_firstname.model_res_partner @@ -61,4 +55,4 @@ msgstr "Parceiro" #. module: partner_firstname #: model:ir.model,name:partner_firstname.model_res_users msgid "Users" -msgstr "" +msgstr "Usuarios" diff --git a/partner_firstname/i18n/pt_PT.po b/partner_firstname/i18n/pt_PT.po new file mode 100644 index 000000000..4c69e080c --- /dev/null +++ b/partner_firstname/i18n/pt_PT.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_firstname +# +# Translators: +# Tiago Baptista , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-20 18:18+0000\n" +"PO-Revision-Date: 2017-01-20 18:18+0000\n" +"Last-Translator: Tiago Baptista , 2017\n" +"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/teams/23907/pt_PT/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_PT\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_firstname +#: sql_constraint:res.partner:0 +msgid "Contacts require a name." +msgstr "" + +#. module: partner_firstname +#: code:addons/partner_firstname/exceptions.py:11 +#, python-format +msgid "Error(s) with partner %d's name." +msgstr "" + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_users_firstname +msgid "First name" +msgstr "" + +#. module: partner_firstname +#: model:ir.model.fields,field_description:partner_firstname.field_res_partner_lastname +#: model:ir.model.fields,field_description:partner_firstname.field_res_users_lastname +msgid "Last name" +msgstr "" + +#. module: partner_firstname +#: code:addons/partner_firstname/exceptions.py:8 +#, python-format +msgid "No name is set." +msgstr "" + +#. module: partner_firstname +#: model:ir.model,name:partner_firstname.model_res_partner +msgid "Partner" +msgstr "Parceiro" + +#. module: partner_firstname +#: model:ir.model,name:partner_firstname.model_res_users +msgid "Users" +msgstr "" diff --git a/partner_firstname/models/res_partner.py b/partner_firstname/models/res_partner.py index d576e6729..e27997841 100644 --- a/partner_firstname/models/res_partner.py +++ b/partner_firstname/models/res_partner.py @@ -3,12 +3,10 @@ # © 2014 Agile Business Group () # © 2015 Grupo ESOC () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - import logging from odoo import api, fields, models from .. import exceptions - _logger = logging.getLogger(__name__) @@ -133,11 +131,20 @@ class ResPartner(models.Model): Removes leading, trailing and duplicated whitespace. """ - if name: - name = u" ".join(name.split(None)) - if comma: - name = name.replace(" ,", ",") - name = name.replace(", ", ",") + try: + name = u" ".join(name.split()) if name else name + except UnicodeDecodeError: + # with users coming from LDAP, name can be a str encoded as utf-8 + # this happens with ActiveDirectory for instance, and in that case + # we get a UnicodeDecodeError during the automatic ASCII -> Unicode + # conversion that Python does for us. + # In that case we need to manually decode the string to get a + # proper unicode string. + name = u' '.join(name.decode('utf-8').split()) if name else name + + if comma: + name = name.replace(" ,", ",") + name = name.replace(", ", ",") return name @api.model