Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Language File Generation in OpenERP 7

By
Ayyappan
on 5/27/14, 2:48 AM 718 views

I have cretaed new addon for reporting with in that just created report folder and .py files to call default account template .rml file(RML path is addons/account/account_print_invoice.rml). After that installed the addon and generated the po files for Dutch language from Setting > Translation> Import/Export > Export Translation. I didn't find any contents for translation in that po file. My .po file look like this:

# Translation of OpenERP Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-27 06:11+0000\n"
"PO-Revision-Date: 2014-05-27 06:11+0000\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"

Please help me to generate language file.

 

0

Ludo - Neobis

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 5/27/14, 11:05 AM

Have you included the imports for all the files and given all the strings you wanted to translate the underscore?

So:

from openerp.tools.translate import _

AND:

my_string = "translate me"

replaced with:

my_string = _("translate me")

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/27/14, 2:48 AM
Seen: 718 times
Last updated: 3/16/15, 8:10 AM