Odoo Help


date format with month name translated

Igor Jogla
on 2/1/14, 7:51 AM 3,124 views


I need to show date in Latvian with month name like 2014 g. 25, Janvāris. I have set a date format for Latvian as %Y g. %d, %B. And in reports I use formatLang(o.date_order,date = True). But in result I have 2014 g. 25, January. So the date format is correct for Latvian but month name is not translated to Latvian and shown in English. How to solve this issue?

hey, have you found the solution for this? and btw, how did you set the date format for Latvian?

Rendy Rinaldo
on 9/15/14, 6:11 AM
Abhishek H Menon
On 2/3/14, 3:27 AM

Most of our script supports english language that you know, So for you solution you have to set a dictionary for Latvian months as values and the month numbers as keys, Pick the values from the dictionary you set, as the key is availble, and append it with ireport results

Thank you, Abhishek. You are right that main language is English but in most cases it is possible to use translations. I don't understand why translation do not work in this case. I already use months numbers as keys but I think this is not so nice way. The Date format is a very basic function and should work with translations in a normal way.

Igor Jogla
on 2/3/14, 11:54 AM



| 5 3 6
Jakarta, Indonesia
On 9/16/14, 5:15 AM

Igor, AFAIK, wrt Day/Month name translation in reports, you need to develop the translation functionality yourself or seek help from someone who had developed that module in your language.




| 5 4 6
Zagreb | Karlovac, Croatia

there is only 10 kind of people the ones that understand binary ... and others

On 9/16/14, 3:16 AM

Did you check actual translation for latvian languages? 
does the po file in folder i18n contain valid translation for months?

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/1/14, 7:51 AM
Seen: 3124 times
Last updated: 3/16/15, 8:10 AM