diff options
author | Rafael Lucas <rafalucas.unicamp@gmail.com> | 2010-08-01 22:53:02 -0300 |
---|---|---|
committer | Rafael Lucas <rafalucas.unicamp@gmail.com> | 2010-08-01 22:53:02 -0300 |
commit | 5493fad2b8a7ac5610a3b624846644d8ecb60fc8 (patch) | |
tree | 5620137b492b3f420550289029b075c2319db2b1 /usr/local/www/index.php | |
parent | 50c306a9d1960f29ec0b79787cf16f42f77db8ff (diff) | |
download | pfsense-5493fad2b8a7ac5610a3b624846644d8ecb60fc8.zip pfsense-5493fad2b8a7ac5610a3b624846644d8ecb60fc8.tar.gz |
Implement gettext() calls on index.php
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-x | usr/local/www/index.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php index ec3122e..dd4016f 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -89,7 +89,7 @@ if (!is_array($config['widgets'])) { } } - write_config("Widget configuration has been changed."); + write_config(gettext("Widget configuration has been changed.")); header("Location: index.php"); exit; } @@ -145,10 +145,10 @@ EOF; echo "<center>\n"; echo "<img src=\"/themes/{$g['theme']}/images/logo.gif\" border=\"0\"><p>\n"; echo "<div \" style=\"width:700px;background-color:#ffffff\" id=\"nifty\">\n"; - echo "Welcome to {$g['product_name']}!<p>\n"; - echo "One moment while we start the initial setup wizard.<p>\n"; - echo "Embedded platform users: Please be patient, the wizard takes a little longer to run than the normal GUI.<p>\n"; - echo "To bypass the wizard, click on the {$g['product_name']} logo on the initial page.\n"; + echo sprintf(gettext("Welcome to %s!<p>\n"),$g['product_name']); + echo gettext("One moment while we start the initial setup wizard.<p>\n"); + echo gettext("Embedded platform users: Please be patient, the wizard takes a little longer to run than the normal GUI.<p>\n"); + echo sprintf(gettext("To bypass the wizard, click on the %s logo on the initial page.\n"),$g['product_name']); echo "</div>\n"; echo "<meta http-equiv=\"refresh\" content=\"1;url=wizard.php?xml=setup_wizard.xml\">\n"; echo "<script type=\"text/javascript\">\n"; @@ -423,7 +423,7 @@ EOD; $closehead = false; ## Set Page Title and Include Header -$pgtitle = array("{$g['product_name']} Dashboard"); +$pgtitle = array(gettext("{$g['product_name']} Dashboard")); include("head.inc"); echo "\t<script type=\"text/javascript\" src=\"javascript/domTT/domLib.js\"></script>\n"; @@ -495,10 +495,10 @@ echo $jscriptstr; <div style="clear:both;"></div> </h1> <p> - This page allows you to customize the information you want to be displayed!<br/> - To get started click the <img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif"> icon to add widgets.<br/> + <?=gettext("This page allows you to customize the information you want to be displayed!");?><br/> + <?=gettext("To get started click the");?> <img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif"> <?=gettext("icon to add widgets.");?><br/> <br/> - You can move any widget around by clicking and dragging the title. + <?=gettext("You can move any widget around by clicking and dragging the title.");?> </p> </div> </div> @@ -510,7 +510,7 @@ echo $jscriptstr; - <input id="submit" name="submit" type="submit" style="display:none" onclick="return updatePref();" class="formbtn" value="Save Settings" /> + <input id="submit" name="submit" type="submit" style="display:none" onclick="return updatePref();" class="formbtn" value="<?=gettext("Save Settings");?>" /> </p> <div id="niftyOutter"> |