3.1. strings and translation

hardcoded error strings meant for developers / debugging are in English.All other strings MUST be translateable, that is called as a gettext function. To achieve this, you do the following:

If your modules can be called as a standalone script you should add this to your main part:
if name == '__main__':
	import gettext
	_ = gettext.gettext()
    # ... now on to other stuff
	
If your module is invoked from within the GNUmed framework the translation function _() is automatically defined for you.

Now, whenever you use a string, do it like
print _("this will be automatically translated")
instead of
 print "this can't be translated and should thus not be written this way"