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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsLanguage PacksLanguage PacksLocalization of data in databaseLocalization of data in database
Previous
 
Next
New Post
2/9/2007 3:49 AM
 

Hi,
i have a database with products in it. I want to display the product names in the correct locale. When in dnn dutch is selected i want to display the dutch name...etc. Im creating my own modules and I want to show all the product names in a dropdownbox. What changes do I have to make in my database? how does my control reckognise the selected locale? (I tryed to add a locale column to the db and when filling the dropdownbox adding     [locale] = @locale    to the stored procedure but that didnt work) 

If anyone could answer these questions or give me a good example id be very happy :)

Regards Paul

 
New Post
2/9/2007 11:12 AM
 

One way of doing this is to create a name record for each of your products for each locale. You can then have a locale value in your table.

You can then use System.Threading.Thread.CurrentThread.CurrentCulture.Name to get the name of the current locale.  You then can run your query based on that.  I would reccomend in your stored procedure running the query and if nothing is found defaulting it to some language, just incase you don't have localized content for the specific language.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsLanguage PacksLanguage PacksLocalization of data in databaseLocalization of data in database


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