We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5cb00d1 + 1a0cb01 commit d3186afCopy full SHA for d3186af
1 file changed
tests/framework/extension_functional_test_case.php
@@ -195,4 +195,33 @@ protected function is_available()
195
196
return $is_available;
197
}
198
+
199
+ /**
200
+ * Add Language Items from an extension
201
+ *
202
+ * @param mixed $lang_set specifies the language entries to include
203
+ */
204
+ protected function add_lang_ext($lang_file)
205
+ {
206
+ if (is_array($lang_file))
207
208
+ foreach ($lang_file as $file)
209
210
+ $this->add_lang_ext($file);
211
+ }
212
213
+ return;
214
215
216
+ $lang_path = __DIR__ . "/../../language/en/$lang_file.php";
217
218
+ $lang = array();
219
220
+ if (file_exists($lang_path))
221
222
+ include($lang_path);
223
224
225
+ $this->lang = array_merge($this->lang, $lang);
226
227
0 commit comments