I want to save my replacement strings (German, French, etc.) in a file format that is standard and available for use on Windows and Linux platforms. Thus, VC ++ resource files are immediately excluded.
What file format do others prefer to use to store these l10n resources? Two more functions that I need to support the format:
- The "key" for indexing l10n strings is itself an English string, not an enumeration.
- The format may contain a message digest, so I could check that there were no fakes.
My intention was to use a function (e.g. wstring foo = GetString(L"I am %1% years old");) that passes the functions boost :: format or boost :: wformat. Note that the key passed to GetString is a string, not an enumeration.
Obviously, I can use any XML format (or otherwise) that I would like to dream of. But I would rather use something standard.
source
share