Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Language Packs ...  resources not found
Previous Previous
 
Next Next
New Post 5/2/2007 4:26 AM
User is offline Jon Stranger
13 posts
10th Ranked


resources not found 
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 7:29 AM
User is offline Jon Stranger
13 posts
10th Ranked


Re: resources not found 

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 11:08 AM
User is offline Sebastian Leupold
13761 posts
www.deutschnetnuke.de
1st Ranked












Re: resources not found 

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.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 5/3/2007 12:17 AM
User is offline Jon Stranger
13 posts
10th Ranked


Re: resources not found 

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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Language Packs ...  resources not found
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com
Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com
TechNexxus
Business process and technology sourcing solutions delivering superior people, process and value. We have used, and continue to use, DNN successfully in numerous client projects to deliver exceptional value. We are proud to support the DNN team and community.
www.technexxus.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP