These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Getting Localized Content at Runtime
PostPosted: Wed Jun 21, 2006 5:11 pm 
Senior
Senior

Joined: Sat Sep 10, 2005 3:46 pm
Posts: 178
I am creating a globalized application and some of the dynamic content will be stored in a database. We were planning on storing the information for different locales in different database tables.

So if we provided English and Spanish translations of a product table we would have these 2 tables (English is the default):

Product
Product_es

Configuration resources would be responsible for indicating the correct database table from which dynamic content should be drawn.

My question is, how can I have NHibernate dynamically pull data from the correct table based on the user's culture? Is it possible to change the table for an object at runtime?

Is it even possible to work with Nhibernate and Localized data?

Thanks for any help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.