Skip to content

Commit

Permalink
Translate strings in NcSearch
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed Mar 4, 2023
1 parent d049739 commit 1f0fca7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
9 changes: 9 additions & 0 deletions l10n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ msgstr ""
msgid "Hide password"
msgstr ""

msgid "Load more \"{options}\"\""
msgstr ""

msgid "Message limit of {count} characters reached"
msgstr ""

Expand Down Expand Up @@ -143,6 +146,9 @@ msgstr ""
msgid "Previous"
msgstr ""

msgid "Raw link {options}"
msgstr ""

msgid "Related resources"
msgstr ""

Expand Down Expand Up @@ -173,6 +179,9 @@ msgstr ""
msgid "Start slideshow"
msgstr ""

msgid "Start typing to search"
msgstr ""

msgid "Submit"
msgstr ""

Expand Down
13 changes: 9 additions & 4 deletions src/components/NcRichText/NcReferencePicker/NcSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div v-if="option.isRawLink" class="custom-option">
<LinkVariantIcon class="option-simple-icon" :size="20" />
<span class="option-text">
Raw link {{ option.resourceUrl }}
{{ t('Raw link {options}', { options: option.resourceUrl }) }}
</span>
</div>
<NcSearchResult v-else-if="option.resourceUrl"
Expand All @@ -38,17 +38,17 @@
<span v-if="option.isLoading" class="option-simple-icon icon-loading-small" />
<DotsHorizontalIcon v-else class="option-simple-icon" :size="20" />
<span class="option-text">
Load more "{{ option.name }}"
{{ t('Load more "{options}""', { options: option.name }) }}
</span>
</span>
</template>
<template #noOptions>
<MagnifyIcon class="option-simple-icon" :size="20" />
Start typing to search
{{ t('Start typing to search') }}
</template>
<template #noResult>
<MagnifyIcon class="option-simple-icon" :size="20" />
Start typing to search
{{ t('Start typing to search') }}
</template>
</NcMultiselect>
<NcEmptyContent v-if="showEmptyContent"
Expand All @@ -69,6 +69,8 @@ import { isUrl, delay } from './utils.js'
import NcEmptyContent from '../../NcEmptyContent/index.js'
import NcMultiselect from '../../NcMultiselect/index.js'
import l10n from '../../../mixins/l10n.js'
import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router'
Expand All @@ -88,6 +90,9 @@ export default {
NcMultiselect,
NcSearchResult,
},
mixins: [
l10n,
],
props: {
/**
* The selected reference provider
Expand Down

0 comments on commit 1f0fca7

Please sign in to comment.