Is it possible to get msgid from msgstr?
Suppose I have
msgid "Table"
msgstr "Tisch"
If active language is German is there any function to execute inverse_ugettext('Tisch') -> Table
?
No, it's not trivially possible. At least not with the django i18n implementation (which uses python's gettext).
If you really need this, you'll have to manually implement it somehow (the gettext source might be a useful starting place).
If speed is not critical here (eg: it's a very infrequent operation), you might want to parse the .po
files, which are a lot simpler to parse, and find the reverse there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With