Skip to content

Commit

Permalink
Merge pull request rrze-mmz#158 from rrze-mmz/152-update-translations…
Browse files Browse the repository at this point in the history
…-for-backend

Start clip backend pages translations
  • Loading branch information
stefanosgeo authored Sep 30, 2024
2 parents c160a78 + 1089f0a commit eff1c8e
Show file tree
Hide file tree
Showing 12 changed files with 218 additions and 139 deletions.
169 changes: 85 additions & 84 deletions composer.lock

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions resources/lang/de/clip.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
'comments' => 'Kommentare',
],
'backend' => [
'actions' => [
'go to clip public page' => 'Zur öffentlichen Clip-Seite gehen',
'got to clip statistics page' => 'Zur Clip-Statistikseite gehen',
'generate preview from frame' => 'Vorschau aus Frame erstellen',
'upload an image' => 'Ein Bild hochladen',
],
'delete' => [
'modal title' => 'Sind Sie sicher, dass Sie den Clip „:clip_title“ löschen möchten?',
'modal body' => 'Bitte vorsichtig vorgehen. Das Löschen dieses Clips wird alle zugehörigen Ressourcen,'.
Expand Down
14 changes: 14 additions & 0 deletions resources/lang/de/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
'name' => 'Name',
'read' => 'lesen',
'write' => 'schreiben',
'created' => 'erstellt',
'by' => 'von',
'at' => 'am',
'or' => 'oder',
'updated' => 'aktualisiert',
'full name' => 'Vollständiger Name',
'type' => 'Typ',
Expand Down Expand Up @@ -47,6 +51,16 @@
'tags' => 'Tags',
'accessible via' => 'Zugänglich über',
'password' => 'Passwort',
'recording date' => 'Aufnahmedatum',
'description' => 'Beschreibung',
'allow comments' => 'Kommentare zulassen',
'livestream clip' => 'Livestream-Clip',
'time availability' => 'Zeitverfügbarkeit',
'start time' => 'Startzeit',
'end time' => 'Endzeit',
'episode' => 'Folge',
'chapter' => 'Kapitel',

],
'menu' => [
'dashboard' => 'Dashboard',
Expand Down
18 changes: 18 additions & 0 deletions resources/lang/de/player.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

return [
'common' => [
'camera' => 'Kamera',
'slides' => 'Folien',
'sbs' => 'Nebeneinander',
],
'frontend' => [

],
'backend' => [
'quick links' => 'Schnelle Links',
'livestream info' => 'Livestream-Informationen',
'preview image' => 'Vorschaubild',
'load different video assets' => 'Verschiedene Videoressourcen laden',
],
];
6 changes: 6 additions & 0 deletions resources/lang/en/clip.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
'comments' => 'Kommentare',
],
'backend' => [
'actions' => [
'go to clip public page' => 'Go to clip public page',
'got to clip statistics page' => 'Got clip statistics page',
'generate preview from frame' => 'Generate preview from frame',
'upload an image' => 'Upload an image',
],
'delete' => [
'modal title' => 'Are you certain you wish to delete the clip titled ":clip_title"?',
'modal body' => 'Please proceed with caution. Deleting this clip will permanently remove all associated '.
Expand Down
13 changes: 13 additions & 0 deletions resources/lang/en/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
'name' => 'Name',
'read' => 'read',
'write' => 'write',
'created' => 'created',
'by' => 'by',
'at' => 'at',
'or' => 'or',
'updated' => 'updated',
'full name' => 'Full name',
'type' => 'Type',
Expand Down Expand Up @@ -47,6 +51,15 @@
'tags' => 'Tags',
'accessible via' => 'Accessible via',
'password' => 'Password',
'recording date' => 'Recording date',
'description' => 'Description',
'allow comments' => 'Allow comments',
'livestream clip' => 'Live stream clip',
'time availability' => 'Time availability',
'start time' => 'Start time',
'end time' => 'End time',
'episode' => 'Episode',
'chapter' => 'Chapter',
],
'menu' => [
'dashboard' => 'Dashboard',
Expand Down
18 changes: 18 additions & 0 deletions resources/lang/en/player.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

return [
'common' => [
'camera' => 'Camera',
'slides' => 'Slides',
'sbs' => 'Side By Side',
],
'frontend' => [

],
'backend' => [
'quick links' => 'Quick Links',
'livestream info' => 'Live Stream Info',
'preview image' => 'Preview Image',
'load different video assets' => 'Load Different Video Assets',
],
];
40 changes: 20 additions & 20 deletions resources/views/backend/clips/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ class="flex items-center bg-blue-600 hover:bg-blue-700 space-x-2 text-sm"
</div>
<div class="flex pt-2 text-sm italic pb-2">
<span
class="pl-2"> created
class="pl-2"> {{ __('common.created') }}
@if(!is_null($clip->owner_id))
by {{ $clip->owner->getFullNameAttribute() }} ({{ $clip->owner->username }})
{{ __('common.by') }} {{ $clip->owner->getFullNameAttribute() }} ({{ $clip->owner->username }})
@endif
at {{$clip->created_at}}</span>
{{ __('common.at') }} {{$clip->created_at}}</span>
</div>
</div>
<div class="flex px-2 py-2">
Expand All @@ -69,25 +69,25 @@ class="pl-2"> created
<x-form.input field-name="episode"
input-type="number"
:value="old('episode', $clip->episode)"
label="Episode"
label="{{ __('common.metadata.episode') }}"
:full-col="false"
:required="true" />

<x-form.datepicker field-name="recording_date"
label="Recording Date"
label="{{ __('common.metadata.recording date') }}"
:full-col="false"
:value="old('recording_date', $clip->recording_date)" />

<x-form.input field-name="title"
input-type="text"
:value="old('title', $clip->title)"
label="Title"
label="{{ __('common.metadata.title') }}"
:fullCol="true"
:required="true" />

@if($clip->series->chapters()->count() > 0)
<x-form.select2-single field-name="chapter_id"
label="Chapter"
label="{{ __('common.metadata.chapter') }}"
select-class="select2-tides"
model="chapter"
:where-i-d="old('series_id', $clip->series->id)"
Expand All @@ -96,16 +96,16 @@ class="pl-2"> created
@endif
<x-form.textarea field-name="description"
:value="old('description', $clip->description)"
label="Description" />
label="{{ __('common.metadata.description') }}" />

<x-form.select2-single field-name="organization_id"
label="Organization"
label="{{ __('common.metadata.organization') }}"
select-class="select2-tides-organization"
model="organization"
:selectedItem="old('organization_id', $clip->organization_id)"
/>
<x-form.select2-single field-name="language_id"
label="Language"
label="{{ __('common.metadata.language') }}"
select-class="select2-tides"
model="language"
:selectedItem="old('language_id', $clip->language_id)"
Expand All @@ -114,30 +114,30 @@ class="pl-2"> created
<div class="mb-2 border-b border-solid border-b-black pb-2 text-left text-xl font-bold
dark:text-white dark:border-white"
>
Metadata
{{ __('common.metadata.metadata') }}
</div>

<x-form.select2-single field-name="context_id"
label="Context"
label="{{ __('common.metadata.context') }}"
select-class="select2-tides"
model="context"
:selectedItem="old('context_id', $clip->context_id)"
/>
<x-form.select2-single field-name="format_id"
label="Format"
label="{{ __('common.metadata.format') }}"
select-class="select2-tides"
model="format"
:selectedItem="old('format_id', $clip->format_id)"
/>
<x-form.select2-single field-name="type_id"
label="Type"
label="{{ __('common.metadata.type') }}"
select-class="select2-tides"
model="type"
:selectedItem="old('clip_id', $clip->type_id)"
/>

<x-form.select2-single field-name="semester_id"
label="Semester"
label="{{ __('common.metadata.semester') }}"
select-class="select2-tides"
model="semester"
:selectedItem="old('semester_id', $clip->semester_id)"
Expand All @@ -151,28 +151,28 @@ class="pl-2"> created

<x-form.select2-multiple field-name="tags"
:model="$clip"
label="Tags"
label="{{ __('common.metadata.tags') }}"
select-class="select2-tides-tags"
:items="$clip->tags" />

<x-form.select2-multiple field-name="acls"
:model="$clip"
label="Accessible via"
label="{{ __('common.metadata.accessible via') }}"
select-class="select2-tides" />
@can('administrate-admin-portal-pages')
<x-form.password field-name="password"
:value="old('password', $clip->password)"
label="Password"
label="{{ __('common.metadata.password') }}"
:full-col="true"
/>
@endcan
<x-form.toggle-button :value="old('allow_comments', $clip->allow_comments)"
label="Allow comments"
label="{{ __('common.metadata.allow comments') }}"
field-name="allow_comments"
/>

<x-form.toggle-button :value="old('is_public', $clip->is_public)"
label="Public available"
label="{{ __('common.forms.public available') }}"
field-name="is_public"
/>

Expand Down
32 changes: 18 additions & 14 deletions resources/views/backend/clips/main/_player.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@click="selected !== 0 ? selected = 0 : selected = null">
<div class="flex items-center justify-between">
<span>
Quick Links
{{ __('player.backend.quick links') }}
</span>
<x-heroicon-o-plus-circle class="h-6 w-6" />
</div>
Expand All @@ -32,7 +32,7 @@ class="bg-green-600 hover:bg-green-700 w-full"
>
<x-heroicon-o-arrow-right-circle class="w-6 h-6" />
<div class="pl-2">
Go to public page
{{ __('clip.backend.actions.go to clip public page') }}
</div>
</x-button>
</a>
Expand All @@ -42,7 +42,7 @@ class="bg-green-600 hover:bg-green-700 w-full"
>
<x-heroicon-o-arrow-right-circle class="w-6 h-6" />
<div class="pl-2">
Go to statistics page
{{ __('clip.backend.actions.got to clip statistics page') }}
</div>
</x-button>
</a>
Expand Down Expand Up @@ -70,8 +70,8 @@ class="bg-green-600 hover:bg-green-700 w-full"
@if($clip->livestream)
<div class="flex flex-col space-y-4 dark:text-white w-full ">
<form
action="{{route('livestreams.cancelReservation', $clip->livestream->id)}}"
method="POST">
action="{{route('livestreams.cancelReservation', $clip->livestream->id)}}"
method="POST">
@csrf
<div class="mx-4 ">
<div class="border-b mb-4">Active livestream room
Expand Down Expand Up @@ -157,7 +157,7 @@ class="bg-blue-600 hover:bg-blue-700 w-full"
@click="selected !== 1 ? selected = 1 : selected = null">
<div class="flex items-center justify-between">
<span>
Preview image
{{ __('player.backend.preview image') }}
</span>
<x-heroicon-o-plus-circle class="h-6 w-6" />
</div>
Expand All @@ -182,13 +182,15 @@ class="space-y-4 flex flex-col space-x-2">
<input id="currentTime" type="text" name="recentFrame"
class="dark:text-black h-200">
<x-button type="submit" class="py-2 bg-blue-600 hover:bg-blue-700">
Generate Preview from Frame
{{ __('clip.backend.actions.generate preview from frame') }}
</x-button>
</form>
</div>
<div class="flex flex-nowrap items-center justify-center space-x-2">
<span class="h-px w-20 bg-gray-300"></span>
<span class="dark:text-white">OR</span>
<span class="dark:text-white uppercase">
{{ __('common.or') }}
</span>
<span class="h-px w-20 bg-gray-300"></span>
</div>
<div>
Expand All @@ -206,8 +208,10 @@ class="px-2">
<x-button class="bg-blue-600 hover:bg-blue-700 ">
<div class="flex">
<x-heroicon-o-arrow-up-circle
class="h-6 w-6"></x-heroicon-o-arrow-up-circle>
<span class="pl-4">Set uploaded image</span>
class="h-6 w-6"></x-heroicon-o-arrow-up-circle>
<span class="pl-4">
{{ __('clip.backend.actions.upload an image') }}
</span>
</div>
</x-button>
</form>
Expand All @@ -224,7 +228,7 @@ class="h-6 w-6"></x-heroicon-o-arrow-up-circle>
@click="selected !== 2 ? selected = 2 : selected = null">
<div class="flex items-center justify-between">
<span>
Load different video assets
{{ __('player.backend.load different video assets') }}
</span>
<x-heroicon-o-plus-circle class="h-6 w-6" />
</div>
Expand All @@ -244,7 +248,7 @@ class="video-link w-full flex px-4 py-2 bg-blue-800 border border-transparent ro
title="composite video stream">
<x-heroicon-o-view-columns class="w-6 h-6 fill-white" />
<div class="pl-2">
Side by Side
{{ __('player.common.sbs') }}
</div>
</a>
@endif
Expand All @@ -257,7 +261,7 @@ class="video-link flex px-4 py-2 bg-blue-800 border border-transparent rounded-m
title="presenter video stream place-items-center">
<x-heroicon-o-user class="w-6 h-6 fill-white" />
<div class="pl-2">
Camera
{{ __('player.common.camera') }}
</div>
</a>
@endif
Expand All @@ -271,7 +275,7 @@ class="video-link flex px-4 py-2 bg-blue-800 border border-transparent
title="presentation video stream">
<x-heroicon-o-computer-desktop class="w-6 h-6 fill-white" />
<div class="pl-2">
Slides
{{ __('player.common.slides') }}
</div>
</a>
@endif
Expand Down
Loading

0 comments on commit eff1c8e

Please sign in to comment.