Developer forum

Forum » Development » Languages of Backend Areas

Languages of Backend Areas

Diogo Lino
Reply
Hello,

I'm working on a custom module backend and trying to get the list of configured website/area languages getting also the selected Area on the treeview of Pages. I think I can't use PageView.Current().AreaCollection because I'm not in the frontend but I can get directly from the database the list of Areas. But is there a way to get the currently selected area in the treeview when I'm on the custom module administration page?

Another problem: I think Translate.CurrentLanguageID gets the current language of the entire backend, configured on the Language.mdb file. As far as I know, Dynamicweb does not translate labels and control names on custom modules, right? This translate class is only for native modules, I think. How can I make translations in the backend for custom modules?

Thanks,
Diogo Lino



Replies

 
Vladimir
Reply
This post has been marked as an answer
Hi Diogo!

1) Curently selected area - Session("DW_Area")

2) You right. But you may use built in aspx methods for translations - Localizing ASP.NET Web Pages By Using Resources


Best regards,
Vladimir



Votes for this answer: 0
 
Diogo Lino
Reply

Ok, thanks!

 

Anyway, for keys that already exist on native modules I can use the Translate.GetWord() function to translate, I think.

Diogo
 

 

You must be logged in to post in the forum