Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Correct way to add translations to Odoo through .po files?

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
7 Respuestas
54814 Vistas
Avatar
Yenthe Van Ginneken (Mainframe Monkey)

Hi everybody

I've been trying and failing at translations for hours now. 
Could anybody tell me the correct way to add translations to Odoo through the .po files?
So far I've tried adding them to an existing .po file, made a new .po file, loaded translations again, removed the language again, hard refresh, ...

Under addons/l10n_be there is a file named fiscal_templates.xml and I'm trying to translate these records in Dutch:

    <record id="fiscal_position_template_1" model="account.fiscal.position.template">
            <field name="name">Régime National</field>
            <field name="chart_template_id" ref="l10nbe_chart_template"/>
    </record>
    <record id="fiscal_position_template_2" model="account.fiscal.position.template">
            <field name="name">Régime Extra-Communautaire</field>
            <field name="chart_template_id" ref="l10nbe_chart_template"/>
    </record>

    <record id="fiscal_position_template_3" model="account.fiscal.position.template">
            <field name="name">Régime Intra-Communautaire</field>
            <field name="chart_template_id" ref="l10nbe_chart_template"/>
    </record>

When the user his language is in Dutch I want them to be translated to Dutch too so I've added translations under l10n_be/i18n_extra/nl_BE.po and added a custom .po file (nl.po). Both files contain the same custom translation values:

# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * l10n_be
# Yenthe, 2015.
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-02-14 13:31+0000\n"
"PO-Revision-Date: 2013-03-14 16:41+0100\n"
"Last-Translator: Yenthe \n"
"Language-Team: \n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 1.5.4\n"

#. module: l10n_be
#: model:account.fiscal.position,name:l10n_be.fiscal_position_template_1
msgid "Régime National"
msgstr "Nationaal regime"

#. module: l10n_be
#: model:account.fiscal.position,name:l10n_be.fiscal_position_template_4
msgid "Régime National - Cocontractant"
msgstr "Nationaal regime - Medecontractant"

#. module: l10n_be
#: model:account.fiscal.position,name:l10n_be.fiscal_position_template_2
msgid "Régime Extra-Communautaire"
msgstr "Extra-communautair regime"

#. module: l10n_be
#: model:account.fiscal.position,name:l10n_be.fiscal_position_template_3
msgid "Régime Intra-Communautaire"
msgstr "Intra-Communautair regime"

#. module: l10n_be
#: model:account.fiscal.position.template,name:l10n_be.fiscal_position_template_1
msgid "Régime National"
msgstr "Nationaal regime"

#. module: l10n_be
#: model:account.fiscal.position.template,name:l10n_be.fiscal_position_template_4
msgid "Régime National - Cocontractant"
msgstr "Nationaal regime - Medecontractant"

#. module: l10n_be
#: model:account.fiscal.position.template,name:l10n_be.fiscal_position_template_2
msgid "Régime Extra-Communautaire"
msgstr "Extra-communautair regime"

#. module: l10n_be
#: model:account.fiscal.position.template,name:l10n_be.fiscal_position_template_3
msgid "Régime Intra-Communautaire"
msgstr "Intra-Communautair regime"

However when I look at the fiscal positions they are still in French and I cannot find my translations anywhere in Odoo.
I've tried -u and -i to update the module, I've tried adding a sequence to the __openerp__.py etcetc but nothing seems to load in the new translations

So, what am I missing / doing wrong and how do I get my custom translations in Odoo through the .po files?

With kind regards
Yenthe

4
Avatar
Descartar
gunnar

hi Yenthe. I want to add a translation to another l10n module but this does not even have template .po files. Do you happen to know how you can generate those (looks to me as this might be an automated process). https://www.odoo.com/forum/help-1/question/v8-how-can-i-generate-translation-po-files-for-a-module-72608

Mital Vaghani

Hello Yenthe Van Ginneken,

It's mandatory to have translation source terms must be available in .pot file?

Avatar
akram
Mejor respuesta

Follow below steps:

1) Go to

Settings ‣ Translations ‣ Import / Export ‣ Export Translations

leave the language to the default (new language/empty template) # DO NOT CHANGE THIS

select the PO File format

select your module

click Export and download the file

2) Add your translation terms in the downloaded file. i.e. msgstr "" section depending on your translation language

3) change the filename to language_iso_code.po

e.g. for portugese => pt.po

4) create i18n folder under your module and add po file in it.

5) restart Odoo

6) Go to:

Settings ‣ Translations ‣ Load a Translation

select translation language (in my eg. Portugese)

make sure you check this : Overwrite Existing Terms

click LOAD.

DONE

8
Avatar
Descartar
Chintan Modi-BrowseInfo

--update=all helped me. updating or restarting the server did not work for me. But still this is very helpful. Thanks Akram.

Avatar
Kalpana Hemnani
Mejor respuesta

Hello Yenthe,

No need to update module, you just need to load translation. go to Settings/ Translations / Load a Translation.

By clicking on that wizard select Language to translate and check Overwrite Existing Terms.

EDIT: You have to made field Translatable. add an attribute in fields translate=True.

Hope this helps.

0
Avatar
Descartar
Yenthe Van Ginneken (Mainframe Monkey)
Autor

Thanks for the answer Kalpana. I've tried this method but it doesn't work either, translations don't get updated and are not showing up anywhere in Odoo.

Yenthe Van Ginneken (Mainframe Monkey)
Autor

The Translatable you're talking about won't have any effect by the way? My records are defined in XML.

Pascal Tremblay

When we click on « Load a translation », it means that Odoo checks in all the addon files to search .po files of the chosen language and overwrite the existing terms in place for this language? Is it possible to load only ONE .po file at a time instead of ALL the .po files at a time???

Girija Subramaniyan

While clicking Overwrite existing comands getting error !

Error Msg:

File not imported due to format mismatch or a malformed file. (Valid formats are .csv, .po, .pot)

Technical Details:

there is no unique or exclusion constraint matching the ON CONFLICT specification

Avatar
Alp ŞEBER
Mejor respuesta

I was trying same during entire day and it was not showing all terms in translated language although everything were translated in PO file.

This morning, i went to settings, translations and translated terms and searched for an item (from old source, advanced) which had translation but not showing. 

I changed the translation, made the type view from object, saved and stop/start the server.

somehow, i guess this triggered the system to load the translation again since everything became translated. After i reverted back the field i broke with type to object.

it is weird but worked for me. 

0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Sitio web hecho con

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now