877121273 发表于 2017-10-24 10:20:22

html5viewer的提示 无法显示成中文

在开发的服务器上,提示 能 显示成中文,但是发布后,却显示成英文,请问怎么解决??

KearneyKang 发表于 2017-10-24 12:00:46

您好,您看看您的那个中文的提示的文件是否所有的提示都已经修改为中文。
在该目录下有汉化的提示,您把这个文件里的内容复制到您的项目中的那个.txt 文件里
C:\Program Files (x86)\GrapeCity\ActiveReports 11\Deployment\Html\i18n
然后保存为UTF8的格式就行了。如果没有找到C盘目录下的文件,可以直接复制下面的代码:
sidebar=侧边栏
toc=目录
tocfull=目录
firstPage=第一页
lastPage=最后页
prevPage=前一页
nextPage=后一页
print=打印
backToParent=返回上级报表
params=参数
saveas=另存为
renderMode=分页/不分页
Galley=不分页
Paginated=分页
SinglePageView=单页模式
ContinuousPageView=连续模式
       
pdfDocument=PDF
wordDocument=Word
imageFile=图片
mhtDocument=网页
excelWorkbook=Excel

yes=是
no=否
true=True
false=False
null=Null
null-label=Null
on=打开
off=关闭
selectall=(全选)
enterValue=输入值
clearAllOptions=重置
blank=空白
empty=空值

back=返回
refreshReport=查看报表

search=查找
matchCase=大小写敏感
wholePhrase=全字匹配
more=更多...
noResults=没有结果
clear=清空
findLabel=查找:

errorPane.Details=显示明细
errorPane.HideDetails=隐藏明细
errorPane.DismissAll=全部隐藏
errorPane.ErrorPaneTitle=发生了错误

# errors
error.ExpectValue=必填项
error.ExpectNotEmptyValue=Value expected: Blank value assigned to non-Blank parameter
error.ExpectNotNullValue=Value expected: null value assigned to non-Nullable parameter
error.ExpectValueValidationFailed=Value expected: Parameter value is not a valid value.
error.ValidationFailed=验证失败
error.HasOutstandingDependencies=包含强依赖
error.ExpectNumericValue=不是数字值
error.ExpectBooleanValue=不是布尔值
error.ExpectDateValue=非法日期值
error.NotSupported=不支持该操作.
error.NotFound=没有找到
error.ReportNotFound=不能打开报表 '{0}'.
error.InvalidReportToken=无效的报表Token.
error.InvalidDocumentToken=无效的文档Token.
error.RequestFailed=请求失败.
error.RequestRejected=请求被拒绝.
error.RequestCancelled=请求被取消.
error.InvalidRequestId=无效的请求 id.
error.InvalidDrillthroughLink=无效的钻取链接 '{0}'.
error.InvalidDrillthroughParameters=无效的钻取参数.
error.InvalidResponse=无效的相应.
error.InvalidParameters=无效的报表参数.
error.DocumentNotInCache=该文件未被缓存,请刷新报表
error.JsVersionsMismatch= 文件 GrapeCity.ActiveReports.Viewer.Html.js 或 GrapeCity.ActiveReports.Viewer.Html.min.js 的版本与您当前安装的ActiveReports版本不一致,请更新你项目中使用的该文件
error.InvalidSharedDataSource=不能加载共享数据源 '{0}'.
error.NoAgentsAvailable=没有已经授权的代理服务器可接收改任务请求
error.InternalServerError=内部错误
error.AccessDenied=Access to the requested document is denied.
error.ReportError.DataSetNotSpecified=DataSet name needs to be specified in the Fixed Page Layout settings.
error.ReportError.NoDataSets=No data sets.
error.NoDataSets=No data sets.
error.ReportError.SubreportNotFound=Unable to locate subreport {0}
error.ReportError.NoMasterReport=Unable to load the master report for the specified content report.
error.ReportError.UnableToCreateConnection=Can not connect to data source.
error.ReportError.JsonSchemaNotAvailableOrInvalid=Json schema either not available or invalid.然后你把该文件设置为复制到本地。然后再发布试试

877121273 发表于 2017-11-9 10:36:04

试了下,还是没法解决。。请问还有其他解决方案吗

KearneyKang 发表于 2017-11-9 11:54:35

就只有这一种解决方案:
html5viewer 里的下面的这个代码就是调用信息提示栏
localeUri: 'Scripts/i18n/Localeuri.txt'你可以修改该路径下的LocalUri.txt的文件,如果没有也可以自己添加进去
还有就是如果本地可以,服务器不行,有可能是你没有设置LocalCopy属性,设置该属性为 TRUE


877121273 发表于 2017-12-4 18:08:37

请问 这个文件是在哪儿?localeUri: 'Scripts/i18n/Localeuri.txt'

877121273 发表于 2017-12-4 18:08:41

请问 这个文件是在哪儿?localeUri: 'Scripts/i18n/Localeuri.txt'

KearneyKang 发表于 2017-12-4 22:59:01

您好该路径下有两个txtde这个文件名:C:\Program Files (x86)\GrapeCity\ActiveReports 12\Deployment\Html\i18n
其实它跟Localeuri.txt只是文件的名字不一样而已
您用记事本打开这个TXT文件,然后里面就是中文的提示信息栏。如果您的项目里没有这个Localeuri.txt你把上面路径下的文件添加到这个路径下Scripts/i18n/Localeuri.txt 把文件名换成Localeuri就行
页: [1]
查看完整版本: html5viewer的提示 无法显示成中文