From 4aff22079a136c2dc48a34fdfa7e34b17ddfea9b Mon Sep 17 00:00:00 2001
From: schroda <50052685+schroda@users.noreply.github.com>
Date: Fri, 12 May 2023 11:52:00 +0200
Subject: [PATCH] Settings language add description (#294)
* Add translation notice to language setting
* Make local source guide link readable in dark mode
---
src/i18n/locale/en.json | 6 ++++--
src/screens/Settings.tsx | 14 ++++++++++++--
src/screens/SourceMangas.tsx | 5 +++--
3 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/src/i18n/locale/en.json b/src/i18n/locale/en.json
index b797f8c4..5f7f14ad 100644
--- a/src/i18n/locale/en.json
+++ b/src/i18n/locale/en.json
@@ -247,7 +247,8 @@
"language_with_code": "Language with code: {{code}}"
},
"title": {
- "enabled_languages": "Allowed Languages"
+ "enabled_languages": "Allowed Languages",
+ "weblate": "Weblate"
}
},
"sort": {
@@ -419,7 +420,8 @@
"image_cache_description": "Reduces the data consumption and improves the performance when a already requested image gets requested again",
"manga_item_width": "Manga item width",
"show_nsfw": "Show NSFW",
- "show_nsfw_description": "Hide NSFW extensions and sources"
+ "show_nsfw_description": "Hide NSFW extensions and sources",
+ "language_description": "Feel free to translate the project on"
},
"server_address": {
"dialog": {
diff --git a/src/screens/Settings.tsx b/src/screens/Settings.tsx
index 86407762..0aab8a2d 100644
--- a/src/screens/Settings.tsx
+++ b/src/screens/Settings.tsx
@@ -29,7 +29,7 @@ import DialogContentText from '@mui/material/DialogContentText';
import TextField from '@mui/material/TextField';
import FavoriteIcon from '@mui/icons-material/Favorite';
import Slider from '@mui/material/Slider';
-import { DialogTitle, ListItemButton, MenuItem, Select } from '@mui/material';
+import { DialogTitle, Link, ListItemButton, MenuItem, Select } from '@mui/material';
import ViewModuleIcon from '@mui/icons-material/ViewModule';
import NavbarContext from 'components/context/NavbarContext';
import DarkTheme from 'components/context/DarkTheme';
@@ -175,7 +175,17 @@ export default function Settings() {
-
+
+ {t('settings.label.language_description')}
+
+ {t('global.language.title.weblate')}
+
+ >
+ }
+ />