Revision fdc55311
Added by Carlos Eduardo Ramos almost 15 years ago
etc/inc/captiveportal.inc | ||
---|---|---|
55 | 55 |
if (isset($config['captiveportal']['enable'])) { |
56 | 56 |
|
57 | 57 |
if ($g['booting']) |
58 |
echo "Starting captive portal... ";
|
|
58 |
echo gettext("Starting captive portal... ");
|
|
59 | 59 |
|
60 | 60 |
/* kill any running mini_httpd */ |
61 | 61 |
killbypid("{$g['varrun_path']}/lighty-CaptivePortal.pid"); |
... | ... | |
253 | 253 |
|
254 | 254 |
$fd = @fopen("{$g['vardb_path']}/captiveportal_radius.db", "w"); |
255 | 255 |
if (!$fd) { |
256 |
printf("Error: cannot open radius DB file in captiveportal_configure().\n");
|
|
256 |
printf(gettext("Error: cannot open radius DB file in captiveportal_configure().%s"), "\n");
|
|
257 | 257 |
return 1; |
258 | 258 |
} else if (isset($radiusip2, $radiuskey2)) { |
259 | 259 |
fwrite($fd,$radiusip . "," . $radiusport . "," . $radiusacctport . "," . $radiuskey . "\n" |
... | ... | |
265 | 265 |
} |
266 | 266 |
|
267 | 267 |
if ($g['booting']) |
268 |
echo "done\n";
|
|
268 |
printf(gettext("done%s"), "\n");
|
|
269 | 269 |
|
270 | 270 |
} else { |
271 | 271 |
killbypid("{$g['varrun_path']}/lighty-CaptivePortal.pid"); |
... | ... | |
996 | 996 |
if (is_null($ruleno)) { |
997 | 997 |
$auth_list = array(); |
998 | 998 |
$auth_list['auth_val'] = 1; |
999 |
$auth_list['error'] = "System reached maximum login capacity";
|
|
999 |
$auth_list['error'] = gettext("System reached maximum login capacity");
|
|
1000 | 1000 |
unlock($captiveportallck); |
1001 | 1001 |
return $auth_list; |
1002 | 1002 |
} |
... | ... | |
1086 | 1086 |
foreach ($config['captiveportal']['element'] as $data) { |
1087 | 1087 |
$fd = @fopen($g['captiveportal_element_path'] . '/' . $data['name'], "wb"); |
1088 | 1088 |
if (!$fd) { |
1089 |
printf("Error: cannot open '{$data['name']}' in captiveportal_write_elements().\n");
|
|
1089 |
printf(gettext("Error: cannot open '%s' in captiveportal_write_elements()%s"), $data['name'], "\n");
|
|
1090 | 1090 |
return 1; |
1091 | 1091 |
} |
1092 | 1092 |
$decoded = base64_decode($data['content']); |
Also available in: Unified diff
Implement gettext() calls on captiveportal.inc