Browse Source

BugFix-Translation-True_False

fixed various uses of ucwords() to render true/false to use
$text[label-*] instead
mafoo 9 năm trước cách đây
mục cha
commit
59e69d6069
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      contact_extensions.php
  2. 1 1
      contact_settings.php

+ 1 - 1
contact_extensions.php

@@ -98,7 +98,7 @@ else {
 				echo $row['extension'];
 			}
 			echo "	</td>\n";
-			echo "	<td valign='top' class='".$row_style[$c]."'>".ucwords($row['enabled'])."&nbsp;</td>\n";
+			echo "	<td valign='top' class='".$row_style[$c]."'>".$text['label-'.$row['enabled']]."&nbsp;</td>\n";
 			echo "	<td valign='top' class='row_stylebg'>".$row['description']."&nbsp;</td>\n";
 			echo "	<td class='list_control_icons'>";
 			if (permission_exists('extension_edit')) {

+ 1 - 1
contact_settings.php

@@ -104,7 +104,7 @@ else {
 			}
 			echo "		&nbsp;\n";
 			echo "	</td>\n";
-			echo "	<td valign='top' class='".$row_style[$c]."' style='text-align: center;'>".ucwords($row['contact_setting_enabled'])."&nbsp;</td>\n";
+			echo "	<td valign='top' class='".$row_style[$c]."' style='text-align: center;'>".$text['label-'.$row['contact_setting_enabled']]."&nbsp;</td>\n";
 			echo "	<td valign='top' class='row_stylebg'>".$row['contact_setting_description']."&nbsp;</td>\n";
 			echo "	<td class='list_control_icons' nowrap='nowrap'>";
 			if (permission_exists('contact_setting_edit')) {