@@ -1,16 +1,16 @@ discard block |
||
| 1 | -<?php return array ( |
|
| 1 | +<?php return array( |
|
| 2 | 2 | 'domain' => 'messages', |
| 3 | 3 | 'plural-forms' => NULL, |
| 4 | 4 | 'messages' => |
| 5 | - array ( |
|
| 5 | + array( |
|
| 6 | 6 | 'search' => |
| 7 | - array ( |
|
| 7 | + array( |
|
| 8 | 8 | 'Search %s...' => 'Buscar %s...', |
| 9 | 9 | 'More results' => 'Más resultados', |
| 10 | 10 | 'No items found' => 'No se encontraron resultados', |
| 11 | 11 | ), |
| 12 | 12 | '' => |
| 13 | - array ( |
|
| 13 | + array( |
|
| 14 | 14 | 'Data saved successfully' => 'Datos guardados correctamente', |
| 15 | 15 | 'Too big data' => 'No se pueden subir archivos tan grandes', |
| 16 | 16 | 'Creating "%s", are you sure?' => 'Creando "%s", estas seguro?', |
@@ -23,16 +23,16 @@ discard block |
||
| 23 | 23 | 'Are you sure?' => '¿Estas seguro?', |
| 24 | 24 | ), |
| 25 | 25 | 'insert' => |
| 26 | - array ( |
|
| 26 | + array( |
|
| 27 | 27 | '%s - New | %s' => '%s - Nuevo | %s', |
| 28 | 28 | 'Create' => 'Crear', |
| 29 | 29 | ), |
| 30 | 30 | 'home' => |
| 31 | - array ( |
|
| 31 | + array( |
|
| 32 | 32 | 'View web' => 'Ver la web', |
| 33 | 33 | ), |
| 34 | 34 | 'edit' => |
| 35 | - array ( |
|
| 35 | + array( |
|
| 36 | 36 | 'Save' => 'Guardar', |
| 37 | 37 | 'You will save this data as a new row. Are you sure?' => 'Vas a guardar estos datos en un nuevo registro. Estas seguro?', |
| 38 | 38 | 'Duplicate' => 'Duplicar', |
@@ -1,16 +1,16 @@ discard block |
||
| 1 | -<?php return array ( |
|
| 1 | +<?php return array( |
|
| 2 | 2 | 'domain' => 'messages', |
| 3 | 3 | 'plural-forms' => NULL, |
| 4 | 4 | 'messages' => |
| 5 | - array ( |
|
| 5 | + array( |
|
| 6 | 6 | 'search' => |
| 7 | - array ( |
|
| 7 | + array( |
|
| 8 | 8 | 'Search %s...' => 'Buscar %s...', |
| 9 | 9 | 'More results' => 'Máis resultados', |
| 10 | 10 | 'No items found' => 'Non se atoparon resultados', |
| 11 | 11 | ), |
| 12 | 12 | '' => |
| 13 | - array ( |
|
| 13 | + array( |
|
| 14 | 14 | 'Data saved successfully' => 'Datos gardados correctamente', |
| 15 | 15 | 'Too big data' => 'Non se poden subir arquivos tan grandes', |
| 16 | 16 | 'Creating "%s", are you sure?' => 'Creando "%s", estas seguro?', |
@@ -23,16 +23,16 @@ discard block |
||
| 23 | 23 | 'Are you sure?' => 'Estas seguro?', |
| 24 | 24 | ), |
| 25 | 25 | 'insert' => |
| 26 | - array ( |
|
| 26 | + array( |
|
| 27 | 27 | '%s - New | %s' => '%s - Novo | %s', |
| 28 | 28 | 'Create' => 'Crear', |
| 29 | 29 | ), |
| 30 | 30 | 'home' => |
| 31 | - array ( |
|
| 31 | + array( |
|
| 32 | 32 | 'View web' => 'Ver a web', |
| 33 | 33 | ), |
| 34 | 34 | 'edit' => |
| 35 | - array ( |
|
| 35 | + array( |
|
| 36 | 36 | 'Save' => 'Gardar', |
| 37 | 37 | 'You will save this data as a new row. Are you sure?' => 'Vas gardar estes datos nun novo rexistro. Estas seguro?', |
| 38 | 38 | 'Duplicate' => 'Duplicar', |
@@ -1,7 +1,7 @@ |
||
| 1 | -<?php return array ( |
|
| 1 | +<?php return array( |
|
| 2 | 2 | 'domain' => 'messages', |
| 3 | 3 | 'plural-forms' => NULL, |
| 4 | 4 | 'messages' => |
| 5 | - array ( |
|
| 5 | + array( |
|
| 6 | 6 | ), |
| 7 | 7 | ); |
| 8 | 8 | \ No newline at end of file |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | public function getFactories() |
| 16 | 16 | { |
| 17 | 17 | return [ |
| 18 | - 'middleware' => function (App $app): Dispatcher { |
|
| 18 | + 'middleware' => function(App $app): Dispatcher { |
|
| 19 | 19 | $middleware = []; |
| 20 | 20 | |
| 21 | 21 | $middleware[] = new Middlewares\BasePath($app->getUri()->getPath()); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | $middleware[] = new Middlewares\ContentType(); |
| 24 | 24 | $middleware[] = new Middlewares\ContentLanguage(['en', 'gl', 'es']); |
| 25 | 25 | |
| 26 | - $middleware[] = function ($request, $next) use ($app) { |
|
| 26 | + $middleware[] = function($request, $next) use ($app) { |
|
| 27 | 27 | $language = $request->getHeaderLine('Accept-Language'); |
| 28 | 28 | $translator = (new Translator())->loadTranslations(dirname(dirname(__DIR__)).'/locales/'.$language.'.php'); |
| 29 | 29 | $prev = TranslatorFunctions::register($translator); |