mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Introduzione procedura di configurazione
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
<?php
|
||||
|
||||
|
||||
return [
|
||||
|
||||
/**
|
||||
/*
|
||||
* Translation handlers, options are:
|
||||
*
|
||||
* - symfony: (recommended) uses the symfony translations component. Incompatible with php-gettext
|
||||
@@ -13,76 +11,76 @@ return [
|
||||
*/
|
||||
'handler' => 'symfony',
|
||||
|
||||
/**
|
||||
/*
|
||||
* Session identifier: Key under which the current locale will be stored.
|
||||
*/
|
||||
'session-identifier' => 'laravel-gettext-locale',
|
||||
|
||||
/**
|
||||
/*
|
||||
* Default locale: this will be the default for your application.
|
||||
* Is to be supposed that all strings are written in this language.
|
||||
*/
|
||||
'locale' => 'it_IT',
|
||||
'locale' => env('APP_LOCALE', 'it_IT'),
|
||||
|
||||
/**
|
||||
/*
|
||||
* Supported locales: An array containing all allowed languages
|
||||
*/
|
||||
'supported-locales' => [
|
||||
'it_IT',
|
||||
'ne_GB',
|
||||
'en_GB',
|
||||
'de_DE',
|
||||
],
|
||||
|
||||
/**
|
||||
/*
|
||||
* Default charset encoding.
|
||||
*/
|
||||
'encoding' => 'UTF-8',
|
||||
|
||||
/**
|
||||
/*
|
||||
* -----------------------------------------------------------------------
|
||||
* All standard configuration ends here. The following values
|
||||
* are only for special cases.
|
||||
* -----------------------------------------------------------------------
|
||||
**/
|
||||
|
||||
/**
|
||||
/*
|
||||
* Locale categories to set
|
||||
*/
|
||||
'categories' => [
|
||||
'LC_ALL',
|
||||
],
|
||||
|
||||
/**
|
||||
/*
|
||||
* Base translation directory path (don't use trailing slash)
|
||||
*/
|
||||
'translations-path' => '../resources/lang',
|
||||
|
||||
/**
|
||||
/*
|
||||
* Relative path to the app folder: is used on .po header files
|
||||
*/
|
||||
'relative-path' => '../../../../../app',
|
||||
|
||||
/**
|
||||
/*
|
||||
* Fallback locale: When default locale is not available
|
||||
*/
|
||||
'fallback-locale' => 'it_IT',
|
||||
|
||||
/**
|
||||
/*
|
||||
* Default domain used for translations: It is the file name for .po and .mo files
|
||||
*/
|
||||
'domain' => 'messages',
|
||||
|
||||
/**
|
||||
/*
|
||||
* Project name: is used on .po header files
|
||||
*/
|
||||
'project' => 'OpenSTAManager',
|
||||
|
||||
/**
|
||||
/*
|
||||
* Translator contact data (used on .po headers too)
|
||||
*/
|
||||
'translator' => 'James Translator <james@translations.colm>',
|
||||
|
||||
/**
|
||||
/*
|
||||
* Paths where Poedit will search recursively for strings to translate.
|
||||
* All paths are relative to app/ (don't use trailing slash).
|
||||
*
|
||||
@@ -95,7 +93,7 @@ return [
|
||||
'Console',
|
||||
],
|
||||
|
||||
/**
|
||||
/*
|
||||
* Multi-domain directory paths. If you want the translations in
|
||||
* different files, just wrap your paths into a domain name.
|
||||
* for example:
|
||||
@@ -105,32 +103,32 @@ return [
|
||||
|
||||
// 'frontend' domain
|
||||
'frontend' => [
|
||||
'controllers',
|
||||
'views/frontend',
|
||||
],
|
||||
'controllers',
|
||||
'views/frontend',
|
||||
],
|
||||
|
||||
// 'backend' domain
|
||||
'backend' => [
|
||||
'views/backend',
|
||||
],
|
||||
'backend' => [
|
||||
'views/backend',
|
||||
],
|
||||
|
||||
// 'messages' domain (matches default domain)
|
||||
'storage/views',
|
||||
],
|
||||
'storage/views',
|
||||
],
|
||||
*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* Sync laravel: A flag that determines if the laravel built-in locale must
|
||||
* be changed when you call LaravelGettext::setLocale.
|
||||
*/
|
||||
'sync-laravel' => true,
|
||||
|
||||
/**
|
||||
/*
|
||||
* The adapter used to sync the laravel built-in locale
|
||||
*/
|
||||
'adapter' => \Xinax\LaravelGettext\Adapters\LaravelAdapter::class,
|
||||
|
||||
/**
|
||||
/*
|
||||
* Where to store the current locale/domain
|
||||
*
|
||||
* By default, in the session.
|
||||
@@ -140,12 +138,12 @@ return [
|
||||
*/
|
||||
'storage' => \Xinax\LaravelGettext\Storages\SessionStorage::class,
|
||||
|
||||
/**
|
||||
/*
|
||||
* Use custom locale that is not supported by the system
|
||||
*/
|
||||
'custom-locale' => false,
|
||||
|
||||
/**
|
||||
/*
|
||||
* The keywords list used by poedit to search the strings to be translated
|
||||
*
|
||||
* The "_", "__" and "gettext" are singular translation functions
|
||||
|
Reference in New Issue
Block a user