|
@@ -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),
|
|
|
),
|
|
|
],
|
|
|
))
|