[Dojo-interest] How to make a build containing a customized widget with i18n support

Forest Zhu forzhu at gmail.com
Tue Jan 16 03:52:46 MST 2007


Hi,

I have created a customized widget with i18n support. The folder structure
of the widget is like:

\js
   \dojo
      ...
   \mycompany
         \widgets     (This folder  contains a mywidget.js   file)
               \nls
                  \en
                  \fr
                  ...

The widget and its i18n mechanism works fine,  then I tried to make a build
that incorporate the widget.

The build profile is like:

var dependencies = [
    ...
    "mycompany.widget.MyWidget"
];

dependencies.prefixes = [
   ["mycompany", "../mycompany"]
];

load("getDependencyList.js");

The build process looks success and generate no error messages.

I found the i18n messages of the widget is not merged into the nls files
beneath dojo/nls folder.

The problem is, when opening the html file in the browser that invoke
mywidget, an error message of "no loaded module named '
mycompany.widget.nls.MyWidget' " appears, and the widget will not be
rendered.

I havn't found any message about this topic in the dojo wiki. Can anyone
give me a hint?

Thanks and best regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070116/65044585/attachment.html


More information about the Dojo-interest mailing list