Skip to content

Commit

Permalink
Merge pull request #531 from kamekun/3.0
Browse files Browse the repository at this point in the history
Update Carbon Locale, remove body requirement on pages, minor update to language core en, and update language es.
  • Loading branch information
nWidart authored May 18, 2018
2 parents f7c72d1 + 6988ae7 commit 705d04d
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 4 deletions.
1 change: 1 addition & 0 deletions Modules/Core/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ versions:
"@unreleased":
changed:
- Updating Dutch translations
- Fix Carbon locale
"3.5.3":
changed:
- Updating Polish translations
Expand Down
3 changes: 1 addition & 2 deletions Modules/Page/Http/Requests/CreatePageRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public function translationRules()
{
return [
'title' => 'required',
'slug' => 'required',
'body' => 'required',
'slug' => 'required',
];
}

Expand Down
3 changes: 1 addition & 2 deletions Modules/Page/Http/Requests/UpdatePageRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public function translationRules()
{
return [
'title' => 'required',
'slug' => 'required',
'body' => 'required',
'slug' => 'required',
];
}

Expand Down
5 changes: 5 additions & 0 deletions Modules/Translation/Resources/lang/core/en/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'table' => [
'created at' => 'Created at',
'updated at' => 'Updated at',
'deleted at' => 'Deleted at',
'actions' => 'Actions',
'thumbnail' => 'Thumbnail',
],
Expand All @@ -33,11 +34,15 @@
'update' => 'Update',
'delete' => 'Delete',
'reset' => 'Reset',
'see' => 'See',
'visualize' => 'Visualize',
'update and back' => 'Update and go back',
],
'save' => 'Save',
'confirm' => 'Confirm',
'move' => 'Move',
'widget' => 'Widget',
'widgets' => 'Widgets',
'breadcrumb' => [
'home' => 'Home',
],
Expand Down
5 changes: 5 additions & 0 deletions Modules/Translation/Resources/lang/core/es/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'table' => [
'created at' => 'Creado el',
'updated at' => 'Actualizado el',
'deleted at' => 'Eliminado el',
'actions' => 'Acciones',
'thumbnail' => 'Miniaturas',
],
Expand All @@ -33,11 +34,15 @@
'update' => 'Actualizar',
'delete' => 'Eliminar',
'reset' => 'Reiniciar',
'see' => 'Ver',
'visualize' => 'Visualize',
'update and back' => 'Actualizar y regresar',
],
'save' => 'Guardar',
'confirm' => 'Confirmar',
'move' => 'Mover',
'widget' => 'Complemento',
'widgets' => 'Complementos',
'breadcrumb' => [
'home' => 'Inicio',
],
Expand Down
3 changes: 3 additions & 0 deletions Modules/User/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
url: https://github.com/AsgardCms/Platform
versions:
"@unreleased":
changed:
- Adding a test the user token is correctly generated
"3.5.1":
changed:
- Fix issue 467 id() method checks null instead of false
Expand Down
2 changes: 2 additions & 0 deletions Themes/Adminlte/views/partials/top-nav.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
</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">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-flag"></i>
Expand All @@ -37,6 +38,7 @@
@endforeach
</ul>
</li>
@endif
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Expand Down
1 change: 1 addition & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public function boot()
{
Schema::defaultStringLength(191);

Carbon::setLocale(config('app.locale'));
Carbon::serializeUsing(function ($carbon) {
return $carbon->format('d/m/y H:i:s');
});
Expand Down

0 comments on commit 705d04d

Please sign in to comment.