Merge pull request #2477 from krille-chan/krille/localize-unlocalized-strings
fix: Locale unlocalized strings
This commit is contained in:
commit
03109371dc
5 changed files with 36 additions and 10 deletions
|
|
@ -3476,5 +3476,30 @@
|
|||
"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(
|
||||
color: theme.colorScheme.surfaceTint,
|
||||
),
|
||||
labelText: 'Sign in with:',
|
||||
labelText: L10n.of(context).signInWith,
|
||||
errorText: controller.error,
|
||||
errorMaxLines: 4,
|
||||
suffixIcon: IconButton(
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ class SettingsHomeserverView extends StatelessWidget {
|
|||
subtitle: Text(data.version),
|
||||
),
|
||||
ListTile(
|
||||
title: const Text('Federation Base URL'),
|
||||
title: Text(L10n.of(context).federationBaseUrl),
|
||||
subtitle: Linkify(
|
||||
text: data.federationBaseUrl.toString(),
|
||||
textScaleFactor: MediaQuery.textScalerOf(
|
||||
|
|
@ -210,7 +210,7 @@ class SettingsHomeserverView extends StatelessWidget {
|
|||
children: [
|
||||
ListTile(
|
||||
title: Text(
|
||||
'Client-Well-Known Information:',
|
||||
L10n.of(context).clientWellKnownInformation,
|
||||
style: TextStyle(
|
||||
color: theme.colorScheme.secondary,
|
||||
fontWeight: FontWeight.bold,
|
||||
|
|
@ -218,7 +218,7 @@ class SettingsHomeserverView extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
ListTile(
|
||||
title: const Text('Base URL'),
|
||||
title: Text(L10n.of(context).baseUrl),
|
||||
subtitle: Linkify(
|
||||
text: wellKnown.mHomeserver.baseUrl.toString(),
|
||||
textScaleFactor: MediaQuery.textScalerOf(
|
||||
|
|
@ -234,7 +234,7 @@ class SettingsHomeserverView extends StatelessWidget {
|
|||
),
|
||||
if (identityServer != null)
|
||||
ListTile(
|
||||
title: const Text('Identity Server:'),
|
||||
title: Text(L10n.of(context).identityServer),
|
||||
subtitle: Linkify(
|
||||
text: identityServer.baseUrl.toString(),
|
||||
textScaleFactor: MediaQuery.textScalerOf(
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ abstract class PlatformInfos {
|
|||
showAboutDialog(
|
||||
context: context,
|
||||
children: [
|
||||
Text('Version: $version'),
|
||||
Text(L10n.of(context).versionWithNumber(version)),
|
||||
TextButton.icon(
|
||||
onPressed: () => launchUrlString(AppConfig.sourceCodeUrl),
|
||||
icon: const Icon(Icons.source_outlined),
|
||||
|
|
@ -66,7 +66,7 @@ abstract class PlatformInfos {
|
|||
Navigator.of(innerContext).pop();
|
||||
},
|
||||
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();
|
||||
},
|
||||
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: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/matrix.dart';
|
||||
|
||||
|
|
@ -52,7 +53,7 @@ class _ConfigViewerState extends State<ConfigViewer> {
|
|||
final theme = Theme.of(context);
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Advanced configurations'),
|
||||
title: Text(L10n.of(context).advancedConfigurations),
|
||||
leading: BackButton(onPressed: () => context.go('/')),
|
||||
),
|
||||
body: Column(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue