-
Notifications
You must be signed in to change notification settings - Fork 38
/
config.php
97 lines (88 loc) 路 3.08 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
return array(
/*
|--------------------------------------------------------------------------
| Folders where to search for lemmas
|--------------------------------------------------------------------------
|
| Localization::Missing will search recursively for lemmas in all php files
| included in these folders. You can use these keywords :
| - %APP : the laravel app folder of your project
| - %BASE : the laravel base folder of your project
| - %PUBLIC : the laravel public folder of your project
| - %STORAGE : the laravel storage folder of your project
| No error or exception is thrown when a folder does not exist.
|
*/
'folders' => array(
'%APP/Potsky',
'%APP/views' ,
'%APP/controllers',
),
/*
|--------------------------------------------------------------------------
| Methods or functions to search for
|--------------------------------------------------------------------------
|
| Localization::Missing will search lemmas by using these regular expressions
| Several regular expressions can be used for a single method or function.
|
*/
'trans_methods' => array(
'trans' => array(
'@trans\(\s*(\'.*\')\s*(,.*)*\)@U',
'@trans\(\s*(".*")\s*(,.*)*\)@U',
),
'Lang::Get' => array(
'@Lang::Get\(\s*(\'.*\')\s*(,.*)*\)@U',
'@Lang::Get\(\s*(".*")\s*(,.*)*\)@U',
'@Lang::get\(\s*(\'.*\')\s*(,.*)*\)@U',
'@Lang::get\(\s*(".*")\s*(,.*)*\)@U',
),
'trans_choice' => array(
'@trans_choice\(\s*(\'.*\')\s*,.*\)@U',
'@trans_choice\(\s*(".*")\s*,.*\)@U',
),
'Lang::choice' => array(
'@Lang::choice\(\s*(\'.*\')\s*,.*\)@U',
'@Lang::choice\(\s*(".*")\s*,.*\)@U',
),
),
/*
|--------------------------------------------------------------------------
| Keywords for obssolete check
|--------------------------------------------------------------------------
|
| Localization::Missing will search lemmas in existing lang files.
| Then it searches in all PHP source files.
| When using dynamic or auto-generated lemmas, you must tell Localization::Missing
| that there are dynamic because it cannot guess them.
|
| Example :
| - in PHP blade code : <span>{{{ trans( "message.user.dynamo.$s" ) }}}</span>
| - in lang/en.message.php :
| - 'user' => array(
| 'dynamo' => array(
| 'lastname' => 'Family name',
| 'firstname' => 'Name',
| 'email' => 'Email address',
| ...
| Then you can define in this parameter value dynamo for example so that
| Localization::Missing will not exclude lastname, firstname and email from
| translation files.
|
*/
'never_obsolete_keys' => array(
'dynamic' ,
'fields' ,
),
/*
|--------------------------------------------------------------------------
| Editor
|--------------------------------------------------------------------------
|
| when using option editor, package will use this command to open your files
|
*/
'editor_command_line' => '/Applications/Sublime\\ Text.app/Contents/SharedSupport/bin/subl'
);