From 42cc62a2e7bbf1d953a1172578144b4763467c41 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 22 Jan 2015 09:00:29 -0200 Subject: Do not translate function return string --- etc/inc/pfsense-utils.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 1bfa1a4..ddd0991 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -371,17 +371,17 @@ function convert_ip_to_network_format($ip, $subnet) { function get_carp_interface_status($carpinterface) { $carp_query = ""; - /* XXX: Need to fidn a better way for this! */ + /* XXX: Need to find a better way for this! */ list ($interface, $vhid) = explode("_vip", $carpinterface); $interface = get_real_interface($interface); exec("/sbin/ifconfig $interface | /usr/bin/grep -v grep | /usr/bin/grep carp: | /usr/bin/grep 'vhid {$vhid}'", $carp_query); foreach($carp_query as $int) { if(stristr($int, "MASTER")) - return gettext("MASTER"); + return "MASTER"; if(stristr($int, "BACKUP")) - return gettext("BACKUP"); + return "BACKUP"; if(stristr($int, "INIT")) - return gettext("INIT"); + return "INIT"; } return; } -- cgit v1.1