소스 검색

中文的一些国际化修改

liukai 1 일 전
부모
커밋
6687aff0ca

+ 9 - 4
packages/cs_resources/lib/generated/intl/messages_all.dart

@@ -43,8 +43,10 @@ MessageLookupByLibrary? _findExact(String localeName) {
 /// User programs should call this before using [localeName] for messages.
 Future<bool> initializeMessages(String localeName) {
   var availableLocale = Intl.verifiedLocale(
-      localeName, (locale) => _deferredLibraries[locale] != null,
-      onFailure: (_) => null);
+    localeName,
+    (locale) => _deferredLibraries[locale] != null,
+    onFailure: (_) => null,
+  );
   if (availableLocale == null) {
     return new SynchronousFuture(false);
   }
@@ -64,8 +66,11 @@ bool _messagesExistFor(String locale) {
 }
 
 MessageLookupByLibrary? _findGeneratedMessagesFor(String locale) {
-  var actualLocale =
-      Intl.verifiedLocale(locale, _messagesExistFor, onFailure: (_) => null);
+  var actualLocale = Intl.verifiedLocale(
+    locale,
+    _messagesExistFor,
+    onFailure: (_) => null,
+  );
   if (actualLocale == null) return null;
   return _findExact(actualLocale);
 }

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 838 - 684
packages/cs_resources/lib/generated/intl/messages_en.dart


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 571 - 535
packages/cs_resources/lib/generated/intl/messages_zh_CN.dart


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 555 - 520
packages/cs_resources/lib/generated/intl/messages_zh_HK.dart


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 222 - 1097
packages/cs_resources/lib/generated/l10n.dart


+ 4 - 0
packages/cs_resources/lib/l10n/intl_en.arb

@@ -460,5 +460,9 @@
   "read_all_msg": "Are you sure you want to mark all notifications?",
   "today": "Today",
   "offline_payment": "Please make your payment in person at the Property Management office. Thank you!",
+  "choose_video": "Choose Video",
+  "choose_image": "Choose Image",
+  "camera": "Camera",
+  "album": "Album",
   "other": "Other"
 }

+ 4 - 0
packages/cs_resources/lib/l10n/intl_zh_CN.arb

@@ -459,5 +459,9 @@
   "read_all_msg": "您确定要标记所有的消息通知为已读吗?",
   "today": "今天",
   "offline_payment": "请亲自到物业管理办公室付款。非常感谢。",
+  "choose_video": "选择视频",
+  "choose_image": "选择图片",
+  "camera": "相机",
+  "album": "相册",
   "other": "其他"
 }

+ 4 - 0
packages/cs_resources/lib/l10n/intl_zh_HK.arb

@@ -445,5 +445,9 @@
   "read_all_msg": "您确定要标记所有的消息通知为已读吗?",
   "today": "今天",
   "offline_payment": "请亲自到物业管理办公室付款。非常感谢。",
+  "choose_video": "选择视频",
+  "choose_image": "选择图片",
+  "camera": "相机",
+  "album": "相册",
   "other": "其他"
 }

+ 6 - 7
packages/cs_widgets/lib/dialog/album_default_select_dialog.dart

@@ -1,5 +1,6 @@
 // ignore_for_file: must_be_immutable
 
+import 'package:cs_resources/generated/l10n.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter/widgets.dart';
 import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
@@ -44,7 +45,7 @@ class AlbumDefaultSelectDialog extends StatelessWidget {
                   topRight: Radius.circular(roundRadios),
                 )),
             child: MyTextView(
-              isTypeVideo ? "选择视频" : "选择图片",
+              isTypeVideo ? S.current.choose_video : S.current.choose_image,
               paddingTop: 10,
               paddingBottom: 10,
               textColor: const Color(0xff323843),
@@ -69,7 +70,7 @@ class AlbumDefaultSelectDialog extends StatelessWidget {
               alignment: Alignment.center,
               color: bgColor,
               child: MyTextView(
-                "相机",
+                S.current.camera,
                 textColor: ColorConstants.blue1578fe,
                 paddingTop: 15,
                 paddingBottom: 15,
@@ -100,7 +101,7 @@ class AlbumDefaultSelectDialog extends StatelessWidget {
                     bottomLeft: Radius.circular(roundRadios),
                   )),
               child: MyTextView(
-                "相册",
+                S.current.album,
                 textColor: ColorConstants.blue1578fe,
                 fontSize: 16,
                 paddingTop: 15,
@@ -126,11 +127,9 @@ class AlbumDefaultSelectDialog extends StatelessWidget {
               margin: const EdgeInsets.only(top: 10),
               width: double.infinity,
               alignment: Alignment.center,
-              decoration: BoxDecoration(
-                  color: bgColor,
-                  borderRadius: const BorderRadius.all(Radius.circular(roundRadios))),
+              decoration: BoxDecoration(color: bgColor, borderRadius: const BorderRadius.all(Radius.circular(roundRadios))),
               child: MyTextView(
-                "取消",
+                S.current.cancel,
                 textColor: ColorConstants.blue1578fe,
                 fontSize: 16,
                 paddingTop: 15,