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

HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...How to find where is defined a resource ?How to find where is defined a resource ?
Previous
 
Next
New Post
3/26/2008 2:56 PM
 

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 8:51 PM
 

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 4:15 AM
 

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 1:16 PM
 

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 4:00 PM
 

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.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...How to find where is defined a resource ?How to find where is defined a resource ?


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