added gettext/sprintf function for localization