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

Failure to translate website error's in Odoo 17

Suscribirse

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

Se marcó esta pregunta
architecturefromwebsiteTranslatemandatory-fieldtranslatefieldOdooV17
1959 Vistas
Avatar
Younes Veisi

In my Odoo 17 platform On-Premises, I set the language of the website module to English and Farsi and created a form in which some fields were required to be completed.

When I press the submit button, the error "Please fill in the form correctly" appears in English. is displayed In the Farsi language of the website, this phrase must be translated into Farsi, which does not happen.

I did the following steps for this, but it didn't work, and the error is still displayed in English:

1. First, I went to Settings > Translations > Export Translation and downloaded the .po file and translated the phrase, then went to the same path and imported the file. Then I restarted Odoo and went back to the website module form and saw that the error is still displayed in English.

2. I went to the server path in \odoo\addons\website\i18n and downloaded the .po file directly and then translated it, then I put the file in the same place and Odoo was reset again and then I returned to the form location, but still the error The necessary fields of the form were in English despite the fact that the language of the website is Farsi.

3. I went to Settings > Technical > User Interface > Views and opened the Home view with QWeb type. In the Architenture section, I wrote a JavaScript code and tried to change the form error to Farsi if the language of the website was Farsi. I did these things, but the error text was still in English. JavaScript code:

<script type="text/javascript">

                                document.addEventListener("DOMContentLoaded", function () {

                                    const dateInput = $('#o2r5a0csvptd');

                                    const currentLang = $("html").attr("lang");


                                    // بررسی زبان سایت

                                    if (currentLang === "fa-IR") {

                                        // فعال‌سازی تقویم شمسی

                                        dateInput.persianDatepicker({

                                            inline: false,

                                            format: "YYYY/MM/DD", // فرمت تاریخ شمسی

                                            calendarType: "persian",

                                            autoClose: true,

                                            observer: true,

                                            toolbox: {

                                                todayButton: { enabled: true } // دکمه امروز

                                            },

                                            navigator: {

                                                enabled: true,

                                                scroll: { enabled: true }

                                            },

                                            weekStartDay: 0, // شروع هفته از شنبه

                                            onSelect: function (unixDate) {

                                                // تبدیل تاریخ شمسی به میلادی

                                                const persianDateObj = new persianDate(unixDate);

                                                const gregorianDate = persianDateObj.toCalendar("gregorian").format("YYYY-MM-DD");

                                                dateInput.attr("data-gregorian", gregorianDate);

                                            }

                                        });

                                    } else {

                                        console.warn("Language is not Persian. No calendar applied.");

                                    }


                                    // ارسال تاریخ میلادی به بک‌اند

                                    const form = dateInput.closest("form");

                                    form.on("submit", function () {

                                        const selectedDate = dateInput.attr("data-gregorian"); // گرفتن تاریخ میلادی

                                        if (selectedDate) {

                                            dateInput.val(selectedDate); // مقدار میلادی را تنظیم کنید

                                        }

                                    });

                                });

                            </script>

Result: I did the above steps and progressed step by step, but I did not get the correct result and the error was still in English. I tried this with Arabic, French and Russian, but still the error is displayed in English.
I have even cleared Odoo's cache several times.
Please help if anyone knows why translations of the .po file are not applied or why the error text cannot be translated in any way.
This is an important and necessary issue and even a bug of Odoo itself, why despite the application of translations and even changes in parts of the views, the error texts are not translated into other languages.
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
Publicaciones relacionadas Respuestas Vistas Actividad
website payment method not working in OdooV17 Resuelto
website OdooV17 paymentprovider
Avatar
Avatar
Avatar
2
feb 25
2085
How do I remove the numbers from the slugs in my blog and blogpost? Resuelto
website
Avatar
Avatar
Avatar
Avatar
3
sept 25
2785
Login Website Resuelto
website
Avatar
3
oct 25
149265
500 Server Error after upgrading from 18.0 to 18.4 Odoo Online
website
Avatar
Avatar
1
sept 25
2145
Can't delete website Resuelto
website
Avatar
Avatar
Avatar
Avatar
Avatar
4
sept 25
7122
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