#!/usr/bin/env python import gettext import sys if len(sys.argv) == 3 : try: if sys.argv[2] == "Teachers_Share": print "Professorat" sys.exit(0) if sys.argv[2] == "Groups_Share": print "Compartit_de_grups" sys.exit(0) t = gettext.translation('xdg-user-dirs',languages=[sys.argv[1]]) print t.gettext(sys.argv[2]) except Exception as e: print sys.argv[2]