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) {
136 136
     if (array_key_exists($key, STRINGS)) {
137 137
         $str = STRINGS[$key];
138 138
     } else {
139
+        trigger_error("Language key \"$key\" does not exist in " . LANGUAGE, E_USER_WARNING);
139 140
         $str = $key;
140 141
     }
141 142
 
@@ -158,6 +159,7 @@ function lang2($key, $replace, $echo = true) {
158 159
     if (array_key_exists($key, STRINGS)) {
159 160
         $str = STRINGS[$key];
160 161
     } else {
162
+        trigger_error("Language key \"$key\" does not exist in " . LANGUAGE, E_USER_WARNING);
161 163
         $str = $key;
162 164
     }
163 165
 

Loading…
Cancel
Save