Skip to content

Commit a30a26d

Browse files
committed
laravel 5 version
1 parent 9f27dcb commit a30a26d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+303
-879
lines changed

.gitignore

100644100755
File mode changed.

LICENSE

100644100755
File mode changed.

composer.json

100644100755
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vsch/laravel-translation-manager",
3-
"description": "Manage Laravel Translations",
3+
"description": "Enhanced Laravel Translation Manager",
44
"keywords": ["laravel", "translations", "translator"],
55
"license": "MIT",
66
"authors": [
@@ -11,24 +11,24 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=5.3.0",
15-
"illuminate/support": "~4.1",
16-
"illuminate/translation": "~4.1",
14+
"php": ">=5.4.0",
15+
"illuminate/support": "5.0.x|5.1.x",
16+
"illuminate/translation": "5.0.x|5.1.x",
1717
"doctrine/dbal": "~2.3",
18-
"vsch/user-privilege-mapper": "~1.0",
18+
"vsch/user-privilege-mapper": "~2.0",
1919
"symfony/finder": "~2.3"
2020
},
2121
"autoload": {
22-
"psr-0": {
23-
"Vsch\\TranslationManager\\": "src"
24-
},
22+
"classmap": [
23+
"src/Classes",
24+
"database/migrations"
25+
],
2526
"files": [
26-
"src/Vsch/Support/helpers.php"
27+
"src/Support/helpers.php"
2728
],
28-
"classmap": [
29-
"src/Vsch/TranslationManager/Classes",
30-
"src/migrations"
31-
]
29+
"psr-4": {
30+
"Vsch\\TranslationManager\\": "src/"
31+
}
3232
},
3333
"minimum-stability": "stable"
3434
}

src/config/config.php renamed to config/laravel-translation-manager.php

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
return array(
44

5+
/*
6+
|--------------------------------------------------------------------------
7+
| Routes group config
8+
|--------------------------------------------------------------------------
9+
|
10+
| The default group settings for the elFinder routes.
11+
|
12+
*/
13+
'route' => [
14+
'prefix' => 'translations',
15+
'middleware' => 'auth',
16+
],
17+
518
/**
619
* Specify the locale that is used for creating the initial translation strings. This locale is considered
720
* to be the driver of all other translations.
@@ -11,11 +24,11 @@
1124
'primary_locale' => 'en',
1225

1326
/**
14-
* Specify the prefix used for all cookies.
27+
* Specify the prefix used for all cookies, session data and cache persistence.
1528
*
1629
* @type string
1730
*/
18-
'cookie_prefix' => 'laravel-translation-manager::',
31+
'persistent_prefix' => 'laravel-translation-manager::',
1932

2033
/**
2134
* Enable management of translations beyond just editing and command line manipulations
@@ -37,7 +50,7 @@
3750
*/
3851
'export_format' => array(
3952
'PRESERVE_EMPTY_ARRAYS',
40-
'USE_QUOTES',
53+
//'USE_QUOTES',
4154
'USE_HEREDOC',
4255
'USE_SHORT_ARRAY',
4356
'SORT_KEYS',
@@ -78,7 +91,7 @@
7891
* determines whether missing keys are logged
7992
* @type boolean
8093
*/
81-
'log_missing_keys' => false,
94+
'log_missing_keys' => true,
8295

8396
/**
8497
* determines one out of how many user sessions will have a chance to log missing keys
@@ -95,15 +108,6 @@
95108
*/
96109
'missing_keys_lottery' => 100, // 1 in 100 of users will have the missing translation keys logged.
97110

98-
/**
99-
* used to cache db translations that are used in the application.
100-
*
101-
* @type string key used to cache saved values for keys that don't match translation files
102-
* format [prefix]["locale:key"]
103-
*
104-
*/
105-
'cache_prefix' => 'translation-manager',
106-
107111
/**
108112
* @type int 0 - as usual, write out files and set status for translations to SAVED,
109113
*
@@ -119,7 +123,7 @@
119123
* to be used by clustered systems where the translation files are determined at deployment and publishing
120124
* on one system does no good to the rest of the cluster.
121125
*/
122-
'indatabase_publish' => 1,
126+
'indatabase_publish' => 0,
123127

124128
/**
125129
* used to provide the Yandex key for use in automatic Yandex translations
File renamed without changes.

images/ScreenShot_main.png

-10 KB
Loading

0 commit comments

Comments
 (0)