format string with translation