Help

How to translate fields' placeholder in forms?

Closed
Avatar
Yannick Vaucher

The question has been closed for reason: not relevant or out dated

by
Yannick Vaucher
on 03/05/2013 07:08:11

Some fields in form views contains a placeholder text which is visible if the field is empty. This permits you to have clean forms without to many labels.

However, I can't find a way to translate those texts.

It seems it is curently a bug:

lp:1112412

1 Comment
Avatar
Discard

This is working for me in Odoo 11.

#. module: my_custom_module

#: model:ir.ui.view,arch_db:my_custom_module.view_form_hr_employee

msgid "Employee name in Arabic"

msgstr "الاسم الموظف بالعربية"

1 Answer
2
Avatar
Naresh Soni (nch)
Best Answer

It's bug currently. The problem is that the placeholder is not checked while generating translation entries however it's checked while generating the view. so its a bug and need s a fix.

4 Comments
Avatar
Discard
Avatar
Yannick Vaucher
-

So, what should I put in po file if I want to do it by hand?

Avatar
Yannick Vaucher
-

I added the link to my bug report, if it affects you as well please say it.

Avatar
Olivier Dony (odo)
-

The bug has been fixed, and this comment shows how you can manually add them in PO files if you want.

Avatar
Yannick Vaucher
-

@odony Thanks for your reply I'm closing this question