mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 14:23:42 +00:00
fix: i18n
This commit is contained in:
1 parent
bf5c7655f2
commit
a5f72a22c3
2 files changed
+10
-3
No files matched your search
@@ -147,7 +147,10 @@ class AppController extends GetxController {
|
|||||||
extra.themeMode = ThemeMode.system.name;
|
extra.themeMode = ThemeMode.system.name;
|
||||||
}
|
}
|
||||||
if (extra.locale.isEmpty) {
|
if (extra.locale.isEmpty) {
|
||||||
extra.locale = getLocaleKey(ui.window.locale);
|
final systemLocale = getLocaleKey(ui.window.locale);
|
||||||
|
extra.locale = messages.keys.containsKey(systemLocale)
|
||||||
|
? systemLocale
|
||||||
|
: getLocaleKey(fallbackLocale);
|
||||||
}
|
}
|
||||||
if (extra.bt.trackerSubscribeUrls.isEmpty) {
|
if (extra.bt.trackerSubscribeUrls.isEmpty) {
|
||||||
// default select all tracker subscribe urls
|
// default select all tracker subscribe urls
|
||||||
@@ -159,6 +162,10 @@ class AppController extends GetxController {
|
|||||||
'${await ExternalPath.getExternalStoragePublicDirectory(ExternalPath.DIRECTORY_DOWNLOADS)}/com.gopeed';
|
'${await ExternalPath.getExternalStoragePublicDirectory(ExternalPath.DIRECTORY_DOWNLOADS)}/com.gopeed';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (Util.isIOS()) {
|
||||||
|
config.downloadDir = 'Documents';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (config.downloadDir.isEmpty) {
|
if (config.downloadDir.isEmpty) {
|
||||||
if (Util.isWeb()) {
|
if (Util.isWeb()) {
|
||||||
|
|||||||
@@ -231,14 +231,14 @@ class SettingView extends GetView<SettingController> {
|
|||||||
|
|
||||||
// about config items start
|
// about config items start
|
||||||
buildHomepage() => ListTile(
|
buildHomepage() => ListTile(
|
||||||
title: Text('主页'.tr),
|
title: Text('setting.homepage'.tr),
|
||||||
subtitle: const Text('https://github.com/monkeyWie/gopeed'),
|
subtitle: const Text('https://github.com/monkeyWie/gopeed'),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
launchUrl(Uri.parse('https://github.com/monkeyWie/gopeed'));
|
launchUrl(Uri.parse('https://github.com/monkeyWie/gopeed'));
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
buildVersion() => ListTile(
|
buildVersion() => ListTile(
|
||||||
title: Text('版本'.tr),
|
title: Text('setting.version'.tr),
|
||||||
subtitle: Text(packageInfo.version),
|
subtitle: Text(packageInfo.version),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user