Skip to content

Commit 7a9f0c1

Browse files
n7484443TytaniumDev
authored andcommitted
chore: fix typo korean, cutButtonLabel (flutter#151364)
[Wikipeidia](https://ko.wikipedia.org/wiki/%EC%9E%98%EB%9D%BC%EB%82%B4%EA%B8%B0,_%EB%B3%B5%EC%82%AC,_%EB%B6%99%EC%97%AC%EB%84%A3%EA%B8%B0) In korea, we use '잘라내기', '복사', '붙여넣기', not '잘라냄', '복사', '붙여넣기'. ![image](https://github.com/flutter/flutter/assets/7384324/34845c96-4e7a-4f95-a44c-19f9917f4a6c) e.g.) korean translation site, papago ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing.
1 parent 3c0e57e commit 7a9f0c1

File tree

6 files changed

+24
-4
lines changed

6 files changed

+24
-4
lines changed

packages/flutter_localizations/lib/src/l10n/cupertino_ko.arb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"timerPickerMinuteLabelOther": "분",
1616
"timerPickerSecondLabelOne": "초",
1717
"timerPickerSecondLabelOther": "초",
18-
"cutButtonLabel": "잘라냄",
18+
"cutButtonLabel": "잘라내기",
1919
"copyButtonLabel": "복사",
2020
"pasteButtonLabel": "붙여넣기",
2121
"selectAllButtonLabel": "전체 선택",

packages/flutter_localizations/lib/src/l10n/generated_cupertino_localizations.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7758,7 +7758,7 @@ class CupertinoLocalizationKo extends GlobalCupertinoLocalizations {
77587758
String get copyButtonLabel => '복사';
77597759

77607760
@override
7761-
String get cutButtonLabel => '잘라냄';
7761+
String get cutButtonLabel => '잘라내기';
77627762

77637763
@override
77647764
String get datePickerDateOrderString => 'ymd';

packages/flutter_localizations/lib/src/l10n/generated_material_localizations.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24330,7 +24330,7 @@ class MaterialLocalizationKo extends GlobalMaterialLocalizations {
2433024330
String get currentDateLabel => '오늘';
2433124331

2433224332
@override
24333-
String get cutButtonLabel => '잘라냄';
24333+
String get cutButtonLabel => '잘라내기';
2433424334

2433524335
@override
2433624336
String get dateHelpText => 'yyyy.mm.dd';

packages/flutter_localizations/lib/src/l10n/material_ko.arb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"closeButtonLabel": "닫기",
2525
"continueButtonLabel": "계속",
2626
"copyButtonLabel": "복사",
27-
"cutButtonLabel": "잘라냄",
27+
"cutButtonLabel": "잘라내기",
2828
"scanTextButtonLabel": "텍스트 스캔",
2929
"okButtonLabel": "확인",
3030
"pasteButtonLabel": "붙여넣기",

packages/flutter_localizations/test/cupertino/translations_test.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,16 @@ void main() {
240240
expect(localizations.lookUpButtonLabel, '查询');
241241
});
242242

243+
testWidgets('ko-KR translation for cut, copy, paste label in ButtonLabel', (WidgetTester tester) async {
244+
const Locale locale = Locale('ko');
245+
expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue);
246+
final CupertinoLocalizations localizations = await GlobalCupertinoLocalizations.delegate.load(locale);
247+
expect(localizations, isA<CupertinoLocalizationKo>());
248+
expect(localizations.cutButtonLabel, '잘라내기');
249+
expect(localizations.copyButtonLabel, '복사');
250+
expect(localizations.pasteButtonLabel, '붙여넣기');
251+
});
252+
243253
testWidgets('localizations.datePickerDayOfMonth uses the current locale for weekdays', (WidgetTester tester) async {
244254
const Locale locale = Locale('zh');
245255
expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue);

packages/flutter_localizations/test/material/translations_test.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,4 +559,14 @@ void main() {
559559
expect(localizations, isA<MaterialLocalizationZh>());
560560
expect(localizations.lookUpButtonLabel, '查询');
561561
});
562+
563+
testWidgets('zh-CN translation for look up label', (WidgetTester tester) async {
564+
const Locale locale = Locale('ko');
565+
expect(GlobalCupertinoLocalizations.delegate.isSupported(locale), isTrue);
566+
final MaterialLocalizations localizations = await GlobalMaterialLocalizations.delegate.load(locale);
567+
expect(localizations, isA<MaterialLocalizationKo>());
568+
expect(localizations.cutButtonLabel, '잘라내기');
569+
expect(localizations.copyButtonLabel, '복사');
570+
expect(localizations.pasteButtonLabel, '붙여넣기');
571+
});
562572
}

0 commit comments

Comments
 (0)