Pārlūkot izejas kodu

Added initial version of app/languages

for analyzing missing or overlapping with global text
Matthew Vale 9 gadi atpakaļ
vecāks
revīzija
0eb53b6b4d

+ 4 - 2
resources/classes/text.php

@@ -25,9 +25,11 @@ class text {
 	 * @var string $language_code	examples: en-us, es-cl, fr-fr, pt-pt
 	 * @var string $app_path		examples: app/exec or core/domains
 	 */
-	public function get($language_code = null, $app_path = null) {
+	public function get($language_code = null, $app_path = null, $exclude_global = false) {
 		//get the global app_languages.php
-			include $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/app_languages.php";
+			if(!$exclude_global){
+				include $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/app_languages.php";
+			}
 		//get the app_languages.php
 			if ($app_path != null) {
 				$lang_path = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/".$app_path."/app_languages.php";

BIN
themes/accessible/images/warning.png


BIN
themes/enhanced/images/warning.png


BIN
themes/minimized/images/warning.png