From 4dbe3055078cf7739f904f9854e23d64716afabf Mon Sep 17 00:00:00 2001 From: kangshihui Date: Wed, 6 Aug 2025 16:22:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E4=BB=93=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86=E8=AE=A1=E6=95=B0=E5=99=A8=E6=97=A0=E9=9A=9C=E7=A2=8D?= =?UTF-8?q?=E6=92=AD=E6=8A=A5=E5=AD=97=E7=AC=A6=E4=B8=B2=E6=8B=86=E5=88=86?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81=E5=8D=95=E5=A4=8D=E6=95=B0=E5=BD=A2?= =?UTF-8?q?=E5=BC=8F=20Signed-off-by:kangshihui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic2312c8d304633a31948bd4741f52f8b9bb56059 --- .../resources/base/element/id_defined.json | 9 ++++-- .../main/resources/base/element/pattern.json | 4 --- .../main/resources/base/element/plurals.json | 28 ++++++++++++++++++- .../main/resources/base/element/string.json | 4 --- .../main/resources/zh_CN/element/plurals.json | 20 ++++++++++++- .../main/resources/zh_CN/element/string.json | 4 --- 6 files changed, 53 insertions(+), 16 deletions(-) diff --git a/systemres/main/resources/base/element/id_defined.json b/systemres/main/resources/base/element/id_defined.json index 7835f1ab..71460440 100644 --- a/systemres/main/resources/base/element/id_defined.json +++ b/systemres/main/resources/base/element/id_defined.json @@ -33014,8 +33014,8 @@ "order": 6555 }, { - "type": "string", - "name": "textfield_counter_content", + "type": "plural", + "name": "textfield_counter_content_part_one", "order": 6556 }, { @@ -33067,6 +33067,11 @@ "type": "float", "name": "subheader_titles_space", "order": 6566 + }, + { + "type": "plural", + "name": "textfield_counter_content_part_two", + "order": 6567 } ] } diff --git a/systemres/main/resources/base/element/pattern.json b/systemres/main/resources/base/element/pattern.json index 59e374a6..17206cdd 100644 --- a/systemres/main/resources/base/element/pattern.json +++ b/systemres/main/resources/base/element/pattern.json @@ -5632,10 +5632,6 @@ { "name": "auto_fill_icon_emphasize_color", "value": "$color:icon_emphasize" - }, - { - "name": "textfield_counter_content", - "value": "$string:textfield_counter_content" } ] }, diff --git a/systemres/main/resources/base/element/plurals.json b/systemres/main/resources/base/element/plurals.json index aea0942a..ac404a1b 100644 --- a/systemres/main/resources/base/element/plurals.json +++ b/systemres/main/resources/base/element/plurals.json @@ -18,6 +18,32 @@ } } ] - } + }, + { + "name": "textfield_counter_content_part_one", + "value": [ + { + "quantity": "one", + "value": "%d character entered," + }, + { + "quantity": "other", + "value": "%d characters entered," + } + ] + }, + { + "name": "textfield_counter_content_part_two", + "value": [ + { + "quantity": "one", + "value": "limit is %d character." + }, + { + "quantity": "other", + "value": "limit is %d characters." + } + ] + } ] } diff --git a/systemres/main/resources/base/element/string.json b/systemres/main/resources/base/element/string.json index 2d22fa97..f1e1d8fe 100644 --- a/systemres/main/resources/base/element/string.json +++ b/systemres/main/resources/base/element/string.json @@ -2110,10 +2110,6 @@ { "name": "general_ai_ask_celia", "value": "Ask Celia" - }, - { - "name": "textfield_counter_content", - "value": "Number of characters entered: %1$d, maximum number of characters allowed: %2$d" } ] } diff --git a/systemres/main/resources/zh_CN/element/plurals.json b/systemres/main/resources/zh_CN/element/plurals.json index f606610f..d47f23fe 100644 --- a/systemres/main/resources/zh_CN/element/plurals.json +++ b/systemres/main/resources/zh_CN/element/plurals.json @@ -11,6 +11,24 @@ } } ] + }, + { + "name": "textfield_counter_content_part_one", + "value": [ + { + "quantity": "other", + "value": "已输入%d个字符," + } + ] + }, + { + "name": "textfield_counter_content_part_two", + "value": [ + { + "quantity": "other", + "value": "最多可输入%d个字符。" + } + ] } ] -} +} \ No newline at end of file diff --git a/systemres/main/resources/zh_CN/element/string.json b/systemres/main/resources/zh_CN/element/string.json index 0184035f..eea64cca 100644 --- a/systemres/main/resources/zh_CN/element/string.json +++ b/systemres/main/resources/zh_CN/element/string.json @@ -1972,10 +1972,6 @@ { "name": "general_ai_ask_celia", "value": "问问小艺" - }, - { - "name": "textfield_counter_content", - "value": "已输入%1$d个字符,最多可输入%2$d个字符" } ] } -- Gitee