Developer forum

Forum » Development » Translate.RegPages

Translate.RegPages


Reply
Hello again ;)

I love the backend translation functionallity, but it does not work very well for my cusstom module :(
When I call "Dynamicweb.Backend.Translate.RegPages("/CustomModules/anyBlog/");" the system finds all documents and adds them in the Language.mdb - "Pages", but without the leading path.
So if i now call the "Translate.GetEditOnlineScript();" there is nothing, but if i then add the path in the "PagePath" Coloum it works!

Seems like a very simple problem to me, know the question is, is there another way to register the pages for translation (like adding them manually) or do i have to open a ticket for this one?

//greetings Josef

Replies

 
Nicolai Høeg Pedersen
Reply
Hi

2 things:
- The translate is not meant for custom development - it works of course, but everytime you get a new version of Language.mdb with a new release, it overwrites your addings for your custom module.
- Dynamicweb.Backend.Translate.RegPages is actually something we do not use anymore - we now have a UI that takes care of the detection and registration of new translate keys.

I know this is not a great help... Sorry.
 
Reply
Thanks for the quick reply!

This is a actually a great help, now I (and every other developer) knows not to bother with it.

Of course I could write everything in English so everyone can understand it ;)
But may I ask what you recommend regarding a translation of the module administration?

//greetings Josef
 
Nicolai Høeg Pedersen
Reply
I recommend using the built in aspx methods for translations - .resx files.

 

You must be logged in to post in the forum