I would like to determine if there is a translation into the current language for a given string. I would like to write something like:
if not translation_available("my string"): log_warning_somewhere()
I did not find anything suitable. The ugettext function simply returns the translation or the source string (if the translation is not available), but without any option to determine if the translation exists or not.
Thanks.
python django internationalization
pcv
source share