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  |  

telerik -- supercharge your DNN websites
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Language Packs ...  Localization in core Scheduler
Previous Previous
 
Next Next
New Post 2/5/2006 9:50 AM
User is offline Rodney Joyce
1583 posts
www.smart-thinker.com
5th Ranked




Localization in core Scheduler 
Hello

I am trying to localize the birthday email sent in my schedule item in the scheduler.
However - the DotNetNuke.Services.Localization.GetString() method uses the following line:

Dim objPortalSettings As PortalSettings = CType(HttpContext.Current.Items("PortalSettings"), PortalSettings)

Of course, you can't access the current context in the scheduler as it is not associated to a request - hence this falls over and you effectively cannot localize schedule content. Is this a correct assumption?
Is there any other way to handle localization in the scheduler with this in mind?

Here are some threads on similar topics:
http://forums.asp.net/1052637/ShowPost.aspx
http://forums.asp.net/846031/ShowPost.aspx

Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
New Post 2/6/2006 12:50 AM
User is offline Vicenç Masanas
1402 posts
www.disgrafic.com
6th Ranked








Re: Localization in core Scheduler 
Rodney,
you can try another overload for that method:
        Public Shared Function GetString(ByVal name As String, ByVal ResourceFileRoot As String, ByVal objPortalSettings As PortalSettings, ByVal strLanguage As String) As String

You should pass a valid PortalSettings object to avoid for obtaining it on the httpcontext. There a couple of overloads for that method take a look at them, but I think the above one could do the job for your situation.

Disgrafic.com
 
New Post 2/6/2006 1:45 AM
User is offline Rodney Joyce
1583 posts
www.smart-thinker.com
5th Ranked




Re: Localization in core Scheduler 
Thanks Vicenç - I started down this route, but this implies that I am looking at a particular portal - but I am not - it just needs to send a customizable message - I guess this is the problem - it needs to look at the default culture for that Portal - and yet the schedule is not necessarily related to a portal - perhaps I could chaneg the design of my schedule item to function by Portal instead...

I presume I can create PortalSettings without a current context? Just pass in the portal ID....

I'll look into it...

Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Language Packs ...  Localization in core Scheduler
 


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.

 


Powered by Adcuent®.Com
Adcuent® Consulting & Technology offers custom development web applications and hosting projects under the brand of Powered by Adcuent®.Com
www.adcuent.com
Easily Build DNN Solutions with XMod
XMod makes it easy to build news articles, house listings, custom feedback forms, product reviews and much more - without programming
www.DNNDev.com
Software Development and Integration with DNN
HNP Solutions focuses on the pragmatic use of technology and process to meet an organization's business objectives. HNP Solutions employs seasoned Enterprise and Solution Architects, Delivery Managers and QA & Business Leads. Our capabilities range from project assessments & recommendations, design & code reviews, to full program implementations. We also work with organizations in need of senior staff augmentation purposes in the areas of Enterprise and Solution architecture.
www.hnpsolutions.com

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