I was translating the dashboard step by step through your tutorial, but the dashboard always displayed in english.
Found out that there's a backslash at the end of each language name in the setting page(and in the database, of course, ex. 'english\', 'traditional_chinese\').
This might cause problem when Lang.php(hoosk\system\core\Lang.php) preg_match the string around line 110.
I currently change the match pattern from
preg_match('/^[a-z_-]+$/i', $idiom)
to
preg_match('/^[a-z_-]+(\\\\)*$/i', $idiom), and it works so far.
Thx for the great framework!
Hi, my first post at github.
I was translating the dashboard step by step through your tutorial, but the dashboard always displayed in english. Found out that there's a backslash at the end of each language name in the setting page(and in the database, of course, ex. 'english\', 'traditional_chinese\'). This might cause problem when Lang.php(hoosk\system\core\Lang.php) preg_match the string around line 110. I currently change the match pattern from
preg_match('/^[a-z_-]+$/i', $idiom)
topreg_match('/^[a-z_-]+(\\\\)*$/i', $idiom)
, and it works so far. Thx for the great framework!