Opened 15 years ago

Closed 14 years ago

#911 closed enhancement (wontfix)

Add Message catalog support for input validation ( and other )

Reported by: anonymous Owned by: Adam Peller
Priority: high Milestone: 1.3
Component: Dijit Version: 0.3
Keywords: widgets localization Cc: Douglas Hays
Blocked By: Blocking:


Hi, It would be great if one could define a message catalog for use with input validation widgets and other widgets that show text. Cheers, Ron

Change History (9)

comment:1 Changed 15 years ago by dylan

Milestone: 0.5

could you please be more explicit in defining what it is that you want done here. I'm not sure what is meant by "message catalog" in this context.

comment:2 Changed 15 years ago by anonymous

Currently validation messages are defined either per widget (so one can create a new widget with a default validation/missing- message) or per instance ( as a widget instanciation parameter ).

However, It would be usefull if the messages could be defined elsewhere and be loaded as key->value pairs:

Just an idea for implementation: something like:


dojo.messages.valid.missing = "* The value is required"; = "* A numeric value is required";

then do:


to import the messages -

support for i18n and ability to override individual messages throughout an application is then trivial...

Cheers, Ron

comment:3 Changed 15 years ago by anonymous

Milestone: 0.50.7

comment:4 Changed 15 years ago by dylan

Milestone: 0.70.6

Milestone 0.7 deleted

comment:5 Changed 15 years ago by Adam Peller

Cc: Douglas Hays added
Owner: changed from anonymous to Adam Peller

comment:6 Changed 14 years ago by Adam Peller

Component: WidgetsDijit

I think this is basically the feature covered by our i18n system, which allows such locale-sensitive info to be placed under an nls/ subdirectory, then referenced by widgets using dojo.requireLocalization()

There is a higher-level issue here which relates to how these messages might get overridden at runtime or by markup (in a localizable way) so I'm leaving this open.

comment:7 Changed 14 years ago by Adam Peller

Milestone: 1.02.0

comment:8 Changed 14 years ago by alex

Milestone: 2.01.3

Milestone 2.0 deleted

comment:9 Changed 14 years ago by Adam Peller

Resolution: wontfix
Status: newclosed

these messages are gradually being phased out, but strings in markup for now are just assumed to be localized on the server.

Note: See TracTickets for help on using tickets.