fix: Locale unlocalized strings
This commit is contained in:
parent
c43c721f7f
commit
dba2d2eb98
5 changed files with 36 additions and 10 deletions
|
|
@ -3476,5 +3476,30 @@
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"federationBaseUrl": "Federation Base URL",
|
||||||
|
"@federationBaseUrl": {},
|
||||||
|
"clientWellKnownInformation": "Client-Well-Known Information:",
|
||||||
|
"@clientWellKnownInformation": {},
|
||||||
|
"baseUrl": "Base URL",
|
||||||
|
"@baseUrl": {},
|
||||||
|
"identityServer": "Identity Server:",
|
||||||
|
"@identityServer": {},
|
||||||
|
"versionWithNumber": "Version: {version}",
|
||||||
|
"@versionWithNumber": {
|
||||||
|
"type": "String",
|
||||||
|
"placeholders": {
|
||||||
|
"version": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"logs": "Logs",
|
||||||
|
"@logs": {},
|
||||||
|
"advancedConfigs": "Advanced Configs",
|
||||||
|
"@advancedConfigs": {},
|
||||||
|
"advancedConfigurations": "Advanced configurations",
|
||||||
|
"@advancedConfigurations": {},
|
||||||
|
"signInWith": "Sign in with:",
|
||||||
|
"@signInWith": {}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ class HomeserverPickerView extends StatelessWidget {
|
||||||
hintStyle: TextStyle(
|
hintStyle: TextStyle(
|
||||||
color: theme.colorScheme.surfaceTint,
|
color: theme.colorScheme.surfaceTint,
|
||||||
),
|
),
|
||||||
labelText: 'Sign in with:',
|
labelText: L10n.of(context).signInWith,
|
||||||
errorText: controller.error,
|
errorText: controller.error,
|
||||||
errorMaxLines: 4,
|
errorMaxLines: 4,
|
||||||
suffixIcon: IconButton(
|
suffixIcon: IconButton(
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ class SettingsHomeserverView extends StatelessWidget {
|
||||||
subtitle: Text(data.version),
|
subtitle: Text(data.version),
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
title: const Text('Federation Base URL'),
|
title: Text(L10n.of(context).federationBaseUrl),
|
||||||
subtitle: Linkify(
|
subtitle: Linkify(
|
||||||
text: data.federationBaseUrl.toString(),
|
text: data.federationBaseUrl.toString(),
|
||||||
textScaleFactor: MediaQuery.textScalerOf(
|
textScaleFactor: MediaQuery.textScalerOf(
|
||||||
|
|
@ -210,7 +210,7 @@ class SettingsHomeserverView extends StatelessWidget {
|
||||||
children: [
|
children: [
|
||||||
ListTile(
|
ListTile(
|
||||||
title: Text(
|
title: Text(
|
||||||
'Client-Well-Known Information:',
|
L10n.of(context).clientWellKnownInformation,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: theme.colorScheme.secondary,
|
color: theme.colorScheme.secondary,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
|
|
@ -218,7 +218,7 @@ class SettingsHomeserverView extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
ListTile(
|
ListTile(
|
||||||
title: const Text('Base URL'),
|
title: Text(L10n.of(context).baseUrl),
|
||||||
subtitle: Linkify(
|
subtitle: Linkify(
|
||||||
text: wellKnown.mHomeserver.baseUrl.toString(),
|
text: wellKnown.mHomeserver.baseUrl.toString(),
|
||||||
textScaleFactor: MediaQuery.textScalerOf(
|
textScaleFactor: MediaQuery.textScalerOf(
|
||||||
|
|
@ -234,7 +234,7 @@ class SettingsHomeserverView extends StatelessWidget {
|
||||||
),
|
),
|
||||||
if (identityServer != null)
|
if (identityServer != null)
|
||||||
ListTile(
|
ListTile(
|
||||||
title: const Text('Identity Server:'),
|
title: Text(L10n.of(context).identityServer),
|
||||||
subtitle: Linkify(
|
subtitle: Linkify(
|
||||||
text: identityServer.baseUrl.toString(),
|
text: identityServer.baseUrl.toString(),
|
||||||
textScaleFactor: MediaQuery.textScalerOf(
|
textScaleFactor: MediaQuery.textScalerOf(
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ abstract class PlatformInfos {
|
||||||
showAboutDialog(
|
showAboutDialog(
|
||||||
context: context,
|
context: context,
|
||||||
children: [
|
children: [
|
||||||
Text('Version: $version'),
|
Text(L10n.of(context).versionWithNumber(version)),
|
||||||
TextButton.icon(
|
TextButton.icon(
|
||||||
onPressed: () => launchUrlString(AppConfig.sourceCodeUrl),
|
onPressed: () => launchUrlString(AppConfig.sourceCodeUrl),
|
||||||
icon: const Icon(Icons.source_outlined),
|
icon: const Icon(Icons.source_outlined),
|
||||||
|
|
@ -66,7 +66,7 @@ abstract class PlatformInfos {
|
||||||
Navigator.of(innerContext).pop();
|
Navigator.of(innerContext).pop();
|
||||||
},
|
},
|
||||||
icon: const Icon(Icons.list_outlined),
|
icon: const Icon(Icons.list_outlined),
|
||||||
label: const Text('Logs'),
|
label: Text(L10n.of(context).logs),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
@ -78,7 +78,7 @@ abstract class PlatformInfos {
|
||||||
Navigator.of(innerContext).pop();
|
Navigator.of(innerContext).pop();
|
||||||
},
|
},
|
||||||
icon: const Icon(Icons.settings_applications_outlined),
|
icon: const Icon(Icons.settings_applications_outlined),
|
||||||
label: const Text('Advanced Configs'),
|
label: Text(L10n.of(context).advancedConfigs),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import 'package:go_router/go_router.dart';
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
|
|
||||||
import 'package:fluffychat/config/setting_keys.dart';
|
import 'package:fluffychat/config/setting_keys.dart';
|
||||||
|
import 'package:fluffychat/l10n/l10n.dart';
|
||||||
import 'package:fluffychat/widgets/adaptive_dialogs/show_text_input_dialog.dart';
|
import 'package:fluffychat/widgets/adaptive_dialogs/show_text_input_dialog.dart';
|
||||||
import 'package:fluffychat/widgets/matrix.dart';
|
import 'package:fluffychat/widgets/matrix.dart';
|
||||||
|
|
||||||
|
|
@ -52,7 +53,7 @@ class _ConfigViewerState extends State<ConfigViewer> {
|
||||||
final theme = Theme.of(context);
|
final theme = Theme.of(context);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: const Text('Advanced configurations'),
|
title: Text(L10n.of(context).advancedConfigurations),
|
||||||
leading: BackButton(onPressed: () => context.go('/')),
|
leading: BackButton(onPressed: () => context.go('/')),
|
||||||
),
|
),
|
||||||
body: Column(
|
body: Column(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue