不显示文化的本国货币时的正确货币格式 [英] Proper currency format when not displaying the native currency of a culture

查看:13
本文介绍了不显示文化的本国货币时的正确货币格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您正在格式化不是当前文化的本地货币的货币,那么格式化货币的正确方法是什么?

What is the proper way to format currency if you are formatting a currency that is not the native currency of the current culture?

例如,如果我为 fr-FR 文化格式化美元,我是像 en-US 文化 ($1,000.00) 一样格式化它还是作为 fr-FR 文化但更改了欧元符号美元符号 (1 000,00 $).也许是其他东西($1 000,001 000,00 USD)?

For example, if I am formatting US Dollars for a fr-FR culture do I format it like a en-US culture ($1,000.00) or as an fr-FR culture but changing the Euro symbol to a US Dollar symbol (1 000,00 $). Perhaps something else ($1 000,00 or 1 000,00 USD)?

推荐答案

这里没有绝对的规则,但有几个指导原则:

There's no absolute rules here but a couple of guiding principles:

  1. 尝试使用该区域设置的数字格式(例如,美国的 1,000.00 在德国将显示为 1'000,00);
  2. 请记住,不同的货币可以使用相同的符号(例如,澳元和美元使用 $)并且有 许多货币符号;
  3. 如果您的网站是单一"货币,则只需使用该货币的正确符号即可.我指的是亚马逊、旅游网站、购物网站等网站.这些网站是单一货币的,因为它们一次只使用一种货币.例如,他们不会同时展示马来西亚林吉特和新加坡元;和
  4. 如果您的网站是多币种,则根本不要使用该符号:使用 ISO 4217 货币名称和代码元素.xe.com 等网站就属于这一类.
  1. Try and use the number format for that locale (eg 1,000.00 in the US would be displayed as 1'000,00 in Germany);
  2. Remember that different currencies can use the same symbol (eg $ is used by Australian and US Dollars) and that there are many currency symbols;
  3. If your site is "single" currency then just use the correct symbol for that currency. By this I mean sites like Amazon, travel sites, shopping sites and so on. These sites are single currency in the sense they are one currency at a time. They won't be displaying Malaysian Ringits and Singapore Dollars at the same time, for example; and
  4. If your site is multi-currency then don't use the symbol at all: use the international standard three letter currency code as defined by ISO 4217 currency names and code elements. Sites like xe.com fit into the category.

这篇关于不显示文化的本国货币时的正确货币格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆