I’m working on project that the result is variable and multi-language then I decided use erros codes so I can get the error message in the corresponding language by error code.
the database that I’m using is sql ce
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want the error messages to be shared by other applications (perhaps written in other languages) that use the same database: Use the database.
If you want to provide an interface whereby someone can maintain the list of errors for different languages: Use the database.
Otherwise use resources strings. It’s the normal .NET way, so it’ll be more familiar to newcomers to the project, and you’ve got lots of methods for picking the right version for a given language already there.