Solved

Globalization and the Database

Posted on 2013-01-09
2
185 Views
Last Modified: 2013-02-07
So we have globalization working and can pull content out of the resource files like

@Resources.resoucefile.Hat  

I have things in the database that I would also like to be able translate using the resource files. Is there a way to store @Resources.resoucefile.Hat  in the database and have it pull from the resource files.  

So @Resources.resoucefile.Hat   would display  Hat.  I'm looping through database entries and would like to be able to display them in language of choice.

Thanks
0
Comment
Question by:Josh_Blade
2 Comments
 
LVL 19

Accepted Solution

by:
Manoj Patil earned 500 total points
ID: 38762246
0
 
LVL 23

Expert Comment

by:Roopesh Reddy
ID: 38767538
Hi,

Instead, you can store the Resource Keys in the database and pull them when needed and convert the string based on the language!

I suggest you to design a Resource table in database which has the key and values in the supported languages

Database Table will be like this -

Resource Key | Eng | Turkish | Arab ....

We are using this design in our projects!

Hope it helps u...
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now