fixed a bug in the format() method of the translation service