File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ class Session
6
6
KEY_DOWNLOAD_ALLOWED = 'beta_download_allowed2 ' ,
7
7
KEY_PREFINERY_USER_ID = 'prefinery_user_id ' ,
8
8
KEY_PREFINER_USED_CUSTOM_CODE = 'prefinery_used_custom_code ' ,
9
- KEY_LIST_SUB_ERROR = 'list_error ' ;
9
+ KEY_LIST_SUB_ERROR = 'list_error ' ,
10
+ KEY_USER_CULTURE = 'user_culture ' ;
10
11
11
12
public static function init ()
12
13
{
Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ class i18n
17
17
18
18
public static function register ($ culture = null ) /*needed to trigger class include, presumably setup would happen here*/
19
19
{
20
+ if ($ culture == null )
21
+ {
22
+ $ culture = Session::get (Session::KEY_USER_CULTURE );
23
+ }
24
+
20
25
if ($ culture === null )
21
26
{
22
27
$ urlTokens = Request::getHost () ? explode ('. ' , Request::getHost ()) : [];
Original file line number Diff line number Diff line change 25
25
26
26
try
27
27
{
28
- i18n::register ();
29
28
Session::init ();
29
+ i18n::register ();
30
30
if (!IS_PRODUCTION )
31
31
{
32
32
View::compileCss ();
You can’t perform that action at this time.
0 commit comments