我们可以使用jdk内置的 Locale 类来实现java语言的国际化。使用方法很简单:首先先建在java工程中新建两个properties文件:(可以建一个 sourceFolder 命名为 il8n 也可以见一个 包命名为 il8n) ...
- 我们可以使用jdk内置的 Locale 类来实现java语言的国际化。使用方法很简单:
- 首先先建在java工程中新建两个properties文件:(可以建一个 sourceFolder 命名为 il8n 也可以见一个 包命名为 il8n)
命名格式为: xxx_语言代码_国家代码
我们这里 用到了 中英文名称为:
RetrievingRequestError retrieving request=Error parsing request.InvalidServiceTypeError=Error processing request. Invalid service type specified.POSError=Error processing request. Invalid POS.IdentifyAirportCodeError=Failure to identify airport code:GetCountryCodeError=Failure get the country code of the airport code:TagError1=Service type:TagError2=and root tag:TagError3=can not matchingGeneric=Generic error!RootElementNullError=Root element is nullRootTagNullError=Root tag is nullGetODError=Can not get OD informationIATACodeError=LocationCode is can not be empty!
海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com
原标题:java语言的国际化
关键词:JAVA
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。