Add support for string formatting.

If values is not None then the resulting string is formatted.
Change translation file format

JSON files can't handle multiline keys and values well enough.