Skip to content
Tcl Source Code View Ticket
Login

View Ticket

System error messages not internationalized

Closed / Fixed218345ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:56:29
OriginalBugID: 4032 Bug
Version: 8.2
SubmitDate: '2000-01-17'
LastModified: '2000-01-18'
Severity: SER
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Solaris
FixedDate: '2000-10-25'
ClosedDate: '2000-01-18'


Name:
Christopher Nelson

ReproducibleScript:
% prowish82
    % package require msgcat
    1.0
    % msgcat::mclocale
    c
    % msgcat::mclocale fr
    fr
    % open nofile r
    couldn't open "nofile": no such file or directory

ObservedBehavior:
The message from [open] failiner was in English when a French locale had been selected

DesiredBehavior:
Standard messages of this sort should be translated.  tclvars.n says:

errorCode
After an error has occurred, this variable will be set to hold
additional information about the error in a form that is easy to
process with programs.  errorCode consists of a Tcl list with one
or more elements.  The first element of the list identifies a
general class of errors, and determines the format of the rest of
the list.  The following formats for errorCode are used by the
Tcl core; individual applications may define additional formats.

ARITH code msg
This format is used when an arithmetic error occurs (e.g. an
attempt to divide by zero in the expr command).  Code
identifies the precise error and msg provides a human-
readable description of the error.  

"human-readable" text should be translated.



This is really not a bug, and not even a good idea.  Error message
should not be localized (this is an l10n request, not i18n) because
sometimes you parse them to get more info.  The programmer should
handle these and return a localized message if that is what is
desired, but the language should not reduce localization to this level
(it has to be consistent across the board). 
-- 01/18/2000 hobbs
welch Closed ticket [218345ffff]. [History diff]2000-10-26 08:20:07
dgp Open ticket [218345ffff]. [History diff]2001-04-19 02:49:29
dgp Closed ticket [218345ffff]. [History diff]2001-04-19 02:50:04
Log in (anonymous is fine) to add a comment.