如何使用静态文本调用单个过程应该根据.net中的文化显示 [英] how to call a single procedure with static text should be displayed based on a culture in .net

查看:58
本文介绍了如何使用静态文本调用单个过程应该根据.net中的文化显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述









正在进行全球化和本地化...正在检索数据从数据库使用存储过程,如用户安排在5:30开会





来自该安排的会议文本应基于文化。现在我正在为不同的文化调用不同的程序。

任何人都可以给我建议如何使用单个程序和文本应该根据文化显示

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

推荐答案

1.首先,对于每个静态文本,您应该在数据库表中包含关联的区域性ID。因此,您必须使用将存储文化ID的新列更新您的数据库表(例如1 - 表示英语,2表示德语,3表示法语等)。



2.每个存储过程(SP)应该有一个额外的字段文化ID,然后你必须使用它来检索该文化的相关静态文本。



3.更新你的逻辑以使用这个新的SP。
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.


这篇关于如何使用静态文本调用单个过程应该根据.net中的文化显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆