Opened 13 years ago
Closed 12 years ago
#3744 closed Feature Requests (invalid)
Possibility of output of an error message on other languages (not English).
Reported by: | Owned by: | ||
---|---|---|---|
Milestone: | Boost 1.42.0 | Component: | None |
Version: | Boost 1.41.0 | Severity: | Cosmetic |
Keywords: | Cc: |
Description
For the purpose of a possibility of output of an error message on other languages (not English), I offer the following (similarly as it is made in library Qt.):
- boost:: format before analysis translates string of formatting by call to static variable from a type "std:: string (*translate) (std:: string const)";
- All error messages in library are made only using boost:: format.
- It is desirable to generate at library translation a file suitable for translation (For example compatible to files *.ts libraries Qt) or at least to describe all strings necessary for translation in the documentation for errors.
Change History (3)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
It not absolutely so. Certainly the most part of exceptions appears at programming errors (we will not consider them). However in a number of libraries (for example:
- boost:: graph (a file "read_graphviz_new.cpp") - the input file structure is broken
- boost:: program_options (a file "cmdline.cpp") - the user has entered an unknown option
- boost:: property_tree (a file "info_parser.hpp") not probably to open a file
) exceptions arise not because of errors of the programmer, and because of errors in input data. In this case it is desirable for user of the program to produce the message on a native language. As it to achieve with the minimum changes in libraries, and not so complicating users of library, here the purpose of my sentence. Probably it can achieve more simple resources, in this case let's realise them.
comment:3 by , 12 years ago
Resolution: | → invalid |
---|---|
Severity: | Optimization → Cosmetic |
Status: | new → closed |
This kind of request must be sent to the Boost ML, not the trac.
I propose to close this ticket as this is more related to a new internationalization library.
What error messages are you referring to? std::exception::what() is generally only useful for debugging.