Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i translate a message to an empty string with django

I am using django 1.27 with python 2.7.2.
I want a message to be translated to an empty string.

For example if i have this in my django.po file:

# .\path\file.py
msgid "word"
msgstr ""

So i want it to not show the 'word' when translating the page.

I have tried putting a space instead of "" but that did not help and i still get the original 'word' displayed.
How can i do that ?

like image 593
yossi Avatar asked Oct 17 '13 07:10

yossi


1 Answers

No, you can't do that.

django's translation process is based on the GNU gettext toolset. This a gettext bug many people have complained.

There is a workaround that you can translate them to invisible unicode characters like U+200B, U+180E, U+2063

like image 73
Leonardo.Z Avatar answered Sep 24 '22 17:09

Leonardo.Z