Browse Source

部分翻译

fly 1 year ago
parent
commit
d0eb5b4bf2

+ 14 - 14
Tools/Flyinsono.Deployment/lib/PublishView.dart

@@ -99,13 +99,13 @@ class _PublishViewState extends State<PublishView> {
         columns: <DataColumn>[
           DataColumn(label: Text('ServerID')),
           DataColumn(label: Text('IP')),
-          DataColumn(label: Text('Name')),
-          DataColumn(label: Text('IsMaster')),
-          DataColumn(label: Text('MasterServerID')),
-          DataColumn(label: Text('IsServerOnline')),
-          DataColumn(label: Text('IsDeployOnline')),
-          DataColumn(label: Text('isPublishing')),
-          DataColumn(label: Text('Actions')),
+          DataColumn(label: Text(AppLocalizations.of(context)!.serverName)),
+          DataColumn(label: Text(AppLocalizations.of(context)!.isMasterServer)),
+          DataColumn(label: Text(AppLocalizations.of(context)!.masterServerID)),
+          DataColumn(label: Text(AppLocalizations.of(context)!.isServerOnline)),
+          DataColumn(label: Text(AppLocalizations.of(context)!.isDeployOnline)),
+          DataColumn(label: Text(AppLocalizations.of(context)!.isPublishing)),
+          DataColumn(label: Text(AppLocalizations.of(context)!.actions)),
         ],
         rows: <DataRow>[
           for (int index = 0; index < _serverList.length; index++)
@@ -113,11 +113,11 @@ class _PublishViewState extends State<PublishView> {
               DataCell(Text(_serverList[index].serverId ?? '')),
               DataCell(Text(_serverList[index].ip)),
               DataCell(Text(_serverList[index].name)),
-              DataCell(Text(_serverList[index].isMaster ? 'Yes' : 'No')),
+              DataCell(Text(_serverList[index].isMaster ? AppLocalizations.of(context)!.yes : AppLocalizations.of(context)!.no)),
               DataCell(Text(_serverList[index].masterServerId)),
-              DataCell(Text(_serverList[index].isServerOnline! ? 'Yes' : 'No')),
-              DataCell(Text(_serverList[index].isDeployOnline! ? 'Yes' : 'No')),
-              DataCell(Text(_serverList[index].isPublishing! ? 'Yes' : 'No')),
+              DataCell(Text(_serverList[index].isServerOnline! ? AppLocalizations.of(context)!.yes : AppLocalizations.of(context)!.no)),
+              DataCell(Text(_serverList[index].isDeployOnline! ? AppLocalizations.of(context)!.yes : AppLocalizations.of(context)!.no)),
+              DataCell(Text(_serverList[index].isPublishing! ? AppLocalizations.of(context)!.yes : AppLocalizations.of(context)!.no)),
               DataCell(Wrap(
                 spacing: 16,
                 runSpacing: 4,
@@ -138,7 +138,7 @@ class _PublishViewState extends State<PublishView> {
                   ),
              
                   TextButton(
-                    child: Text('remote Deploy'),
+                    child: Text(AppLocalizations.of(context)!.remoteDeploy),
                     onPressed: () {
                       showDialog(
                         context: context,
@@ -264,7 +264,7 @@ class _PublishViewState extends State<PublishView> {
                         ),
                       );
                     },
-                    child: Text('AppSettings'),
+                    child: Text('App Settings'),
                   ),
                
                   TextButton(
@@ -275,7 +275,7 @@ class _PublishViewState extends State<PublishView> {
                             _serverList[index].id!, _serverList[index].ip),
                       );
                     },
-                    child: Text('HistoryLog'),
+                    child: Text(AppLocalizations.of(context)!.historyLog),
                   ),
                 ],
               ))

+ 10 - 1
Tools/Flyinsono.Deployment/lib/l10n/app_en.arb

@@ -53,5 +53,14 @@
   "wingASRService": "Speech Recognition Service",
   "wingPaymentService": "Payment Platform Service",
   "wingLabService": "Scientific Research Service",
-  "wingEducationService": "Education and Training Service"
+  "wingEducationService": "Education and Training Service",
+  "serverName": "Server Name",
+  "masterServerID": "Master Server ID",
+  "isServerOnline": "Is Server Online",
+  "isDeployOnline": "Is Remote Deploy Service Online",
+  "isPublishing": "Is Publishing",
+  "remoteDeploy": "Remote Deploy",
+  "historyLog": "Deployment Log",
+  "yes": "Yes",
+  "no": "No"
 }

+ 10 - 1
Tools/Flyinsono.Deployment/lib/l10n/app_zh.arb

@@ -53,7 +53,16 @@
   "wingASRService":"语言识别", 
   "wingPaymentService":"支付平台", 
   "wingLabService":	"科研服务",
-  "wingEducationService":"教培服务"	
+  "wingEducationService":"教培服务",
+  "serverName":"服务器名称",
+  "masterServerID":"主服务器ID",
+  "isServerOnline":"Server是否在线",
+  "isDeployOnline":"远程部署服务是否在线",
+  "isPublishing":"是否部署中",
+  "remoteDeploy":"远程部署",
+  "historyLog":"部署日志",
+  "yes":"是",
+  "no":"否"
  
 
 }