SSRS的国际化

扫码查看
本文介绍了SSRS的国际化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

处理SSRS中的普通文本翻译的最佳方法是什么.例如,如果我有一个显示内容网格的报告,那么假设报告的区域性设置正确,最好的方法就是显示该网格标题的正确翻译.

What's the best way to handle translations for stock text in a SSRS. For instance - if I have a report that shows a grid of contents what's the best way to have the correct translation for the header of that grid show up, assuming the culture of the report is set correctly.

采用另一种方式-是否可以在SSRS报表中使用资源,还是我坚持将所有文本存储在数据库中并进行查询?

Put another way - is it possible to do resources in a SSRS report, or am I stuck with storing all that text in the database and querying for it?

推荐答案

据我所知,还没有办法对报告进行本地化(意思是自动翻译字符串文字)...

AS far as I know, there is no way to localize a report (meaning automating the translation of string litterals)...

就像您说的那样,您基本上必须使用User!Language全局变量来捕获用户的设置,然后使用该全局变量从数据库中检索适当的字符串...

Like you said,you basically have to use the User!Language global variable to catch the user's settings and then use that to retrieve the appropriate strings from the DB...

但是,您可以根据用户区域设置调整货币/数字/日期字段的显示.也可以更改报表查看器的界面以匹配用户的语言.

However, you can adapt the display of currency/numeric/date fields according to the user locale. Also possible is changing the interface of the Report Viewer to match your user's langage.

以下是一些链接,提供了有关如何适应区域设置的提示:

Here are a few links giving tips on how to adapt the locale:

http://www.ssw.com.au/Ssw/Standards/Rules/RulesToBetterSQLReportingServices.aspx#LanguageSetting

报表查看器的语言包:

http://www.microsoft.com/downloads/details.aspx?displaylang=zh-CN&FamilyID=e3d3071b-d919-4ff9-9696-c11d312a36a0

这篇关于SSRS的国际化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 13:04
查看更多