Browse Source

Trigger warning with missing lang strings

master
Skylar Ittner 1 year ago
parent
commit
37789df696
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      required.php

+ 2
- 0
required.php View File

@@ -136,6 +136,7 @@ function lang($key, $echo = true) {
if (array_key_exists($key, STRINGS)) {
$str = STRINGS[$key];
} else {
trigger_error("Language key \"$key\" does not exist in " . LANGUAGE, E_USER_WARNING);
$str = $key;
}

@@ -158,6 +159,7 @@ function lang2($key, $replace, $echo = true) {
if (array_key_exists($key, STRINGS)) {
$str = STRINGS[$key];
} else {
trigger_error("Language key \"$key\" does not exist in " . LANGUAGE, E_USER_WARNING);
$str = $key;
}


Loading…
Cancel
Save