mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-24 11:02:00 +00:00
fix: add translation key for audio-clipper trim labels
This commit is contained in:
parent
f0685e4479
commit
db191ac31b
@ -75,6 +75,12 @@ export class AudioClipper extends LitElement {
|
|||||||
@property({ type: Number, attribute: "height" })
|
@property({ type: Number, attribute: "height" })
|
||||||
height = 100;
|
height = 100;
|
||||||
|
|
||||||
|
@property({ attribute: "trim-start-label" })
|
||||||
|
trimStartLabel = "Trim start";
|
||||||
|
|
||||||
|
@property({ attribute: "trim-end-label" })
|
||||||
|
trimEndLabel = "Trim end";
|
||||||
|
|
||||||
@state()
|
@state()
|
||||||
_isPlaying = false;
|
_isPlaying = false;
|
||||||
|
|
||||||
@ -853,8 +859,12 @@ export class AudioClipper extends LitElement {
|
|||||||
<time>${this.secondsToHHMMSS(this._currentTime)}</time>
|
<time>${this.secondsToHHMMSS(this._currentTime)}</time>
|
||||||
</div>
|
</div>
|
||||||
<div class="toolbar__trim-controls">
|
<div class="toolbar__trim-controls">
|
||||||
<button @click="${() => this.trim("start")}">Trim start</button>
|
<button @click="${() => this.trim("start")}">
|
||||||
<button @click="${() => this.trim("end")}">Trim end</button>
|
${this.trimStartLabel}
|
||||||
|
</button>
|
||||||
|
<button @click="${() => this.trim("end")}">
|
||||||
|
${this.trimEndLabel}
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
@ -57,6 +57,8 @@ return [
|
|||||||
'theme' => 'Select a theme',
|
'theme' => 'Select a theme',
|
||||||
'start_time' => 'Start at',
|
'start_time' => 'Start at',
|
||||||
'duration' => 'Duration',
|
'duration' => 'Duration',
|
||||||
|
'trim_start' => 'Trim start',
|
||||||
|
'trim_end' => 'Trim end',
|
||||||
'submit' => 'Create video clip',
|
'submit' => 'Create video clip',
|
||||||
],
|
],
|
||||||
'requirements' => [
|
'requirements' => [
|
||||||
|
@ -57,6 +57,8 @@ return [
|
|||||||
'theme' => 'Sélectionnez un thème',
|
'theme' => 'Sélectionnez un thème',
|
||||||
'start_time' => 'Démarrer à',
|
'start_time' => 'Démarrer à',
|
||||||
'duration' => 'Durée',
|
'duration' => 'Durée',
|
||||||
|
'trim_start' => 'Rogner le début',
|
||||||
|
'trim_end' => 'Rogner la fin',
|
||||||
'submit' => 'Créer un extrait vidéo',
|
'submit' => 'Créer un extrait vidéo',
|
||||||
],
|
],
|
||||||
'requirements' => [
|
'requirements' => [
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
required="true"
|
required="true"
|
||||||
class="max-w-sm"
|
class="max-w-sm"
|
||||||
/>
|
/>
|
||||||
<audio-clipper start-time="<?= old('start_time', 0) ?>" duration="<?= old('duration', 30) ?>" min-duration="10" volume=".5" height="50" class="mt-8">
|
<audio-clipper start-time="<?= old('start_time', 0) ?>" duration="<?= old('duration', 30) ?>" min-duration="10" volume=".5" height="50" trim-start-label="<?= lang('VideoClip.form.trim_start') ?>" trim-end-label="<?= lang('VideoClip.form.trim_end') ?>" class="mt-8">
|
||||||
<audio slot="audio" src="<?= $episode->audio->file_url ?>" preload="auto">
|
<audio slot="audio" src="<?= $episode->audio->file_url ?>" preload="auto">
|
||||||
Your browser does not support the <code>audio</code> element.
|
Your browser does not support the <code>audio</code> element.
|
||||||
</audio>
|
</audio>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<video-clip-previewer duration="<?= old('duration', 30) ?>">
|
<video-clip-previewer duration="<?= old('duration', 30) ?>">
|
||||||
<img slot="preview_image" src="<?= $episode->cover->thumbnail_url ?>" alt="<?= $episode->cover->description ?>" loading="lazy" />
|
<img slot="preview_image" src="<?= $episode->cover->thumbnail_url ?>" alt="<?= $episode->cover->description ?>" loading="lazy" />
|
||||||
</video-clip-previewer>
|
</video-clip-previewer>
|
||||||
<audio-clipper start-time="<?= old('start_time', 0) ?>" duration="<?= old('duration', 30) ?>" min-duration="10" volume=".5" height="50">
|
<audio-clipper start-time="<?= old('start_time', 0) ?>" duration="<?= old('duration', 30) ?>" min-duration="10" volume=".5" height="50" trim-start-label="<?= lang('VideoClip.form.trim_start') ?>" trim-end-label="<?= lang('VideoClip.form.trim_end') ?>">
|
||||||
<audio slot="audio" src="<?= $episode->audio->file_url ?>" preload="auto">
|
<audio slot="audio" src="<?= $episode->audio->file_url ?>" preload="auto">
|
||||||
Your browser does not support the <code>audio</code> element.
|
Your browser does not support the <code>audio</code> element.
|
||||||
</audio>
|
</audio>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user