Last post Mar 16, 2009 04:00 AM by mai_JO
Mar 13, 2009 12:43 AM|Sidewinder2|LINK
We can add words of different languages to a resource file manually by typing them in the resource file.
But i need to add the words and their values from database to a resource file which makes me to create a web page for adding words and i can save it in the database and i can show my web page in different languages by choosing a drop down
list ,and i can read words of that particular language and i can add it to my resource file dynamically and use it , which altimately reduces the complication of multi language support.
Could you please give me an idea or a an example or a link for this?
Mar 15, 2009 10:04 AM|mai_JO|LINK
I did that by adding those values to the global resource e.x:
for Arabic Global Resource:
by adding the row:
MyName <%# Eval("ADesc") %>
MyName <%# Eval("EDesc") %>
or in code behind:
Mar 16, 2009 12:11 AM|Sidewinder2|LINK
Thanks For Ur Reply!,
Could U Please explain me little bit more? .
Mar 16, 2009 04:00 AM|mai_JO|LINK
If the control that you want to bind is in a GridView or DataList,
normally you fill the text like this:
Where EDesc,ADesc is the Column's Name in Databse right?
now you want to Change the Column's name according to the site language
in the GlobalResource.resx file you add:
Lable6Txt <%# Eval("EDesc") %>
in the GlobalResource.ar-JO.resx file you add:
Lable6Txt <%# Eval("ADesc") %>
Hope this Helps you to understand this issue!