mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-16 20:47:32 +08:00
update ICU API reference link (#19143)
This commit is contained in:
@@ -192,7 +192,7 @@ $sum = 42;
|
||||
echo \Yii::t('app', 'Balance: {0,number,,000,000000}', $sum);
|
||||
```
|
||||
|
||||
Les caractères à utiliser dans les formats personnalisés sont présentés dans le document [ICU API reference](http://icu-project.org/apiref/icu4c/classicu_1_1DecimalFormat.html) à la section "Special Pattern Characters" (Caractères pour motifs spéciaux).
|
||||
Les caractères à utiliser dans les formats personnalisés sont présentés dans le document [ICU API reference](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classDecimalFormat.html) à la section "Special Pattern Characters" (Caractères pour motifs spéciaux).
|
||||
|
||||
|
||||
La valeur de remplacement est toujours formatée en fonction de la locale cible c'est à dire que vous ne pouvez pas modifier les séparateurs de milliers et de décimales, les symboles monétaires, etc. sans modifier la locale de traduction. Si vous devez personnaliser ces éléments vous pouvez utiliser [[yii\i18n\Formatter::asDecimal()]] et [[yii\i18n\Formatter::asCurrency()]].
|
||||
|
||||
@@ -290,7 +290,7 @@ echo \Yii::t('app', 'Balance: {0,number,,000,000000}', $sum);
|
||||
```
|
||||
|
||||
カスタムフォーマットで使用される文字については、
|
||||
[ICU API リファレンス](http://icu-project.org/apiref/icu4c/classicu_1_1DecimalFormat.html) の "Special Pattern Characters"
|
||||
[ICU API リファレンス](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classDecimalFormat.html) の "Special Pattern Characters"
|
||||
のセクションに記述されています。
|
||||
|
||||
数値は常に翻訳先のロケールに従ってフォーマットされます。
|
||||
|
||||
@@ -162,7 +162,7 @@ $sum = 42;
|
||||
echo \Yii::t('app', 'Balance: {0, number, ,000,000000}', $sum);
|
||||
```
|
||||
|
||||
[Описание форматирования](http://icu-project.org/apiref/icu4c/classicu_1_1DecimalFormat.html).
|
||||
[Описание форматирования](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classDecimalFormat.html).
|
||||
|
||||
#### Даты
|
||||
|
||||
|
||||
@@ -274,7 +274,7 @@ echo \Yii::t('app', 'Balance: {0, number, ,000,000000}', $sum);
|
||||
```
|
||||
|
||||
自定义格式中使用的字符可以在“特殊模式字符”一节的
|
||||
[ICU API 参考](http://icu-project.org/apiref/icu4c/classicu_1_1DecimalFormat.html)
|
||||
[ICU API 参考](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classDecimalFormat.html)
|
||||
中找到。
|
||||
|
||||
|
||||
|
||||
@@ -274,7 +274,7 @@ echo \Yii::t('app', 'Balance: {0,number,,000,000000}', $sum);
|
||||
```
|
||||
|
||||
Characters used in the custom format could be found in
|
||||
[ICU API reference](http://icu-project.org/apiref/icu4c/classicu_1_1DecimalFormat.html) under "Special Pattern Characters"
|
||||
[ICU API reference](https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classDecimalFormat.html) under "Special Pattern Characters"
|
||||
section.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user