skyway 国际化

xiaoxiao2021-03-01  33

skyway ,version 6.3.1

通过scaffolding自动生成的页面是英文的,通过在resources/bundles目录下添加对应的中文properties文件可以显示中文,

例如:在/SkywayHotels-Web/resources/bundles/下面有department-resources.properties文件对应department页面的显示,

我们可以增加department-resources_zh.properties文件,用来展示中文页面。

下面是department-resources_zh.properties文件的部分内容:

# navigation navigation.new=新 navigation.list=列出 navigation.back=返回 navigation.save=保存 navigation.edit=修改 navigation.delete=删除 navigation.add=增加

在没有在skyway中加入properties editor插件之前,上述修改之后运行之后会在页面上看到乱码,

此时还需要将properties editor插件加入skyway。

步骤:

1. 关闭skyway程序

2.下载jp.gr.java_conf.ussiy.app.propedit_5.3.3.zip

3.解压jp.gr.java_conf.ussiy.app.propedit_5.3.3.zip,将features和plugins文件复制到skyway安装目录

4.启动skyway,打开Window->preferences->general->editors->file associations在file types下面

选中*.properties(如果没有就新建这个项),然后在associated editors下面将PropertiesEditor设为默认的

上述操作完成后就可以在skyway中编辑properties文件了,properties editor会将中文转成unicode码,

但在skyway中看到的是中文而不是unicode码,用记事本直接查看时看到的是unicode码

相关资源:udonarium:WebRTCを使ってブラウザ间通信を行うオンセツール-源码
转载请注明原文地址: https://www.6miu.com/read-3450244.html

最新回复(0)