From 50e88a1227c5ef7b03d6bb074782f8efe9eb0ce6 Mon Sep 17 00:00:00 2001 From: Jonas Rittershofer Date: Mon, 22 Mar 2021 13:44:48 +0100 Subject: [PATCH] Fix translation extraction Signed-off-by: Jonas Rittershofer --- build/extract-l10n.js | 4 ++-- l10n/messages.pot | 6 ++++++ src/components/AppSidebar/AppSidebar.vue | 7 +++---- .../SettingsInputText/SettingsInputText.vue | 11 ++++++++++- src/components/SettingsSection/SettingsSection.vue | 14 +++++++++++--- 5 files changed, 32 insertions(+), 10 deletions(-) diff --git a/build/extract-l10n.js b/build/extract-l10n.js index dcd9b06201..401e106300 100644 --- a/build/extract-l10n.js +++ b/build/extract-l10n.js @@ -11,8 +11,8 @@ extractor }), JsExtractors.callExpression('n', { arguments: { - text: 1, - textPlural: 2, + text: 0, + textPlural: 1, } }), ]) diff --git a/l10n/messages.pot b/l10n/messages.pot index 63a6e780c9..6c8267744f 100644 --- a/l10n/messages.pot +++ b/l10n/messages.pot @@ -26,6 +26,9 @@ msgstr "" msgid "Custom" msgstr "" +msgid "External documentation for {title}" +msgstr "" + msgid "Flags" msgstr "" @@ -83,6 +86,9 @@ msgstr "" msgid "Start slideshow" msgstr "" +msgid "Submit" +msgstr "" + msgid "Symbols" msgstr "" diff --git a/src/components/AppSidebar/AppSidebar.vue b/src/components/AppSidebar/AppSidebar.vue index e4ed81a789..07303a12d2 100644 --- a/src/components/AppSidebar/AppSidebar.vue +++ b/src/components/AppSidebar/AppSidebar.vue @@ -131,7 +131,7 @@ class="app-sidebar-header"> @@ -237,9 +237,9 @@ import Actions from '../Actions' import Focus from '../../directives/Focus' import Linkify from '../../directives/Linkify' import Tooltip from '../../directives/Tooltip' -import l10n from '../../mixins/l10n' import AppSidebarTabs from './AppSidebarTabs' import EmptyContent from '../EmptyContent/EmptyContent' +import { t } from '../../l10n' import { directive as ClickOutside } from 'v-click-outside' export default { @@ -258,8 +258,6 @@ export default { Tooltip, }, - mixins: [l10n], - props: { active: { type: String, @@ -365,6 +363,7 @@ export default { data() { return { + closeTranslated: t('Close'), isStarred: this.starred, } }, diff --git a/src/components/SettingsInputText/SettingsInputText.vue b/src/components/SettingsInputText/SettingsInputText.vue index 749bb75135..51ae456232 100644 --- a/src/components/SettingsInputText/SettingsInputText.vue +++ b/src/components/SettingsInputText/SettingsInputText.vue @@ -33,7 +33,7 @@ @input="onInput" @change="onChange">