def translate(self, s):
        """This is just "sample code", but you get the idea."""
        print "What language would you like to translate s to?"
        return "%s: %s" % (raw_input(), s)
This is just "sample code", but you get the idea.
recipes/Python/363784_LazyGettext/recipe-363784.py