diff --git a/usr/local/www/services_captiveportal_filemanager.php b/usr/local/www/services_captiveportal_filemanager.php
index efef6b76df..9e993953d4 100755
--- a/usr/local/www/services_captiveportal_filemanager.php
+++ b/usr/local/www/services_captiveportal_filemanager.php
@@ -49,7 +49,6 @@ function cpelements_sort() {
usort($config['captiveportal']['element'],"cpelementscmp");
}
-$pgtitle = array("Services","Captive portal");
$statusurl = "status_captiveportal.php";
$logurl = "diag_logs_auth.php";
@@ -60,6 +59,8 @@ require("filter.inc");
require("shaper.inc");
require("captiveportal.inc");
+$pgtitle = array(gettext("Services"),gettext("Captive portal"));
+
if (!is_array($config['captiveportal']['element']))
$config['captiveportal']['element'] = array();
@@ -85,14 +86,14 @@ if ($_POST) {
// is there already a file with that name?
foreach ($a_element as $element) {
if ($element['name'] == $name) {
- $input_errors[] = "A file with the name '$name' already exists.";
+ $input_errors[] = sprintf(gettext("A file with the name '%s' already exists."), $name);
break;
}
}
// check total file size
if (($total_size + $size) > $g['captiveportal_element_sizelimit']) {
- $input_errors[] = "The total size of all files uploaded may not exceed " .
+ $input_errors[] = gettext("The total size of all files uploaded may not exceed ") .
format_bytes($g['captiveportal_element_sizelimit']) . ".";
}
@@ -135,24 +136,24 @@ include("head.inc");
|
|
- Note:
+ =gettext("Note"); ?>:
- Any files that you upload here with the filename prefix of captiveportal- will
- be made available in the root directory of the captive portal HTTP(S) server.
- You may reference them directly from your portal page HTML code using relative paths.
- Example: you've uploaded an image with the name 'captiveportal-test.jpg' using the
- file manager. Then you can include it in your portal page like this:
+ =gettext("Any files that you upload here with the filename prefix of captiveportal- will " .
+ "be made available in the root directory of the captive portal HTTP(S) server. " .
+ "You may reference them directly from your portal page HTML code using relative paths. " .
+ "Example: you've uploaded an image with the name 'captiveportal-test.jpg' using the " .
+ "file manager. Then you can include it in your portal page like this"); ?>:
<img src="captiveportal-test.jpg" width=... height=...>
- In addition, you can also upload .php files for execution. You can pass the filename
- to your custom page from the initial page by using text similar to:
+ =gettext("In addition, you can also upload .php files for execution. You can pass the filename " .
+ "to your custom page from the initial page by using text similar to"); ?>:
- <a href="/captiveportal-aup.php?redirurl=$PORTAL_REDIRURL$">Acceptable usage policy</a>
+ <a href="/captiveportal-aup.php?redirurl=$PORTAL_REDIRURL$">=gettext("Acceptable usage policy"); ?></a>
- The total size limit for all files is =format_bytes($g['captiveportal_element_sizelimit']);?>.
+ =gettext("The total size limit for all files is"); ?> =format_bytes($g['captiveportal_element_sizelimit']);?>.
|