2. 编辑语言文件并测试
在注册简体中文以后,java l10n机制会主动去寻找zh_CN语言文件
该语言文件‘应该’位于 resources\\l10n 下,文件名为 messages_zh_CN.properties
如果文件不存在,请以 messages.properties 为模板新建一个。
文件结构:
左端是字段属性名,右侧是字段内容,就是需要汉化的地方
! RocketActions
RocketActions.checkbox.Donotaskmeagain = Do not ask me again
RocketActions.lbl.Youcanchangedefop = You can change the default operation in the preferences.
RocketActions.showConfirmDialog.lbl1 = Delete the selected simulations?
RocketActions.showConfirmDialog.lbl2 = <html><i>This operation cannot be undone.</i>
RocketActions.showConfirmDialog.title = Delete simulations
保存后运行程序即可预览
具体步骤请参阅(草案)
https://www.kechuang.org/t/59805
该语言文件‘应该’位于 resources\\l10n 下,文件名为 messages_zh_CN.properties
如果文件不存在,请以 messages.properties 为模板新建一个。
文件结构:
左端是字段属性名,右侧是字段内容,就是需要汉化的地方
! RocketActions
RocketActions.checkbox.Donotaskmeagain = Do not ask me again
RocketActions.lbl.Youcanchangedefop = You can change the default operation in the preferences.
RocketActions.showConfirmDialog.lbl1 = Delete the selected simulations?
RocketActions.showConfirmDialog.lbl2 = <html><i>This operation cannot be undone.</i>
RocketActions.showConfirmDialog.title = Delete simulations
保存后运行程序即可预览
具体步骤请参阅(草案)
https://www.kechuang.org/t/59805