找回密码
 立即注册

QQ登录

只需一步,快速开始

lyq1130

中级会员

8

主题

35

帖子

979

积分

中级会员

积分
979

活字格认证

lyq1130
中级会员   /  发表于:2011-6-21 09:05  /   查看:8848  /  回复:14
我按照localize the Viewer Control 上面提示做完之后都没有反应啊!
在下图的3中的步骤:
    B:解压Viewer压缩文件到C:\Program Files\GrapeCity\ActiveReports 6\Localization目录
    C:根据需要修改Viewer目录下Res目录中以resx结尾的文件内容
    D:可以使用同名的本地图片替换Res\Resources 目录下的图片
在步骤4中:
    在Viewer 文件夹中生成SatelliteAssembly 文件夹
    一个在Viewer.bat设置的语言,在SatelliteAssembly 文件夹中创建了一个语言文件夹
   ActiveReports.Viewer6.resources.dll文件在语言文件夹里面
步骤5
    将语言文件夹拷贝到应用程序的Debug文件夹中

以上是我理解的,不知道有没有理解错,做过之后木有反应

14 个回复

倒序浏览
lyq1130
中级会员   /  发表于:2011-6-21 09:05:00
沙发
这是图片

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2011-6-21 09:19:00
板凳
能把你中文化之后Viewer目录下的全部文件,以及Viewer.bat文件中的代码发过来嘛。
回复 使用道具 举报
lyq1130
中级会员   /  发表于:2011-6-21 09:43:00
地板
if not "%ProgramFiles(x86)%" == "" goto GetProgramFilesPathx86
:GetProgramFilesPath
set ProgramFilesPath=%ProgramFiles%
goto START
:GetProgramFilesPathx86
set ProgramFilesPath=%ProgramFiles(x86)%

:START

Set ProjectName=Viewer
set dllName="ActiveReports.Viewer6.resources.dll"
set Culture="zh-CN"
Set ProgamFilesDDPath=%ProgramFilesPath%\Common Files\GrapeCity\ActiveReports 6
set BaseNamespace=DataDynamics.ActiveReports.Viewer

call Localize.bat
回复 使用道具 举报
lyq1130
中级会员   /  发表于:2011-6-21 09:44:00
5#
这是Viewer

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2011-6-21 10:05:00
6#

回复 5# lyq1130 的帖子

你发送的Viewer.rar是你修改之后的文件吗,我对比了你发送过来Viewer\Res中的全部文件,没有发现有修改的地方
回复 使用道具 举报
lyq1130
中级会员   /  发表于:2011-6-21 10:11:00
7#
那里面没有修改,我在里面没有找到en—Us这种字符串。
其他的还要修改吗
回复 使用道具 举报
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2011-6-21 10:17:00
8#
文档中的第二和第三步都是需要做的
第二步. Edit the Viewer.bat file:
1. Right-click the Viewer.bat file and select Edit.
2. Change the culture in the line set Culture="en-Us" to the culture you want to use. For your
convenience, here is a list of predefined .NET Cultures.
3. Ensure that the ProgamFilesDDPath is correct.
4. Save and close the Viewer.bat file.
第三步. Change strings in the resource files:
1. Double-click the Viewer.zip file to open it.
2. Extract all of the files to C:\Program Files\GrapeCity\ActiveReports 6\Localization. A Viewer
subfolder is created.
3. In the new Viewer folder's Res subfolder, open each of the three *.resx files and change the strings
as needed.
4. If you want to change any of the images, rename your localized images to the names of the ones in
the Res\Resources subfolder and replace them with your localized images.

第三步是修改.resx文件中你需要修改的字符串,比如FindDialog.resx文件中的
  1.   <data name="m_cbMatchCase.Text">
  2.     <value>Match case</value>
  3.   </data>
复制代码
回复 使用道具 举报
lyq1130
中级会员   /  发表于:2011-6-21 10:24:00
9#
文档中只是说根据需要修改,我因该修改.resx文件中的什么东东
回复 使用道具 举报
ZenosZeng讲师达人认证 悬赏达人认证
超级版主   /  发表于:2011-6-21 10:37:00
10#
比如说你想中文化查找对话框,那么你可以在FindDialog.resx文件中查找你想要替换的英文字符串,然后替换成中文:

  1.   <data name="m_bnFindNext.Text">
  2.     <value>Find Next</value>
  3.   </data>
复制代码
  1. <data name="m_bnFindNext.Text">
  2.     <value>查找下一个</value>
  3.   </data>
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
12下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部