Say I have a huge amount of code and have different kinds of error messages. For these, I want to have a separate place where I store error codes and error messages. For example, for an error that occured because the program could not open a file I store:
F001 "Can not open a file." "The same error message in another language" "The same error message in a third language"
What is the best way to store different kinds of error messages and codes in a file for C++ programmers in order to use them quickly and easily in a programme?
FYI I am working with the Qt lib.