Time to do an update.
This commit is contained in:
parent
70c8a87e15
commit
0b0697bb42
22 changed files with 4352 additions and 268 deletions
|
@ -1,13 +1,12 @@
|
|||
<?php
|
||||
|
||||
function loadLocale($lang = 'en-us') {
|
||||
function loadLocale($lang = 'en-us')
|
||||
{
|
||||
$file = __DIR__ . '/../locale/' . $lang . '/messages.php';
|
||||
if (file_exists($file)) {
|
||||
return require_once $file;
|
||||
} else {
|
||||
// Fallback to English if the specified language file does not exist
|
||||
return require_once __DIR__ . '/../locale/en-us/messages.php';
|
||||
return require_once __DIR__ . '/../locale/en-us/messages.php';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue