Skip to content

Commit

Permalink
Merge pull request #410 from awcodes/chore/normalize-translations
Browse files Browse the repository at this point in the history
Chore: normalize translations
  • Loading branch information
awcodes authored Jan 6, 2024
2 parents dea6967 + 3dd8e2e commit ebdd9a4
Show file tree
Hide file tree
Showing 13 changed files with 104 additions and 104 deletions.
8 changes: 4 additions & 4 deletions resources/views/components/forms/curation.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ class="w-full h-full object-contain"
<div>
<dl class="px-3 pb-3 md:py-3">
<div class="flex gap-2">
<dt class="font-bold">{{ __('curator::views.curation.key') }}: </dt>
<dt class="font-bold">{{ trans('curator::views.curation.key') }}: </dt>
<dd x-text="state?.key"></dd>
</div>
<div class="flex gap-2">
<dt class="font-bold">{{ __('curator::views.curation.width') }}: </dt>
<dt class="font-bold">{{ trans('curator::views.curation.width') }}: </dt>
<dd x-text="state?.width"></dd>
</div>
<div class="flex gap-2">
<dt class="font-bold">{{ __('curator::views.curation.height') }}: </dt>
<dt class="font-bold">{{ trans('curator::views.curation.height') }}: </dt>
<dd x-text="state?.height"></dd>
</div>
<div class="flex gap-2">
<dt class="font-bold">{{ __('curator::views.curation.format') }}: </dt>
<dt class="font-bold">{{ trans('curator::views.curation.format') }}: </dt>
<dd x-text="state?.ext"></dd>
</div>
</dl>
Expand Down
18 changes: 9 additions & 9 deletions resources/views/components/forms/details.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,55 +12,55 @@
<dl class="grid md:grid-cols-3 gap-6">
<div>
<dt class="{{ $labelClasses }}">
{{ __('curator::views.details.uploaded_on') }}
{{ trans('curator::views.details.uploaded_on') }}
</dt>
<dd class="{{ $dataClasses }}">
{{ filled($record) ? $record->created_at->format('M j, Y') : '-' }}
</dd>
</div>
<div>
<dt class="{{ $labelClasses }}">
{{ __('curator::views.details.file_type') }}
{{ trans('curator::views.details.file_type') }}
</dt>
<dd class="{{ $dataClasses }}">
{{ filled($record) ? $record->type : '-' }}
</dd>
</div>
<div>
<dt class="{{ $labelClasses }}">
{{ __('curator::views.details.file_size') }}
{{ trans('curator::views.details.file_size') }}
</dt>
<dd class="{{ $dataClasses }}">
{{ filled($record) ? $record->size_for_humans : '-' }}
</dd>
</div>
<div>
<dt class="{{ $labelClasses }}">
{{ __('curator::views.details.dimensions') }}
{{ trans('curator::views.details.dimensions') }}
</dt>
<dd class="{{ $dataClasses }}">
{{ $dimensions }}
</dd>
</div>
<div>
<dt class="{{ $labelClasses }}">
{{ __('curator::views.details.disk') }}
{{ trans('curator::views.details.disk') }}
</dt>
<dd class="{{ $dataClasses }}">
{{ filled($record) ? $record->disk : '-' }}
</dd>
</div>
<div>
<dt class="{{ $labelClasses }}">
{{ __('curator::views.details.directory') }}
{{ trans('curator::views.details.directory') }}
</dt>
<dd class="{{ $dataClasses }}">
{{ filled($record) ? $record->directory : '-' }}
</dd>
</div>
<div class="md:col-span-3">
<dt class="{{ $labelClasses }}">
{{ __('curator::views.details.file_url') }}
{{ trans('curator::views.details.file_url') }}
</dt>
<dd class="{{ $dataClasses }}">
@if (filled($record))
Expand Down Expand Up @@ -90,15 +90,15 @@ class="text-sm flex-shrink-0 flex items-center gap-2"
class="w-4 h-4"
/>
</span>
<span x-show="! showMessage" class="filament-link">{{ __('curator::views.details.copy_url') }}</span>
<span x-show="! showMessage" class="filament-link">{{ trans('curator::views.details.copy_url') }}</span>
<span x-show="showMessage" class="text-success-500 font-bold" style="display:none;">
<x-filament::icon
alias="curator::copy-link"
icon="heroicon-s-check-circle"
class="w-4 h-4"
/>
</span>
<span x-show="showMessage" class="text-success-500 font-bold" style="display:none;">{{ __('curator::views.details.url_copied') }}</span>
<span x-show="showMessage" class="text-success-500 font-bold" style="display:none;">{{ trans('curator::views.details.url_copied') }}</span>
</button>
</div>
@else
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/modals/base-modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
:close-by-clicking-away="false"
display-classes="block curator-modal"
:footer-actions="[]"
:heading="__('curator::views.panel.heading')"
:heading="trans('curator::views.panel.heading')"
id="curator-modal"
:visible="true"
width="screen"
Expand Down
50 changes: 25 additions & 25 deletions resources/views/components/modals/curator-curation.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ class="h-full w-auto"
<div class="flex-1 overflow-hidden">
<div class="flex flex-col h-full overflow-y-auto">
<h2 class="font-bold py-2 px-4 mb-0">
{{ __('curator::views.curation.adjustments') }}
{{ trans('curator::views.curation.adjustments') }}
</h2>

<div class="flex-1 overflow-auto px-4 pb-4">
<div class="space-y-3">
<div x-show="presets" x-cloak>
<x-curator::curation-select prefix="Preset" name="preset" x-model="preset">
<option value="custom">{{ __('curator::views.curation.custom') }}</option>
<option value="custom">{{ trans('curator::views.curation.custom') }}</option>
<template x-for="preset in presets">
<option x-bind:value="preset.key" x-bind:key="preset.key" x-text="preset.label"></option>
</template>
Expand All @@ -49,24 +49,24 @@ class="h-full w-auto"
class="flex items-center w-full border border-gray-300 dark:border-gray-700 rounded-lg shadow-sm bg-gray-100 dark:bg-gray-800 text-sm"
x-bind:class="{'border-danger-600 ring-danger-600 dark:border-danger-400 dark:ring-danger-400' : key === null}"
>
<span class="w-20 flex-shrink-0 self-stretch flex items-center justify-center px-2">{{ __('curator::views.curation.key') }}</span>
<span class="w-20 flex-shrink-0 self-stretch flex items-center justify-center px-2">{{ trans('curator::views.curation.key') }}</span>
<input
type="text"
name="key"
x-model="key"
class="text-sm block w-full transition duration-75 border-none focus:border-primary-500 focus:ring-1 focus:ring-inset focus:ring-primary-500 disabled:opacity-70 dark:bg-gray-700 dark:text-white dark:focus:border-primary-500 !rounded-r-lg"
/>
</label>
<p class="text-xs mt-1 pl-2">{{ __('curator::views.curation.key_helper') }}</p>
<p class="text-xs mt-1 pl-2">{{ trans('curator::views.curation.key_helper') }}</p>
</div>
<x-curator::curation-select prefix="{{ __('curator::views.curation.format') }}" name="format" x-model="format">
<x-curator::curation-select prefix="{{ trans('curator::views.curation.format') }}" name="format" x-model="format">
@foreach ($formats as $format)
<option value="{{ $format }}">{{ $format }}</option>
@endforeach
</x-curator::curation-select>
<x-curator::curation-input
type="number"
prefix="{{ __('curator::views.curation.quality') }}"
prefix="{{ trans('curator::views.curation.quality') }}"
name="quality" x-model="quality"
/>
<x-curator::curation-input
Expand All @@ -84,22 +84,22 @@ class="text-sm block w-full transition duration-75 border-none focus:border-prim
/>
<x-curator::curation-input
type="text"
prefix="{{ __('curator::views.curation.width') }}"
prefix="{{ trans('curator::views.curation.width') }}"
suffix="px"
name="width"
x-on:input="setCropBoxWidth($event)"
x-bind:value="Math.round(cropBoxData.width)"
/>
<x-curator::curation-input
type="text"
prefix="{{ __('curator::views.curation.height') }}"
prefix="{{ trans('curator::views.curation.height') }}"
suffix="px" name="height" x-on:input="setCropBoxHeight($event)"
x-bind:value="Math.round(cropBoxData.height)"
/>
<x-curator::curation-input
type="text"
prefix="{{ __('curator::views.curation.rotate') }}"
suffix="{{ __('curator::views.curation.rotate_deg') }}"
prefix="{{ trans('curator::views.curation.rotate') }}"
suffix="{{ trans('curator::views.curation.rotate_deg') }}"
name="rotate" x-on:input="cropper.rotateTo($event.target.value)"
x-bind:value="data.rotate"
/>
Expand Down Expand Up @@ -151,9 +151,9 @@ class="!rounded-r-lg !rounded-l-none flex-1"
color="gray"
class="!rounded-l-lg !rounded-r-none flex-1"
x-on:click="cropper.zoom(0.1)"
x-tooltip.raw="{{ __('curator::views.curation.zoom_in') }}"
x-tooltip.raw="{{ trans('curator::views.curation.zoom_in') }}"
>
<span class="sr-only">{{ __('curator::views.curation.zoom_in') }}</span>
<span class="sr-only">{{ trans('curator::views.curation.zoom_in') }}</span>
<x-filament::icon
alias="curator::icons.zoom_in"
icon="heroicon-o-magnifying-glass-plus"
Expand All @@ -166,9 +166,9 @@ class="w-4 h-4"
color="gray"
class="!rounded-r-lg !rounded-l-none flex-1"
x-on:click="cropper.zoom(-0.1)"
x-tooltip.raw="{{ __('curator::views.curation.zoom_out') }}"
x-tooltip.raw="{{ trans('curator::views.curation.zoom_out') }}"
>
<span class="sr-only">{{ __('curator::views.curation.zoom_out') }}</span>
<span class="sr-only">{{ trans('curator::views.curation.zoom_out') }}</span>
<x-filament::icon
alias="curator::icons.zoom_out"
icon="heroicon-o-magnifying-glass-minus"
Expand All @@ -184,9 +184,9 @@ class="w-4 h-4"
color="gray"
class="!rounded-l-lg !rounded-r-none flex-1"
x-on:click="flipHorizontally"
x-tooltip.raw="{{ __('curator::views.curation.flip_horizontally') }}"
x-tooltip.raw="{{ trans('curator::views.curation.flip_horizontally') }}"
>
<span class="sr-only">{{ __('curator::views.curation.flip_horizontally') }}</span>
<span class="sr-only">{{ trans('curator::views.curation.flip_horizontally') }}</span>
<svg class="w-4 h-4" viewBox="0 0 24 24">
<path fill="none" stroke="currentColor" stroke-linecap="round"
stroke-linejoin="round" stroke-width="2"
Expand All @@ -198,9 +198,9 @@ class="!rounded-l-lg !rounded-r-none flex-1"
size="sm"
color="gray"
class="!rounded-r-lg !rounded-l-none flex-1" x-on:click="flipVertically"
x-tooltip.raw="{{ __('curator::views.curation.flip_vertically') }}"
x-tooltip.raw="{{ trans('curator::views.curation.flip_vertically') }}"
>
<span class="sr-only">{{ __('curator::views.curation.flip_vertically') }}</span>
<span class="sr-only">{{ trans('curator::views.curation.flip_vertically') }}</span>
<svg class="w-4 h-4" viewBox="0 0 24 24">
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m3 7l5 5l-5 5V7m18 0l-5 5l5 5V7m-9 13v2m0-8v2m0-8v2m0-8v2"/>
</svg>
Expand All @@ -214,9 +214,9 @@ class="!rounded-r-lg !rounded-l-none flex-1" x-on:click="flipVertically"
color="gray"
class="!rounded-l-lg !rounded-r-none flex-1"
x-on:click="cropper.setDragMode('move')"
x-tooltip.raw="{{ __('curator::views.curation.drag_mode') }}"
x-tooltip.raw="{{ trans('curator::views.curation.drag_mode') }}"
>
<span class="sr-only">{{ __('curator::views.curation.drag_mode') }}</span>
<span class="sr-only">{{ trans('curator::views.curation.drag_mode') }}</span>
<svg class="w-4 h-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="currentColor" d="M13 6v5h5V7.75L22.25 12L18 16.25V13h-5v5h3.25L12 22.25L7.75 18H11v-5H6v3.25L1.75 12L6 7.75V11h5V6H7.75L12 1.75L16.25 6H13Z"/>
</svg>
Expand All @@ -227,9 +227,9 @@ class="!rounded-l-lg !rounded-r-none flex-1"
color="gray"
class="!rounded-r-lg !rounded-l-none flex-1"
x-on:click="cropper.setDragMode('crop')"
x-tooltip.raw="{{ __('curator::views.curation.crop_mode') }}"
x-tooltip.raw="{{ trans('curator::views.curation.crop_mode') }}"
>
<span class="sr-only">{{ __('curator::views.curation.crop_mode') }}</span>
<span class="sr-only">{{ trans('curator::views.curation.crop_mode') }}</span>
<svg class="w-4 h-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="currentColor" d="M17 23v-4H7q-.825 0-1.412-.587Q5 17.825 5 17V7H1V5h4V1h2v16h16v2h-4v4Zm0-8V7H9V5h8q.825 0 1.413.588Q19 6.175 19 7v8Z"/>
</svg>
Expand All @@ -244,7 +244,7 @@ class="!rounded-r-lg !rounded-l-none flex-1"
class="flex-1"
x-on:click="cropper.reset()"
>
{{ __('curator::views.curation.reset') }}
{{ trans('curator::views.curation.reset') }}
</x-filament::button>
</div>
</div>
Expand All @@ -256,7 +256,7 @@ class="flex-1"
color="gray"
wire:click="$dispatch('close-modal', { id: '{{ $modalId }}' })"
>
{{ __('curator::views.curation.cancel') }}
{{ trans('curator::views.curation.cancel') }}
</x-filament::button>
<x-filament::button
type="button"
Expand All @@ -265,7 +265,7 @@ class="flex-1"
x-on:click="saveCuration()"
wire:target="saveCuration"
>
{{ __('curator::views.curation.save_curation') }}
{{ trans('curator::views.curation.save_curation') }}
</x-filament::button>
</div>
</div>
Expand Down
Loading

0 comments on commit ebdd9a4

Please sign in to comment.