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: Alex Bukreev <bucreev@…> 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.):

  1. boost:: format before analysis translates string of formatting by call to static variable from a type "std:: string (*translate) (std:: string const)";
  1. All error messages in library are made only using boost:: format.
  1. 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 Steven Watanabe, 13 years ago

What error messages are you referring to? std::exception::what() is generally only useful for debugging.

comment:2 by anonymous, 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:

  1. boost:: graph (a file "read_graphviz_new.cpp") - the input file structure is broken
  2. boost:: program_options (a file "cmdline.cpp") - the user has entered an unknown option
  3. 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 anonymous, 12 years ago

Resolution: invalid
Severity: OptimizationCosmetic
Status: newclosed

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.

Note: See TracTickets for help on using tickets.