From 4880e55552320477cd3977bb6a8324dac0823a85 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Tue, 23 Feb 2021 23:42:47 +0300 Subject: [PATCH] Add i18n translations o settings tabs --- src/lang/en.js | 11 ++++++++++- src/views/settings/components/ActivityPub.vue | 2 +- src/views/settings/components/Authentication.vue | 2 +- src/views/settings/components/Captcha.vue | 2 +- src/views/settings/components/Esshd.vue | 2 +- src/views/settings/components/Gopher.vue | 2 +- src/views/settings/components/Http.vue | 2 +- src/views/settings/components/Instance.vue | 2 +- src/views/settings/components/JobQueue.vue | 2 +- src/views/settings/components/LinkFormatter.vue | 2 +- src/views/settings/components/Logger.vue | 2 +- src/views/settings/components/MRF.vue | 2 +- src/views/settings/components/Mailer.vue | 2 +- src/views/settings/components/MediaProxy.vue | 2 +- src/views/settings/components/Metadata.vue | 2 +- src/views/settings/components/Other.vue | 2 +- src/views/settings/components/RateLimiters.vue | 2 +- src/views/settings/components/Upload.vue | 2 +- src/views/settings/components/WebPush.vue | 2 +- .../components/inputComponents/IconsInput.vue | 4 ++-- .../components/inputComponents/RateLimitInput.vue | 8 ++++---- 21 files changed, 34 insertions(+), 25 deletions(-) diff --git a/src/lang/en.js b/src/lang/en.js index 227eb2db..60d48a83 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -411,6 +411,7 @@ export default { moderationLog: 'Moderation Log' }, settings: { + submit: 'Submit', settings: 'Settings', instance: 'Instance', upload: 'Upload', @@ -461,7 +462,15 @@ export default { install: 'Install', installed: 'Installed', name: 'Name', - git: 'Git' + git: 'Git', + installAnotherFrontend: 'Install another frontend', + addKeyValuePair: 'Add another `key - value` pair to this icon', + addIconConfig: 'Add another icon configuration', + setLimits: 'Set different limits for unauthenticated and authenticated users', + unauthenticatedUsers: 'Unauthenticated users', + authenticatedUsers: 'Authenticated users', + setLimitsForAll: 'Set limit for all users' + }, invites: { inviteTokens: 'Invite tokens', diff --git a/src/views/settings/components/ActivityPub.vue b/src/views/settings/components/ActivityPub.vue index e18a2267..38c1a739 100644 --- a/src/views/settings/components/ActivityPub.vue +++ b/src/views/settings/components/ActivityPub.vue @@ -8,7 +8,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/Authentication.vue b/src/views/settings/components/Authentication.vue index 03c3e0c5..006fdf0c 100644 --- a/src/views/settings/components/Authentication.vue +++ b/src/views/settings/components/Authentication.vue @@ -16,7 +16,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/Captcha.vue b/src/views/settings/components/Captcha.vue index 819e2b40..f39c076f 100644 --- a/src/views/settings/components/Captcha.vue +++ b/src/views/settings/components/Captcha.vue @@ -8,7 +8,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/Esshd.vue b/src/views/settings/components/Esshd.vue index a46f012d..a3141563 100644 --- a/src/views/settings/components/Esshd.vue +++ b/src/views/settings/components/Esshd.vue @@ -4,7 +4,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/Gopher.vue b/src/views/settings/components/Gopher.vue index ffc2fa19..2382b987 100644 --- a/src/views/settings/components/Gopher.vue +++ b/src/views/settings/components/Gopher.vue @@ -4,7 +4,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/Http.vue b/src/views/settings/components/Http.vue index 8aa8a23b..87a6d94b 100644 --- a/src/views/settings/components/Http.vue +++ b/src/views/settings/components/Http.vue @@ -16,7 +16,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/Instance.vue b/src/views/settings/components/Instance.vue index e3dacea2..f751e8dc 100644 --- a/src/views/settings/components/Instance.vue +++ b/src/views/settings/components/Instance.vue @@ -45,7 +45,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/JobQueue.vue b/src/views/settings/components/JobQueue.vue index d2691af8..1a07356d 100644 --- a/src/views/settings/components/JobQueue.vue +++ b/src/views/settings/components/JobQueue.vue @@ -24,7 +24,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/LinkFormatter.vue b/src/views/settings/components/LinkFormatter.vue index cb44a457..c92f1a4f 100644 --- a/src/views/settings/components/LinkFormatter.vue +++ b/src/views/settings/components/LinkFormatter.vue @@ -4,7 +4,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/Logger.vue b/src/views/settings/components/Logger.vue index 3a3abdba..b350c07d 100644 --- a/src/views/settings/components/Logger.vue +++ b/src/views/settings/components/Logger.vue @@ -16,7 +16,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/MRF.vue b/src/views/settings/components/MRF.vue index dd92b3cb..36e548c2 100644 --- a/src/views/settings/components/MRF.vue +++ b/src/views/settings/components/MRF.vue @@ -7,7 +7,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/Mailer.vue b/src/views/settings/components/Mailer.vue index 65ec18e0..ee0e8475 100644 --- a/src/views/settings/components/Mailer.vue +++ b/src/views/settings/components/Mailer.vue @@ -20,7 +20,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/MediaProxy.vue b/src/views/settings/components/MediaProxy.vue index 701a28ff..3c9ebc47 100644 --- a/src/views/settings/components/MediaProxy.vue +++ b/src/views/settings/components/MediaProxy.vue @@ -16,7 +16,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/Metadata.vue b/src/views/settings/components/Metadata.vue index d22be109..3326bb6f 100644 --- a/src/views/settings/components/Metadata.vue +++ b/src/views/settings/components/Metadata.vue @@ -8,7 +8,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/Other.vue b/src/views/settings/components/Other.vue index 91a9fe2a..86a5507e 100644 --- a/src/views/settings/components/Other.vue +++ b/src/views/settings/components/Other.vue @@ -26,7 +26,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/RateLimiters.vue b/src/views/settings/components/RateLimiters.vue index f7f0c976..42b84782 100644 --- a/src/views/settings/components/RateLimiters.vue +++ b/src/views/settings/components/RateLimiters.vue @@ -4,7 +4,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/Upload.vue b/src/views/settings/components/Upload.vue index 124de255..2251df24 100644 --- a/src/views/settings/components/Upload.vue +++ b/src/views/settings/components/Upload.vue @@ -24,7 +24,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/WebPush.vue b/src/views/settings/components/WebPush.vue index 0a09c17d..c84cae18 100644 --- a/src/views/settings/components/WebPush.vue +++ b/src/views/settings/components/WebPush.vue @@ -4,7 +4,7 @@
- Submit + {{ $t('settings.submit') }}
diff --git a/src/views/settings/components/inputComponents/IconsInput.vue b/src/views/settings/components/inputComponents/IconsInput.vue index e2f09165..1b4f1e9d 100644 --- a/src/views/settings/components/inputComponents/IconsInput.vue +++ b/src/views/settings/components/inputComponents/IconsInput.vue @@ -12,13 +12,13 @@
- Add another `key - value` pair to this icon + {{ $t('settings.addKeyValuePair') }}
- Add another icon configuration + {{ $t('settings.addIconConfig') }}
diff --git a/src/views/settings/components/inputComponents/RateLimitInput.vue b/src/views/settings/components/inputComponents/RateLimitInput.vue index 60668369..18deaf0d 100644 --- a/src/views/settings/components/inputComponents/RateLimitInput.vue +++ b/src/views/settings/components/inputComponents/RateLimitInput.vue @@ -16,14 +16,14 @@ @input="parseRateLimiter($event, setting.key, 'limit', 'oneLimit', rateLimitAllUsers)"/>
-

Set different limits for unauthenticated and authenticated users

+

{{ $t('settings.setLimits') }}

- Unauthenticated users: + {{ $t('settings.unauthenticatedUsers') }}:
@@ -49,7 +49,7 @@
- Authenticated users: + {{ $t('settings.authenticatedUsers') }}:
@@ -70,7 +70,7 @@
-

Set limit for all users

+

{{ $t('settings.setLimitsForAll') }}