Added context strings

This commit is contained in:
Jo Vuit 2019-02-11 16:10:30 +01:00
parent 51514944a3
commit 7534670e30
1 changed files with 7 additions and 7 deletions

View File

@ -4,22 +4,22 @@
<div class="two fields">
<div class="field">
<div class="field">
<label for="embed-width"><translate>Widget width</translate></label>
<p><translate>Leave empty for a responsive widget</translate></p>
<label for="embed-width"><translate :translate-context="'Popup/Embed/Input.Label'">Widget width</translate></label>
<p><translate :translate-context="'Popup/Embed/Paragraph'">Leave empty for a responsive widget</translate></p>
<input id="embed-width" type="number" v-model.number="width" min="0" step="10" />
</div>
<template v-if="type != 'track'">
<br>
<div class="field">
<label for="embed-height"><translate>Widget height</translate></label>
<label for="embed-height"><translate :translate-context="'Popup/Embed/Input.Label'">Widget height</translate></label>
<input id="embed-height" type="number" v-model="height" :min="minHeight" max="1000" step="10" />
</div>
</template>
</div>
<div class="field">
<button @click="copy" class="ui right floated button"><translate>Copy</translate></button>
<label for="embed-width"><translate>Embed code</translate></label>
<p><translate>Copy/paste this code in your website HTML</translate></p>
<button @click="copy" class="ui right floated button"><translate :translate-context="'Popup/*/Button.Label/Verb'">Copy</translate></button>
<label for="embed-width"><translate :translate-context="'Popup/Embed/Input.Label/Noun'">Embed code</translate></label>
<p><translate :translate-context="'Popup/Embed/Paragraph'">Copy/paste this code in your website HTML</translate></p>
<div class="ui hidden divider"></div>
<textarea ref="textarea":value="embedCode" rows="3" readonly>
</textarea>
@ -27,7 +27,7 @@
</div>
</div>
<div class="preview">
<h3><translate>Preview</translate></h3>
<h3><translate :translate-context="'Popup/Embed/Title/Noun'">Preview</translate></h3>
<iframe :width="frameWidth" :height="height" scrolling="no" frameborder="no" :src="iframeSrc"></iframe>
</div>
</div>