1
0
Fork 0

views: add translations to some strings.

This commit is contained in:
Henrik Hautakoski 2021-07-31 14:00:06 +02:00
parent f5252052ff
commit 531da903ae
6 changed files with 16 additions and 13 deletions

View file

@ -1,17 +1,17 @@
<x-layout name="auth">
<h1 class="text-gray-500 text-3xl text-center mb-4">Login</h1>
<h1 class="text-gray-500 text-3xl text-center mb-4">{{ __('Login') }}</h1>
<x-form action="{{ route('auth.login.store') }}">
<x-input name="username" placeholder="{{ __('Username') }}" class="mb-2"/>
<x-input-password placeholder="{{ __('Password') }}" class="mb-2" />
<x-button element="input" type="submit" name="submit" value="Login" class="w-full" />
<x-button element="input" type="submit" name="submit" value="{{ __('Login') }}" class="w-full" />
</x-form>
@if (config('services.discord.client_id'))
<div class="flex items-center justify-between my-4">
<div class="bg-gray-200 h-px w-full"></div>
<div class="mx-4">OR</div>
<div class="mx-4 uppercase">{{ __('or') }}</div>
<div class="bg-gray-200 h-px w-full"></div>
</div>

View file

@ -10,7 +10,10 @@
</x-slot>
<div class="mx-auto max-w-sm p-4">
<p>Download this <x-link href="https://www.curseforge.com/wow/addons/professions-exporter" target="_blank">exporter addon</x-link>
<p>
{{ __('Download this') }}
<x-link href="https://www.curseforge.com/wow/addons/professions-exporter" target="_blank">{{ __('addon') }}</x-link>
</p>
<x-form action="{{ route('character.profession.store', [ 'character' => $character->slug ]) }}">
<div class="mb-2">

View file

@ -30,7 +30,7 @@
</x-link>
<x-section-heading>
<h2 class="text-3xl">Professions</h2>
<h2 class="text-3xl">{{ __('Professions') }}</h2>
<div>
@can('import_profession', $character)
<x-button element="a" class="flex items-center" href="{{ route('character.profession.create', [ 'character' => $character->slug ]) }}">

View file

@ -25,8 +25,8 @@
<div class="flex justify-between">
<p>
{{ Str::ucfirst($character->race) }}
{{ Str::ucfirst($character->class) }}
{{ __(Str::ucfirst($character->race)) }}
{{ __(Str::ucfirst($character->class)) }}
</p>
<div class="flex gap-1">

View file

@ -32,7 +32,7 @@
</div>
<div class="mt-2">
<x-button element="input" type="submit" value="{{$this->character->exists ? 'Save' : 'Create' }}" />
<x-button element="input" type="submit" value="{{ __($this->character->exists ? 'Save' : 'Create') }}" />
</div>
</x-form>

View file

@ -1,8 +1,8 @@
<div>
<div class="grid grid-cols-3 gap-4 mb-2">
<x-input wire:model="name" name="name" placeholder="Recipe" />
<x-input wire:model="crafter" name="crafter" placeholder="Crafter" />
<x-input wire:model="name" name="name" placeholder="{{ __('Recipe') }}" />
<x-input wire:model="crafter" name="crafter" placeholder="{{ __('Crafter') }}" />
<x-select wire:model="profession" name="profession" :options="$profession_options" />
</div>
@ -10,9 +10,9 @@
<table class="w-full whitespace-nowrap">
<thead>
<tr tabindex="0" class="focus:outline-none w-full text-sm leading-none text-gray-800">
<th class="text-left px-3 py-4">Recipe</th>
<th class="text-left px-3 py-4">Profession</th>
<th class="text-left px-3 py-4">Crafters</th>
<th class="text-left px-3 py-4">{{ __('Recipe') }}</th>
<th class="text-left px-3 py-4">{{ __('Profession') }}</th>
<th class="text-left px-3 py-4">{{ __('Crafters') }}</th>
</tr>
</thead>
<tbody class="w-full">