DescriptionUse the ICU syntax message for plural formatting.
Chrome trail-blazed using ICU plural format support in 2008~9. Due to the lack of support for plural in our translation pipeline, Chrome decided to use 6 strings (for each plural category) for each logical string and builds ICU's plural message pattern at run-time.
Now that we can utilize the translation pipeline that supports ICU syntax directly (as are Android and other Google products), we'd better switch to directly using ICU syntax.
That way, adding a new string requiring a plural formatting is made much simpler. And if necessary, we can add a gender support easily.
BUG=471827
TEST=ui_base_unit_tests --gtest_filter=*Format*
Committed: https://crrev.com/3a6c36bbd58de11de968cea7c271d5516d320dce
Cr-Commit-Position: refs/heads/master@{#324517}
Patch Set 1 #Patch Set 2 : change time formatters #Patch Set 3 : convert all time format strings to ICU syntax #Patch Set 4 : delete old strings for elapsed days/hours #Patch Set 5 : fix errors #Patch Set 6 : fix icu syntax + grd interaction #Patch Set 7 : icu syntax added to desc #Patch Set 8 : remove place holder for # #Patch Set 9 : comment update #
Total comments: 1
Patch Set 10 : description update #Patch Set 11 : lint fix #Patch Set 12 : more lint fixes #Patch Set 13 : ios whitelist update #
Messages
Total messages: 23 (8 generated)
|