Closed panlatent closed 6 months ago
@panlatent The translation for that message can be found in src/translations/zh/app.php. Can you please submit a PR with the corrected translation?
@brandonkelly I will submit a PR next. The problem is not as simple as I thought. Changing {count, spellout}
to {count}
will cause the message to be inconsistent with the translation: In the Chinese environment, Intl will complain about plural and throw an exception, causing a fallback to the original translation.
PR #14810
Finish. Cannot write {var} {var xxx}
.
yiisoft/yii2#11767
What happened?
Description
Translated spelling is not idiomatic in some languages.
In Chinese (zh), people are used to using Arabic numerals instead of spelling format
2
, which represents the quantity, is not translated (extra, it should not be translated as "二", it should be "两"). Craft uses the following code:Steps to reproduce
Expected behavior
2 => 2
Actual behavior
2 => 二
Craft CMS version
5.0
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
-