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  |  

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


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
MadCap Software, Inc.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Localize It! (L...  How to find where is defined a resource ?
Previous Previous
 
Next Next
New Post 3/26/2008 11:56 AM
User is offline Eric Piraux
19 posts
10th Ranked


How to find where is defined a resource ? 

I want to translate labels and texts that have no translation in the language pack that I use.

But the problem is to find which resource file and what resource name identifier are used. Especially when working on modules that are part of the administration

Here is an example: the User Log In is not translated in the fr-FR pack. What is the file where the resource must be translated ?

Setting the key "ShowMissingKeys" in web.config to true help to see missing entries, but not missing translation.

 

 

 
New Post 3/26/2008 5:51 PM
User is offline Brandon Haynes
297 posts
everysport.net
9th Ranked


Re: How to find where is defined a resource ? 

Hi Eric,

I'm not sure if this is the most efficient way to accomplish what you're looking for, but when I am looking for a particular localized resource string, I'll just do a textual search of all the *.resx files in the website.  Resx files are xml, and may be viewed and modified using a text editor.  For me, Visual Studio's "Find in Files" does the trick for me.

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post 3/27/2008 1:15 AM
User is offline Eric Piraux
19 posts
10th Ranked


Re: How to find where is defined a resource ? 

Indeed, it's what I currently do.

With that remark : when a translation is missing, it is obvious that the entry <data name="XXXXText" xml:space="preserve"> is not present in the localized (i.e. fr-FR) ressource file. So you've first to find in default resources files the text, copy the xml node to the related localized resource file, and then translate.

This is a really cumbersome process.

Unfortunately, the DNN language pack tool doesn't really help.

A lot of congratulations to the guy's that are translating resources files !

But the DNN team could take care that the core dnn resources are fully translated. The login page, register page.... all thess pages that are seen by our users....

 
New Post 3/27/2008 10:16 AM
User is offline Brandon Haynes
297 posts
everysport.net
9th Ranked


Re: How to find where is defined a resource ? 

Hi Eric,

I can see how the manual search would get cumbersome for you.

If the number of entries you're facing is formidable, it might not be a bad idea to put together a little utility that does this work for you.  It wouldn't take very much work at all, really:

1) Traverse the DNN website directories.  Load each defualt-language and target language .resx file into an XmlDocument

2) Compare all default-language resource names against the target-language names.  You could use XSL on a per-resource basis, or compile a global dictionary of these names. 

3) Maintain a list of instances where default-language strings do not have a corresponding target-language resource.  Output these strings, and the filename of the default language file in which they exist.

A little up-front work would probably yield a lot of time savings on the back end.  Plus it would be a good contribution to the DNN community! :)

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post 3/27/2008 1:00 PM
User is offline Alejandro Quiroga Alsina
52 posts
DNNCastellano.com
10th Ranked


Re: How to find where is defined a resource ? 

 Eric Piraux wrote

With that remark : when a translation is missing, it is obvious that the entry is not present in the localized (i.e. fr-FR) ressource file. So you've first to find in default resources files the text, copy the xml node to the related localized resource file, and then translate.

This is a really cumbersome process.

Eric, you don't need to go through that low level process. Yes, Brandon's recommenadation to look for the text resources using an ordinary text search is useful for detecting the files that contain the resources you need to translate.

But once you have the filenames targeted, I would suggest the following procedure:

  1. Go to Host - Languages - Language Editor
  2. From the tree on your left, select the filename you found to be incomplete.
  3. Select your locale from the Available Locales dropdown list.
  4. Select the Mode option: System
  5. Mark the Highlight Pending Translations checkbox
  6. Browse down the resources list looking for the ones having a red textbox.
  7. Fill in the correct values
  8. Click on Update at the bottom, and that's it.

Your locale resource file (*.fr-FR.resx) will be updated now, containing all the pertinent resource text entries, names and values.

You see, the DNN Language Editor has gone through significant improvements since version 4.5.x. I honestly find it very useful.

Please tell me if you could solve your problem using this suggestion, and if not, please give a detail of the features you would find useful in DNN's Language Editor.

Thank you for your feedback!

Saludos,

Alejandro.


Spanish Language Packs
Paquetes de Idioma en Español
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Localize It! (L...  How to find where is defined a resource ?
 


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.

 


WEBPC™ DotNetNuke® sites for Small Business
WEBPC™ are internet consultants and web hosters catering to the small business market.
www.webpc.biz
Perpetual Motion Interactive Systems Inc.
A solutions company specializing in Microsoft enterprise technologies.
www.perpetualmotion.ca
Icthus Technologies
Building Faith on the Internet
www.icthustech.com

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