Added the expected functionality to gettext making it a factory and apply the traslations