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

Commit

Permalink
Merge pull request #2334 from owncloud/translate-contextual-helpers
Browse files Browse the repository at this point in the history
Fix translations for contextual helpers
  • Loading branch information
JammingBen authored Oct 4, 2022
2 parents 6aee755 + 51858f4 commit 5e621c1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
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

0 comments on commit 5e621c1

Please sign in to comment.