Skip to content

Commit

Permalink
update l10n — use "number-to-end" rather than "from end".
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-jiao committed Feb 24, 2024
1 parent 73005ac commit ab7431d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions lib/arb/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions lib/arb/intl_zh.arb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
}
}
},
"insertToString": "插入:在{location, plural, =0{倒数的} =1{} other{other}}第{insertIndex}个字符处插入“{insert}”。",
"insertToString": "插入:在{location, plural, =0{倒数的} =1{} other{}}第{insertIndex}个字符处插入“{insert}”。",
"@insertToString": {
"placeholders": {
"location": {
Expand Down Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions lib/l10n/intl/messages_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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}.";
Expand All @@ -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<String, Function> _notInlinedMessages(_) => <String, Function>{
Expand Down
4 changes: 2 additions & 2 deletions lib/l10n/intl/messages_zh.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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}。";

Expand All @@ -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<String, Function> _notInlinedMessages(_) => <String, Function>{
Expand Down
8 changes: 4 additions & 4 deletions lib/l10n/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ab7431d

Please sign in to comment.