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
Developer forum
E-mail notifications
Translate.RegPages
Posted on 12/04/2010 17:48:45
Replies
Nicolai Høeg Pedersen
Posted on 12/04/2010 21:01:59
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.
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.
Posted on 12/04/2010 21:11:16
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
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
Posted on 12/04/2010 22:25:15
I recommend using the built in aspx methods for translations - .resx files.
You must be logged in to post in the forum