internationalization - Module Localization in DNN -


i don't know localization process in dnn. question how can localize new module?

is possible include localization files every module separately? solutions can come with?

localization of module pretty easy dotnetnuke.

wherever .ascx (view) file is, app_localresources folder should accompany it, on same level. there should corresponding .ascx.resx file in folder.

view.ascx app_localresources - view.ascx.resx 

once have structure in module. dnn pick file immediately.

to use resource strings in resx. simple tack on resourcekey property end of asp controls. e.g.

<asp:label id="lblexample" runat="server" resourcekey="lblexample" /> 

you should have lblexample.text in resx file matches label. note adds .text automatically.

if it's not showing up, there few things check

  1. localresourcefile property in code. location pointing to?
  2. set showmissingkeys=true in web.config , you'll see resource strings you're missing.

Comments