Opened 16 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: |
Description
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 16 years ago by
Milestone: | → 0.5 |
---|
comment:2 Changed 16 years ago by
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:
messages_en.js
dojo.messages.valid.missing = "* The value is required"; dojo.messages.valid.int = "* A numeric value is required";
then do:
dojo.require("dojo.messages.messages_en.js");
to import the messages -
support for i18n and ability to override individual messages throughout an application is then trivial...
Cheers, Ron
comment:3 Changed 16 years ago by
Milestone: | 0.5 → 0.7 |
---|
comment:5 Changed 15 years ago by
Cc: | Douglas Hays added |
---|---|
Owner: | changed from anonymous to Adam Peller |
comment:6 Changed 15 years ago by
Component: | Widgets → Dijit |
---|
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 15 years ago by
Milestone: | 1.0 → 2.0 |
---|
comment:9 Changed 14 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
these messages are gradually being phased out, but strings in markup for now are just assumed to be localized on the server.
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.