Parcourir la source

Localize Search Buttons

Fix for #173
Adjokip il y a 9 ans
Parent
commit
b665eb69fb

+ 1 - 0
lang/English/modules/user_admin.php

@@ -108,4 +108,5 @@ define('editing_profile', "Editing Profile: %s");
 define('valid_user', "Please specify a valid user.");
 define('enter_valid_username', "Please enter a valid username.");
 define('unexpected_role', "Unexpected user role received.");
+define('search', "Search");
 ?>

+ 1 - 0
lang/English/modules/user_games.php

@@ -216,4 +216,5 @@ define('set_affinity', "Set Server Affinity");
 define('cpu_affinity_info', "Select the CPU core(s) you want to assign to the game server.");
 define('expiration_date_changed', "Expiration date for selected home has been changed.");
 define('expiration_date_could_not_be_changed', "Expiration date for selected home could not be changed.");
+define('search', "Search");
 ?>

+ 1 - 2
modules/administration/watch_logger.php

@@ -32,11 +32,10 @@ function exec_ogp_module() {
 		<tr>
 			<td style="width: 50%; vertical-align: middle; text-align: left;">
 				<form action="home.php" method="GET" style="display: inline;">
-					<b><?php print_lang('search'); ?>:</b>
 					<input type ="hidden" name="m" value="administration" />
 					<input type ="hidden" name="p" value="watch_logger" />
 					<input name="search" type="text" id="search">
-					<input type="submit" value="search" />
+					<input type="submit" value="<?php echo get_lang('search'); ?>" />
 				</form>
 				<form method=POST style="display: inline;">
 					<input type="submit" name="empty_logger" value="<?php print_lang('empty_logger'); ?>" >

+ 1 - 1
modules/gamemanager/server_monitor.php

@@ -173,7 +173,7 @@ function exec_ogp_module() {
 			<input type ="hidden" name="m" value="gamemanager" />
 			<input type ="hidden" name="p" value="game_monitor" />
 			<input name="search" type="text" id="search">
-			<input type="submit" value="search" />
+			<input type="submit" value="<?php echo get_lang('search'); ?>" />
 		</form>
 	<?php
 	foreach($_POST as $key => $value)

+ 1 - 1
modules/user_admin/show_users.php

@@ -61,7 +61,7 @@ function exec_ogp_module() {
 		<p><a href="?m=user_admin&amp;p=add">'.get_lang("add_new_user").'</a></p>
 		<input type ="hidden" name="m" value="user_admin" />
 		<input name="search" type="text" id="search" />
-		<input type="submit" value="search" />
+		<input type="submit" value="'.get_lang('search').'" />
 		</form>';
     echo '<table class="userListTable center" style="width: 100%;margin-top:100px;">';
     echo '<tr><th>'.get_lang('actions')."</th><th>".get_lang('username')."</th>";

+ 1 - 1
modules/user_games/show_homes.php

@@ -39,7 +39,7 @@ function exec_ogp_module()
 		<p><a href="?m=user_games&amp;p=add">'.get_lang("add_new_game_home").'</a></p>
 		<input type ="hidden" name="m" value="user_games" />
 		<input name="search" type="text" id="search" />
-		<input type="submit" value="search" />
+		<input type="submit" value="'.get_lang('search').'" />
 		</form>';	
 
 	$game_homes = $db->getGameHomes_limit($page_GameHomes,$limit_GameHomes,$search_field);