Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,



Am working on the Globalization and Localisation...am retrieving data from database using a stored procedure like "username arranged meeting at 5:30"


from that arranged meeting text should be displayed based on culture. for now am calling different procedures for different culture.
can anyone give me suggestion how can I do by using single procedure and text should be displayed based on culture
Posted

1 solution

1.First you should have in your database tables, for each static text, an associated culture ID. So you have to update your DB tables with a new column that will store the culture ID (like 1 - for English, 2 - for German, 3 - for French, etc.).

2.Each stored procedure (SP) should have an additional field culture ID, then you have to use it in retrieving the associated static text for that culture.

3.Update your logic to use this new SPs.
 
Share this answer
 
v2
Comments
Member 10226004 3-Dec-14 6:30am    
your correct but can't we do using a key-value pair using resource files while writing a stored procedure
Raul Iloc 3-Dec-14 6:45am    
There are 2 approaches:
1)use the static texts in the database tables and in this case you can use the SPs;
2)use the static text in resource files and in this case SP make no sense!

PS: You could get some ideas regarding this 2nd approach from my next article:
http://www.codeproject.com/Articles/526827/MVC-Basic-Site-Step-Multilingual-Site-Skeleton

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900