[英]integrating Ux.locale.Manager extension into MVC application using Castle MonoRail
I am trying to integrate the Ux.locale.Manager ( https://github.com/mitchellsimoens/Ux.locale.Manager ) extension into our MVC application which uses Castle MonoRail. 我正在尝试将Ux.locale.Manager( https://github.com/mitchellsimoens/Ux.locale.Manager )扩展集成到我们的使用Castle MonoRail的MVC应用程序中。
I am experiencing difficulties in trying to get the extension to work. 我在尝试扩展工作方面遇到了困难。
Is this because Ext JS/Sencha MVC is incompatible with MonoRail MVC? 这是因为Ext JS / Sencha MVC与MonoRail MVC不兼容吗? I need to know this for if that is the case then I will need to find another method to localize/internationalize our application (which uses Ext JS for forms, grids, etc.).
我需要知道这一点,如果真是这样,那么我将需要找到另一种方法来本地化/国际化我们的应用程序(将Ext JS用于表单,网格等)。
Thanks in advance for an answer. 预先感谢您的答复。
I was finally able to integrate the extension succesfully into my (Castle Monorail) MVC application. 我终于能够成功地将扩展集成到我的(Castle Monorail)MVC应用程序中。 One needs to make the tpl value in ajaxConfig refer to a method in a controller that returns the json locale values instead of making it refer to the json locale files.
需要使ajaxConfig中的tpl值引用控制器中的一种方法,该方法返回json语言环境值,而不是使其引用json语言环境文件。 I did not have to alter any code in the Manager.js file.
我不必更改Manager.js文件中的任何代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.