Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsLanguage PacksLanguage Packsresources not foundresources not found
Previous
 
Next
New Post
5/2/2007 7:26 AM
 
This is my first attempt at creating a DNN module with localization, so apols if I have missed something obvious.


My user control (ViewDirectory.ascx) has similar code to the Survey module - i.e:

@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx"






My resource file (ViewDirectory.ascx.resx) includes the following:


Optionally enter a mask to filter the word list.


Mask (optional):


But the generated span for the help text is empty and the link on the help image has no alt text. Also, if I do not include the Text on the dnn:Label then no label text is generated.

So the resx file is clearly not being found. I have read the Localization Guide but did not see that I needed any additional code or module configuration, but would be grateful if anyone could point me in the right direction.

Jon
 
New Post
5/2/2007 10:29 AM
 

Weird text editor on this forum! Managed to destroy most of my previous post. Here's another attempt using the basic text box editor for safety!

This is my first attempt at creating a DNN module with localization, so apols if I have missed something obvious.

My user control (ViewDirectory.ascx) has similar code to the Survey module - i.e:

@ Register TagPrefixTagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<dnn:label id="plMask" runat="server" controlname="Mask" text="Mask (optional):"></dnn:label>
<asp:textbox id="Mask" runat="server" columns="20"></asp:textbox>

My resource file (ViewDirectory.ascx.resx) includes the following:

<data name="plMask.Help" xml:space="preserve">
<value>Optionally enter a mask to filter the word list.</value>
</data>
<data name="plMask.Text" xml:space="preserve">
<value>Mask (optional):</value>
</data>

But the generated span for the help text is empty and the link on the help image has no alt text.
Also, if I do not include the Text on the dnn:Label then no label text is generated.

So the resx file is clearly not being found. I have read the Localization Guide but did not see that I
needed any additional code or module configuration, but would be grateful if anyone could point me in the right direction.

Jon

 
New Post
5/2/2007 2:08 PM
 

did you place ViewDirectory.ascx.resx in app_localResources subdirectory?

Have a look at the module developers localization guide available from the documetation page here on dnn.com.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/3/2007 3:17 AM
 

Thanks for the reply. I have since created a Settings control with localization and this works perfectly, so the basic method and file location is clearly OK. The only difference between my ViewDictionary and Settings controls is that the latter is still based on the traditional 2-column table layout (since it obviously needs to match generic settings) whereas in the ViewDictionary control I have a div-based layout with each textbox below its corresponding label. I haven't checked the LabelControl code yet, but I can't see how HTML layout would determine what was generated.

Jon

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsLanguage PacksLanguage Packsresources not foundresources not found


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out