[system] Repository:
ViewVC logotype

Revision 3370


Jump to revision: Previous Next
Author: dpvc
Date: Tue Jul 12 22:29:53 2005 UTC (14 years, 4 months ago)
Log Message:
A first pass at making parser error messages localizable.  The
Context()->{error}{msg} hash can be used to specify translations of
the standard messages.  For example,

    Context()->{error}{msg}{'Division by zero'} = "Don't divide by zero, dude!";
    Context()->{error}{msg}{'Function '%s' has too many inputs'} =
        "You passed too many arguments to '%s'";

(I didn't translate into another language, here, but you could do
that, too.)

The msg hash could also be used within answer checkers to make certain
answer messages more appropriate for the given type of expected answer.

Changed paths:

Path Details
Directorytrunk/pg/lib/Parser/BOP/equality.pm modified , text changed
Directorytrunk/pg/lib/Parser/BOP/undefined.pm modified , text changed
Directorytrunk/pg/lib/Parser/BOP/underscore.pm modified , text changed
Directorytrunk/pg/lib/Parser/BOP/union.pm modified , text changed
Directorytrunk/pg/lib/Parser/BOP.pm modified , text changed
Directorytrunk/pg/lib/Parser/Context/Variables.pm modified , text changed
Directorytrunk/pg/lib/Parser/Context.pm modified , text changed
Directorytrunk/pg/lib/Parser/Differentiation.pm modified , text changed
Directorytrunk/pg/lib/Parser/Function/complex.pm modified , text changed
Directorytrunk/pg/lib/Parser/Function/hyperbolic.pm modified , text changed
Directorytrunk/pg/lib/Parser/Function/numeric.pm modified , text changed
Directorytrunk/pg/lib/Parser/Function/numeric2.pm modified , text changed
Directorytrunk/pg/lib/Parser/Function/trig.pm modified , text changed
Directorytrunk/pg/lib/Parser/Function/undefined.pm modified , text changed
Directorytrunk/pg/lib/Parser/Function/vector.pm modified , text changed
Directorytrunk/pg/lib/Parser/Function.pm modified , text changed
Directorytrunk/pg/lib/Parser/Item.pm modified , text changed
Directorytrunk/pg/lib/Parser/Legacy/LimitedNumeric.pm modified , text changed
Directorytrunk/pg/lib/Parser/Legacy/NumberWithUnits.pm modified , text changed
Directorytrunk/pg/lib/Parser/List/AbsoluteValue.pm modified , text changed
Directorytrunk/pg/lib/Parser/List.pm modified , text changed
Directorytrunk/pg/lib/Parser/UOP/undefined.pm modified , text changed
Directorytrunk/pg/lib/Parser/UOP.pm modified , text changed
Directorytrunk/pg/lib/Parser/Value.pm modified , text changed
Directorytrunk/pg/lib/Parser/Variable.pm modified , text changed
Directorytrunk/pg/lib/Parser.pm modified , text changed
Directorytrunk/pg/lib/Value/AnswerChecker.pm modified , text changed
Directorytrunk/pg/lib/Value/Complex.pm modified , text changed
Directorytrunk/pg/lib/Value/Context/Data.pm modified , text changed
Directorytrunk/pg/lib/Value/Context.pm modified , text changed
Directorytrunk/pg/lib/Value/Formula.pm modified , text changed
Directorytrunk/pg/lib/Value/Infinity.pm modified , text changed
Directorytrunk/pg/lib/Value/Interval.pm modified , text changed
Directorytrunk/pg/lib/Value/Matrix.pm modified , text changed
Directorytrunk/pg/lib/Value/Point.pm modified , text changed
Directorytrunk/pg/lib/Value/Real.pm modified , text changed
Directorytrunk/pg/lib/Value/String.pm modified , text changed
Directorytrunk/pg/lib/Value/Vector.pm modified , text changed
Directorytrunk/pg/lib/Value.pm modified , text changed

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9