limitations de l'outil de traduction native translations
This commit is contained in:
parent
3d63fa2d59
commit
9be587844d
6 changed files with 42 additions and 19 deletions
|
|
@ -11,5 +11,12 @@
|
|||
"Nos gammes produits": "",
|
||||
"Toutes nos gammes": "",
|
||||
"Des produits incontournables, Authentiques et Innovants !": "",
|
||||
"Doux": "Doux"
|
||||
"Doux": "Doux",
|
||||
"Résultats": "",
|
||||
"Mentions légales": "",
|
||||
"Charte de confidentialité": "",
|
||||
"Plan du site": "",
|
||||
"Contact": "",
|
||||
"Gestion des cookies": "",
|
||||
"Recherchez un produit": ""
|
||||
}
|
||||
|
|
@ -11,5 +11,12 @@
|
|||
"Nos gammes produits": "",
|
||||
"Toutes nos gammes": "",
|
||||
"Des produits incontournables, Authentiques et Innovants !": "",
|
||||
"Doux": ""
|
||||
"Doux": "",
|
||||
"Résultats": "",
|
||||
"Mentions légales": "",
|
||||
"Charte de confidentialité": "",
|
||||
"Plan du site": "",
|
||||
"Contact": "",
|
||||
"Gestion des cookies": "",
|
||||
"Recherchez un produit": ""
|
||||
}
|
||||
|
|
@ -11,5 +11,12 @@
|
|||
"Nos gammes produits": "Nos gammes produits",
|
||||
"Toutes nos gammes": "Toutes nos gammes",
|
||||
"Des produits incontournables, Authentiques et Innovants !": "Des produits incontournables, Authentiques et Innovants !",
|
||||
"Doux": "Doux"
|
||||
"Doux": "Doux",
|
||||
"Résultats": "",
|
||||
"Mentions légales": "",
|
||||
"Charte de confidentialité": "",
|
||||
"Plan du site": "",
|
||||
"Contact": "",
|
||||
"Gestion des cookies": "",
|
||||
"Recherchez un produit": ""
|
||||
}
|
||||
|
|
@ -139,7 +139,7 @@
|
|||
<div class="col-12">
|
||||
<ul class="nav flex-column mb-2">
|
||||
<li class="nav-item">
|
||||
<a class="btn btn-secondary" href="{{route('languages.translations.index', Session::get('lang') )}}">{{ __('Traductions système') }}</a>
|
||||
<a class="btn btn-secondary" href="{{route('languages.translations.index', Session::get('lang') )}}?group=single">{{ __('Traductions système') }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,9 @@
|
|||
@if(isset($optional) && $optional)<option value> ----- </option>@endif
|
||||
@foreach($items as $key => $value)
|
||||
@if(is_numeric($key))
|
||||
<option value="{{ $value }}" @if(isset($selected) && $selected === $value) selected="selected" @endif>{{ $value }}</option>
|
||||
@if($value=="single")
|
||||
<option value="{{ $value }}" @if(isset($selected) && $selected === $value) selected="selected" @endif>{{ $value }}</option>
|
||||
@endif
|
||||
@else
|
||||
<option value="{{ $key }}" @if(isset($selected) && $selected === $key) selected="selected" @endif>{{ $value }}</option>
|
||||
@endif
|
||||
|
|
@ -15,4 +17,4 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"/></svg>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -18,12 +18,12 @@
|
|||
|
||||
<div class="sm:hidden lg:flex items-center">
|
||||
|
||||
@include('translation::forms.select', ['name' => 'group', 'items' => $groups, 'submit' => true, 'selected' => Request::get('group'), 'optional' => true])
|
||||
|
||||
<a href="{{ route('languages.translations.create', $language) }}" class="button">
|
||||
@include('translation::forms.select', ['name' => 'group', 'items' => $groups, 'submit' => true, 'selected' => Request::get('group'), 'optional' => false])
|
||||
|
||||
{{--<a href="{{ route('languages.translations.create', $language) }}" class="button">
|
||||
{{ __('translation::translation.add') }}
|
||||
</a>
|
||||
|
||||
</a>--}}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
@ -47,7 +47,7 @@
|
|||
|
||||
<tbody>
|
||||
@foreach($translations as $type => $items)
|
||||
|
||||
|
||||
@foreach($items as $group => $translations)
|
||||
|
||||
@foreach($translations as $key => $value)
|
||||
|
|
@ -58,11 +58,11 @@
|
|||
<td>{{ $key }}</td>
|
||||
<td>{{ $value[config('app.locale')] }}</td>
|
||||
<td>
|
||||
<translation-input
|
||||
initial-translation="{{ $value[$language] }}"
|
||||
language="{{ $language }}"
|
||||
group="{{ $group }}"
|
||||
translation-key="{{ $key }}"
|
||||
<translation-input
|
||||
initial-translation="{{ $value[$language] }}"
|
||||
language="{{ $language }}"
|
||||
group="{{ $group }}"
|
||||
translation-key="{{ $key }}"
|
||||
route="{{ config('translation.ui_url') }}">
|
||||
</translation-input>
|
||||
</td>
|
||||
|
|
@ -72,7 +72,7 @@
|
|||
@endforeach
|
||||
|
||||
@endforeach
|
||||
|
||||
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
|
|
@ -86,4 +86,4 @@
|
|||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@endsection
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue