什么是 "localized message"?
What is a "localized message"?
我看到有几种语言(尤其是例外)提供 message 和 localised message 方法。但我不清楚有什么区别 - 以下任何一项是否适用?
- 本地化消息供child类使用。他们为什么不覆盖主要 消息?
- 这是一个物理位置的东西,可以根据区域设置、时区等显示相同的消息
此外,什么时候 本地化消息 比常规 消息 更受欢迎?或者相反,不是?
这个:
Is this a physical location thing where the same message may be presented based on things like locale, timezone, etc.
虽然通常只是地区/文化,但真的。
基本上想象 "The value must be greater than 0" 的错误消息对于法国开发人员可能表示为 "La valeur doit être supérieure à 0"(由 Google 翻译提供;可能不是惯用的错误消息)。
不过,这只是将本地化的一般概念(让您的代码在用户的 language/culture 中进行通信)应用于错误消息的特定情况。
我看到有几种语言(尤其是例外)提供 message 和 localised message 方法。但我不清楚有什么区别 - 以下任何一项是否适用?
- 本地化消息供child类使用。他们为什么不覆盖主要 消息?
- 这是一个物理位置的东西,可以根据区域设置、时区等显示相同的消息
此外,什么时候 本地化消息 比常规 消息 更受欢迎?或者相反,不是?
这个:
Is this a physical location thing where the same message may be presented based on things like locale, timezone, etc.
虽然通常只是地区/文化,但真的。
基本上想象 "The value must be greater than 0" 的错误消息对于法国开发人员可能表示为 "La valeur doit être supérieure à 0"(由 Google 翻译提供;可能不是惯用的错误消息)。
不过,这只是将本地化的一般概念(让您的代码在用户的 language/culture 中进行通信)应用于错误消息的特定情况。