chore(i18n): migrate start stop keys to fl_lib (#1057)
This commit is contained in:
@@ -270,19 +270,19 @@ class _ServerPageState extends ConsumerState<ServerPage>
|
||||
Btn.column(
|
||||
onTap: () => _onTapSuspend(srv),
|
||||
icon: const Icon(Icons.stop, color: color),
|
||||
text: l10n.suspend,
|
||||
text: libL10n.suspend,
|
||||
textStyle: textStyle,
|
||||
),
|
||||
Btn.column(
|
||||
onTap: () => _onTapShutdown(srv),
|
||||
icon: const Icon(Icons.power_off, color: color),
|
||||
text: l10n.shutdown,
|
||||
text: libL10n.shutdown,
|
||||
textStyle: textStyle,
|
||||
),
|
||||
Btn.column(
|
||||
onTap: () => _onTapReboot(srv),
|
||||
icon: const Icon(Icons.restart_alt, color: color),
|
||||
text: l10n.reboot,
|
||||
text: libL10n.reboot,
|
||||
textStyle: textStyle,
|
||||
),
|
||||
Btn.column(
|
||||
|
||||
@@ -41,7 +41,7 @@ final class _TopBar extends ConsumerWidget implements PreferredSizeWidget {
|
||||
if (conn.index >= ServerConn.connected.index) connected++;
|
||||
}
|
||||
final total = order.length;
|
||||
final connectionText = '$connected/$total ${context.l10n.conn}';
|
||||
final connectionText = '$connected/$total ${context.libL10n.conn}';
|
||||
leading = InkWell(
|
||||
onTap: () => ConnectionStatsPage.route.go(context),
|
||||
child: Text(connectionText, style: const TextStyle(fontSize: 16, fontWeight: FontWeight.w600)),
|
||||
|
||||
@@ -56,7 +56,7 @@ extension _Operation on _ServerPageState {
|
||||
) ??
|
||||
(null, '');
|
||||
},
|
||||
typ: l10n.suspend,
|
||||
typ: libL10n.suspend,
|
||||
name: srv.spi.name,
|
||||
);
|
||||
}
|
||||
@@ -70,7 +70,7 @@ extension _Operation on _ServerPageState {
|
||||
id: srv.id,
|
||||
);
|
||||
},
|
||||
typ: l10n.shutdown,
|
||||
typ: libL10n.shutdown,
|
||||
name: srv.spi.name,
|
||||
);
|
||||
}
|
||||
@@ -85,7 +85,7 @@ extension _Operation on _ServerPageState {
|
||||
) ??
|
||||
(null, '');
|
||||
},
|
||||
typ: l10n.reboot,
|
||||
typ: libL10n.reboot,
|
||||
name: srv.spi.name,
|
||||
);
|
||||
}
|
||||
@@ -127,7 +127,7 @@ extension _Utils on _ServerPageState {
|
||||
void _askFor({required void Function() func, required String typ, required String name}) {
|
||||
context.showRoundDialog(
|
||||
title: libL10n.attention,
|
||||
child: Text(libL10n.askContinue('$typ ${l10n.server}($name)')),
|
||||
child: Text(libL10n.askContinue('$typ ${libL10n.server}($name)')),
|
||||
actions: Btn.ok(
|
||||
onTap: () {
|
||||
context.pop();
|
||||
|
||||
Reference in New Issue
Block a user