Jelajahi Sumber

Use Get Lang Function

own3mall 8 tahun lalu
induk
melakukan
7507dd911a
2 mengubah file dengan 7 tambahan dan 7 penghapusan
  1. 2 2
      modules/extras/extras.php
  2. 5 5
      modules/update/updating.php

+ 2 - 2
modules/extras/extras.php

@@ -529,7 +529,7 @@ function exec_ogp_module()
 	echo "<tr><td style=\"width:50%; vertical-align:top;\">";
 	# MODULES
 	echo "<div class=\"dragbox bloc rounded\" style=\"margin:1%;\">".
-		 "<h4>".extra_modules."</h4>".
+		 "<h4>".get_lang("extra_modules")."</h4>".
 		 "<div class=\"dragbox-content\" >";
 
 	if (!empty($moduleErrors['modules'])) {
@@ -581,7 +581,7 @@ function exec_ogp_module()
 	
 	# THEMES
 	echo "<div class=\"dragbox bloc rounded\" style=\"margin:1%;\">".
-		 "<h4>".extra_themes."</h4>".
+		 "<h4>".get_lang("extra_themes")."</h4>".
 		 "<div class=\"dragbox-content\" >";
 
 	if (!empty($moduleErrors['themes'])) {

+ 5 - 5
modules/update/updating.php

@@ -57,7 +57,7 @@ function exec_ogp_module()
 	
 	$vtype = "HubGit";
 
-	echo "<h4>" . dwl_update . "</h4>\n";
+	echo "<h4>" . get_lang("dwl_update") . "</h4>\n";
 
 	//This is usefull when you are downloading big files, as it
 	//will prevent time out of the script
@@ -113,10 +113,10 @@ function exec_ogp_module()
 			return;
 		}
 		
-		echo "<h4>". install_update . "</h4>\n";
+		echo "<h4>". get_lang("install_update") . "</h4>\n";
 				
 		// Set default values for file checkings before installing
-		$not_writable = can_not_update_non_writable_files . " :<br>";
+		$not_writable = get_lang("can_not_update_non_writable_files") . " :<br>";
 		$filename = "";
 		$overwritten = 0;
 		$new = 0;
@@ -259,7 +259,7 @@ function exec_ogp_module()
 					rmdir_recurse( $baseDir . DIRECTORY_SEPARATOR . $unwanted_path );
 				}
 
-				echo "<br>\n<h4>" . updating_modules ."</h4>\n";
+				echo "<br>\n<h4>" . get_lang("updating_modules") ."</h4>\n";
 				
 				require_once('modules/modulemanager/module_handling.php');
 
@@ -290,4 +290,4 @@ function exec_ogp_module()
 		print_failure( get_lang_f( 'temp_folder_not_writable', $temp ) );
 	}
 }
-?>
+?>