django-page-cms icon indicating copy to clipboard operation
django-page-cms copied to clipboard

Translations for the placeholder names

Open elky opened this issue 10 years ago • 2 comments

Hi there,

This is actually not bug, just a feature. Is it possible to add translations for the placeholder tag names? For example I would want to add russian translation for {% placeholder "My custom field" %} somewhere to make interface more readable for the client.

Thank you

elky avatar Nov 05 '13 18:11 elky

Hi,

There is no feature like this right now, but I imagine adding it shoudn't be too complicated. I just don't have time for this myself. You are welcome to try.

What I imagine as a "simple" solution:

  1. Find a way to inject the placeholder's name into the PO files for translation along with the rest of the template string.
  2. Display the translated string the the admin (easy part)

batiste avatar Nov 12 '13 10:11 batiste

What about using rosetta application, and use {% trans "name-here" %} ?

sunjoomoon avatar Mar 27 '16 23:03 sunjoomoon