Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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 PacksLocalization 4.x.x and Visual Web ExpressLocalization 4.x.x and Visual Web Express
Previous
 
Next
New Post
3/22/2006 8:35 PM
 

I have been trying to use the resourcekey attribute on my controls and I can not get anything to render from the local or global resource files.  I have stripped my "moduleMain.ascx.resx" file of all the extra info, copied DNN Template.resx, created new ones etc.  Nothing.  I have tried to remove the Text attribute from the controls, but the text attribute in a different order.  I have tried lots of things. 

My modules are all "Partial Class ....."  not "Public Class ..." and they all inherit a custom class that "Inherits Entities.Modules.PortalModuleBase"

Any attempts to use the "Resource:WebResource, ControlName" causes the module to say that there are multiple controls with the same name in the error message.

Shouldn't the skinning engine take care of all this? 

Any ideas?

 
New Post
3/23/2006 12:24 PM
 
DNN does not use the same engine as asp.net 2.0 for localization. I think (correct me if wrong) you're trying to use the same sintax used in asp.net 2.0 for accessing resources. This will not work on dnn. Take a look at the Localization documents on the documentation package to learn how we use a slightly different approach. You may also want to take a look at the just released Module Localization Guide.

Vicenç Masanas
Banyoles, Girona - Spain

Disgrafic.com    PSD to DNN
 
New Post
3/27/2006 3:16 PM
 

vmasanas,

Thanks for the comments, time and work on the project.  I reviewed both papers on localization.  I can't get the JIT compiler to use the resource files either on the remote or local server.  What I have is this...

Public mainModule (I tried partial as well)
Inherits MyFormsClass

MyFormsClass
Inherits PortalModuleBase

In the mainModule.ascx file I have a label control

<asp:Label id=FirstName resourcekey="FirstName" CssClass="LabelHeader" runat="server"></asp:Label>

My DesktopModules/myModule/App_LocalResources/mainModule.ascx.resx has a key:FirstName and value: Text:First Name.

The label will not render the text.  I have tried a lot of variations.  I tried inheriting from usercontrol and pagebase just to test, I have set AutoEventWireup to true and false.  Nothing.

I can use the core clientapi to add a confirm to a link and that works. 

I won't get the VS2005 for a couple of weeks, so I won't be able to compile it and try it that route until then.

Tell me if you need anything else.

Thanks again for all the effort.  I plan on applying for to a team in the near future after I can wrap up this current project.  The project requires a lot of localization and is running multi-lingual.  Do you you know of any web services that provide translations?

Thanks, Roman

 
New Post
3/28/2006 3:16 AM
 
Roman,
you're missing a point with the resourcekeys: we don't use the same schema as asp.net 2.0 does. DNN keys usually take the form of: Name.Extension
For example: Help.Text or cmdEdit.Text

Read again the doc and you'll see this is mentioned there. Also you should take a look at any of the core modules and verify how it's done there.

Vicenç Masanas
Banyoles, Girona - Spain

Disgrafic.com    PSD to DNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsLanguage PacksLanguage PacksLocalization 4.x.x and Visual Web ExpressLocalization 4.x.x and Visual Web Express


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