netbeans platform I18N 国际化 本地化
通过org.openide.util.NbBundle类实现
代码中调用
NbBundle.getMessage(ChartFrame.class, "CTL_ChartFrame", stock.getName(), stock.getCode())
Bundle.properties文件:
CTL_ChartFrame={0}({1})
如果有额外参数要传进去,配置中使用{0}、{1}等来接收
记录精彩的程序人生
通过org.openide.util.NbBundle类实现
代码中调用
NbBundle.getMessage(ChartFrame.class, "CTL_ChartFrame", stock.getName(), stock.getCode())
Bundle.properties文件:
CTL_ChartFrame={0}({1})
如果有额外参数要传进去,配置中使用{0}、{1}等来接收