Unverified Commit 705d04d0 authored by Nicolas Widart's avatar Nicolas Widart Committed by GitHub

Merge pull request #531 from kamekun/3.0

Update Carbon Locale, remove body requirement on pages, minor update to language core en, and update language es.
parents f7c72d10 6988ae7e
...@@ -3,6 +3,7 @@ versions: ...@@ -3,6 +3,7 @@ versions:
"@unreleased": "@unreleased":
changed: changed:
- Updating Dutch translations - Updating Dutch translations
- Fix Carbon locale
"3.5.3": "3.5.3":
changed: changed:
- Updating Polish translations - Updating Polish translations
......
...@@ -20,7 +20,6 @@ class CreatePageRequest extends BaseFormRequest ...@@ -20,7 +20,6 @@ class CreatePageRequest extends BaseFormRequest
return [ return [
'title' => 'required', 'title' => 'required',
'slug' => 'required', 'slug' => 'required',
'body' => 'required',
]; ];
} }
......
...@@ -20,7 +20,6 @@ class UpdatePageRequest extends BaseFormRequest ...@@ -20,7 +20,6 @@ class UpdatePageRequest extends BaseFormRequest
return [ return [
'title' => 'required', 'title' => 'required',
'slug' => 'required', 'slug' => 'required',
'body' => 'required',
]; ];
} }
......
...@@ -8,6 +8,7 @@ return [ ...@@ -8,6 +8,7 @@ return [
'table' => [ 'table' => [
'created at' => 'Created at', 'created at' => 'Created at',
'updated at' => 'Updated at', 'updated at' => 'Updated at',
'deleted at' => 'Deleted at',
'actions' => 'Actions', 'actions' => 'Actions',
'thumbnail' => 'Thumbnail', 'thumbnail' => 'Thumbnail',
], ],
...@@ -33,11 +34,15 @@ return [ ...@@ -33,11 +34,15 @@ return [
'update' => 'Update', 'update' => 'Update',
'delete' => 'Delete', 'delete' => 'Delete',
'reset' => 'Reset', 'reset' => 'Reset',
'see' => 'See',
'visualize' => 'Visualize',
'update and back' => 'Update and go back', 'update and back' => 'Update and go back',
], ],
'save' => 'Save', 'save' => 'Save',
'confirm' => 'Confirm', 'confirm' => 'Confirm',
'move' => 'Move', 'move' => 'Move',
'widget' => 'Widget',
'widgets' => 'Widgets',
'breadcrumb' => [ 'breadcrumb' => [
'home' => 'Home', 'home' => 'Home',
], ],
......
...@@ -8,6 +8,7 @@ return [ ...@@ -8,6 +8,7 @@ return [
'table' => [ 'table' => [
'created at' => 'Creado el', 'created at' => 'Creado el',
'updated at' => 'Actualizado el', 'updated at' => 'Actualizado el',
'deleted at' => 'Eliminado el',
'actions' => 'Acciones', 'actions' => 'Acciones',
'thumbnail' => 'Miniaturas', 'thumbnail' => 'Miniaturas',
], ],
...@@ -33,11 +34,15 @@ return [ ...@@ -33,11 +34,15 @@ return [
'update' => 'Actualizar', 'update' => 'Actualizar',
'delete' => 'Eliminar', 'delete' => 'Eliminar',
'reset' => 'Reiniciar', 'reset' => 'Reiniciar',
'see' => 'Ver',
'visualize' => 'Visualize',
'update and back' => 'Actualizar y regresar', 'update and back' => 'Actualizar y regresar',
], ],
'save' => 'Guardar', 'save' => 'Guardar',
'confirm' => 'Confirmar', 'confirm' => 'Confirmar',
'move' => 'Mover', 'move' => 'Mover',
'widget' => 'Complemento',
'widgets' => 'Complementos',
'breadcrumb' => [ 'breadcrumb' => [
'home' => 'Inicio', 'home' => 'Inicio',
], ],
......
url: https://github.com/AsgardCms/Platform url: https://github.com/AsgardCms/Platform
versions: versions:
"@unreleased":
changed:
- Adding a test the user token is correctly generated
"3.5.1": "3.5.1":
changed: changed:
- Fix issue 467 id() method checks null instead of false - Fix issue 467 id() method checks null instead of false
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
</a> </a>
</li> </li>
<li><a href="{{ url('/') }}"><i class="fa fa-eye"></i> {{ trans('core::core.general.view website') }}</a></li> <li><a href="{{ url('/') }}"><i class="fa fa-eye"></i> {{ trans('core::core.general.view website') }}</a></li>
@if(count(LaravelLocalization::getSupportedLocales())>1)
<li class="dropdown"> <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-flag"></i> <i class="fa fa-flag"></i>
...@@ -37,6 +38,7 @@ ...@@ -37,6 +38,7 @@
@endforeach @endforeach
</ul> </ul>
</li> </li>
@endif
<!-- User Account: style can be found in dropdown.less --> <!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu"> <li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
......
...@@ -17,6 +17,7 @@ class AppServiceProvider extends ServiceProvider ...@@ -17,6 +17,7 @@ class AppServiceProvider extends ServiceProvider
{ {
Schema::defaultStringLength(191); Schema::defaultStringLength(191);
Carbon::setLocale(config('app.locale'));
Carbon::serializeUsing(function ($carbon) { Carbon::serializeUsing(function ($carbon) {
return $carbon->format('d/m/y H:i:s'); return $carbon->format('d/m/y H:i:s');
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment