天天看點

Dnn文檔中關于Localization錯誤

今天,為了在dnn中實作Localization,可讓我費了不少功夫。如果在子產品級别上顯示Localization倒是沒有什麼難的。由于我們開發的那個子產品功能比較複雜,是以将其子功能劃分到user control中來實作。現在要做的是對user control實作localization。

參考dnn的文檔,如下:

Normal DNN controls will inherit from PortalModuleBase, which has built-in support

for localization. If the module contains any extra user controls they should inherit from

UserControlBase to be able to use the same localization features. There is also a

PageBase class that can be used to provide localization to any extra aspx page the

module contains.

可是UserControlBase并不能幫助我們在自定義控件上實作Localization,經過查找,發現了一個ModuleUserControlBase,可以用來來實作Localization.

繼續閱讀