Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Fix translations for contextual helpers #2334

Merged
merged 1 commit into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-translate-contextual-helpers
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Translate contextual helpers

We've fixed a bug where contextual helpers were not translated.

https://github.com/owncloud/owncloud-design-system/pull/2334
https://github.com/owncloud/web/issues/7716
15 changes: 9 additions & 6 deletions src/components/molecules/OcInfoDrop/OcInfoDrop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@
>
<div class="info-drop-content">
<div v-if="title" class="oc-flex oc-flex-between info-header oc-border-b oc-pb-s">
<span class="oc-m-rm info-title" v-text="title" />
<span class="oc-m-rm info-title" v-text="$gettext(title)" />
<oc-button appearance="raw">
<oc-icon name="close" fill-type="line" size="medium" />
</oc-button>
</div>
<p class="info-text" v-text="text" />
<p class="info-text" v-text="$gettext(text)" />
<dl v-if="list.length" class="info-list">
<component :is="item.headline ? 'dt' : 'dd'" v-for="(item, index) in list" :key="index">
{{ item.text }}
</component>
<component
:is="item.headline ? 'dt' : 'dd'"
v-for="(item, index) in list"
:key="index"
v-text="$gettext(item.text)"
/>
</dl>
<p v-if="endText" class="info-text-end" v-text="endText" />
<p v-if="endText" class="info-text-end" v-text="$gettext(endText)" />
<oc-button
v-if="readMoreLink"
v-translate
Expand Down