From ab7431db78a2f613499f56a43422dfb68b290ccf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=A8=87?= Date: Sat, 24 Feb 2024 21:05:34 +0800 Subject: [PATCH] =?UTF-8?q?update=20l10n=20=E2=80=94=20use=20"number-to-en?= =?UTF-8?q?d"=20rather=20than=20"from=20end".?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/arb/intl_en.arb | 4 ++-- lib/arb/intl_zh.arb | 4 ++-- lib/l10n/intl/messages_en.dart | 4 ++-- lib/l10n/intl/messages_zh.dart | 4 ++-- lib/l10n/l10n.dart | 8 ++++---- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/arb/intl_en.arb b/lib/arb/intl_en.arb index 5687b5c..562fcde 100755 --- a/lib/arb/intl_en.arb +++ b/lib/arb/intl_en.arb @@ -124,7 +124,7 @@ } } }, - "insertToString": "Insert {insert} at the char #{insertIndex} from {location, plural, =0{end} =1{start} other{other}}.", + "insertToString": "Insert \"{insert}\" at the char #{insertIndex}{location, plural, =0{-to-end} =1{} other{}}.", "@insertToString": { "placeholders": { "location": { @@ -176,7 +176,7 @@ } } }, - "truncateToString": "Truncate: {keepType, plural, =0{remove} =1{keep} other{other}} {length} characters starting from the char #{startIndex} from {location, plural, =0{end} =1{start} other{other}} going {direction, plural, =0{backward} =1{forward} other{other}}.", + "truncateToString": "Truncate: {keepType, plural, =0{remove} =1{keep} other{}} {length} characters starting from the char #{startIndex}{location, plural, =0{-to-end} =1{} other{}} going {direction, plural, =0{backward} =1{forward} other{}}.", "@truncateToString": { "placeholders": { "keepType": { diff --git a/lib/arb/intl_zh.arb b/lib/arb/intl_zh.arb index 588c3db..2e1be18 100644 --- a/lib/arb/intl_zh.arb +++ b/lib/arb/intl_zh.arb @@ -124,7 +124,7 @@ } } }, - "insertToString": "插入:在{location, plural, =0{倒数的} =1{} other{other}}第{insertIndex}个字符处插入“{insert}”。", + "insertToString": "插入:在{location, plural, =0{倒数的} =1{} other{}}第{insertIndex}个字符处插入“{insert}”。", "@insertToString": { "placeholders": { "location": { @@ -176,7 +176,7 @@ } } }, - "truncateToString": "截断:从{location, plural, =0{倒数的} =1{} other{other}}第{startIndex}个字符开始,向{direction, plural, =0{后} =1{前} other{other}}{keepType, plural, =0{移除} =1{保留} other{other}}{length}个字符。", + "truncateToString": "截断:从{location, plural, =0{倒数的} =1{} other{}}第{startIndex}个字符开始,向{direction, plural, =0{后} =1{前} other{other}}{keepType, plural, =0{移除} =1{保留} other{other}}{length}个字符。", "@truncateToString": { "placeholders": { "keepType": { diff --git a/lib/l10n/intl/messages_en.dart b/lib/l10n/intl/messages_en.dart index ad0e021..a6138ba 100644 --- a/lib/l10n/intl/messages_en.dart +++ b/lib/l10n/intl/messages_en.dart @@ -23,7 +23,7 @@ class MessageLookup extends MessageLookupByLibrary { static String m0(prefix) => "Incremental renaming: ${prefix}-index"; static String m1(location, insert, insertIndex) => - "Insert ${insert} at the char #${insertIndex} from ${Intl.plural(location, zero: 'end', one: 'start', other: 'other')}."; + "Insert \"${insert}\" at the char #${insertIndex}${Intl.plural(location, zero: '-to-end', one: '', other: '')}."; static String m2(delimiter, order) => "Rearrange: delimiter: ${delimiter}, order: ${order}."; @@ -39,7 +39,7 @@ class MessageLookup extends MessageLookupByLibrary { "Transliterate: convert ${langName} ${type}."; static String m7(keepType, location, direction, length, startIndex) => - "Truncate: ${Intl.plural(keepType, zero: 'remove', one: 'keep', other: 'other')} ${length} characters starting from the char #${startIndex} from ${Intl.plural(location, zero: 'end', one: 'start', other: 'other')} going ${Intl.plural(direction, zero: 'backward', one: 'forward', other: 'other')}."; + "Truncate: ${Intl.plural(keepType, zero: 'remove', one: 'keep', other: '')} ${length} characters starting from the char #${startIndex}${Intl.plural(location, zero: '-to-end', one: '', other: '')} going ${Intl.plural(direction, zero: 'backward', one: 'forward', other: '')}."; final messages = _notInlinedMessages(_notInlinedMessages); static Map _notInlinedMessages(_) => { diff --git a/lib/l10n/intl/messages_zh.dart b/lib/l10n/intl/messages_zh.dart index c68f1f2..4516556 100644 --- a/lib/l10n/intl/messages_zh.dart +++ b/lib/l10n/intl/messages_zh.dart @@ -23,7 +23,7 @@ class MessageLookup extends MessageLookupByLibrary { static String m0(prefix) => "递增:${prefix}-索引"; static String m1(location, insert, insertIndex) => - "插入:在${Intl.plural(location, zero: '倒数的', one: '', other: 'other')}第${insertIndex}个字符处插入“${insert}”。"; + "插入:在${Intl.plural(location, zero: '倒数的', one: '', other: '')}第${insertIndex}个字符处插入“${insert}”。"; static String m2(delimiter, order) => "重排:分隔符:${delimiter},顺序:${order}。"; @@ -37,7 +37,7 @@ class MessageLookup extends MessageLookupByLibrary { static String m6(langName, type) => "转写:将${langName}${type}。"; static String m7(keepType, location, direction, length, startIndex) => - "截断:从${Intl.plural(location, zero: '倒数的', one: '', other: 'other')}第${startIndex}个字符开始,向${Intl.plural(direction, zero: '后', one: '前', other: 'other')}${Intl.plural(keepType, zero: '移除', one: '保留', other: 'other')}${length}个字符。"; + "截断:从${Intl.plural(location, zero: '倒数的', one: '', other: '')}第${startIndex}个字符开始,向${Intl.plural(direction, zero: '后', one: '前', other: 'other')}${Intl.plural(keepType, zero: '移除', one: '保留', other: 'other')}${length}个字符。"; final messages = _notInlinedMessages(_notInlinedMessages); static Map _notInlinedMessages(_) => { diff --git a/lib/l10n/l10n.dart b/lib/l10n/l10n.dart index 923bbaa..af59189 100644 --- a/lib/l10n/l10n.dart +++ b/lib/l10n/l10n.dart @@ -1120,10 +1120,10 @@ class L10n { ); } - /// `Insert {insert} at the char #{insertIndex} from {location, plural, =0{end} =1{start} other{other}}.` + /// `Insert "{insert}" at the char #{insertIndex}{location, plural, =0{-to-end} =1{} other{}}.` String insertToString(num location, String insert, num insertIndex) { return Intl.message( - 'Insert $insert at the char #$insertIndex from ${Intl.plural(location, zero: 'end', one: 'start', other: 'other')}.', + 'Insert "$insert" at the char #$insertIndex${Intl.plural(location, zero: '-to-end', one: '', other: '')}.', name: 'insertToString', desc: '', args: [location, insert, insertIndex], @@ -1170,11 +1170,11 @@ class L10n { ); } - /// `Truncate: {keepType, plural, =0{remove} =1{keep} other{other}} {length} characters starting from the char #{startIndex} from {location, plural, =0{end} =1{start} other{other}} going {direction, plural, =0{backward} =1{forward} other{other}}.` + /// `Truncate: {keepType, plural, =0{remove} =1{keep} other{}} {length} characters starting from the char #{startIndex}{location, plural, =0{-to-end} =1{} other{}} going {direction, plural, =0{backward} =1{forward} other{}}.` String truncateToString( num keepType, num location, num direction, num length, num startIndex) { return Intl.message( - 'Truncate: ${Intl.plural(keepType, zero: 'remove', one: 'keep', other: 'other')} $length characters starting from the char #$startIndex from ${Intl.plural(location, zero: 'end', one: 'start', other: 'other')} going ${Intl.plural(direction, zero: 'backward', one: 'forward', other: 'other')}.', + 'Truncate: ${Intl.plural(keepType, zero: 'remove', one: 'keep', other: '')} $length characters starting from the char #$startIndex${Intl.plural(location, zero: '-to-end', one: '', other: '')} going ${Intl.plural(direction, zero: 'backward', one: 'forward', other: '')}.', name: 'truncateToString', desc: '', args: [keepType, location, direction, length, startIndex],