I18N
This commit is contained in:
parent
dd34f15568
commit
d3f24242f8
3 changed files with 27 additions and 27 deletions
30
errors.php
30
errors.php
|
@ -1,28 +1,28 @@
|
||||||
<?php
|
<?php
|
||||||
$ERRORS[0] = "Unknown error";
|
$ERRORS[0] = _("Unknown error");
|
||||||
|
|
||||||
$ERRORS[1] = "This program requires XmlHttpRequest " .
|
$ERRORS[1] = _("This program requires XmlHttpRequest " .
|
||||||
"to function properly. Your browser doesn't seem to support it.";
|
"to function properly. Your browser doesn't seem to support it.");
|
||||||
|
|
||||||
$ERRORS[2] = "This program requires cookies " .
|
$ERRORS[2] = _("This program requires cookies " .
|
||||||
"to function properly. Your browser doesn't seem to support them.";
|
"to function properly. Your browser doesn't seem to support them.");
|
||||||
|
|
||||||
$ERRORS[3] = "Backend sanity check failed";
|
$ERRORS[3] = _("Backend sanity check failed");
|
||||||
|
|
||||||
$ERRORS[4] = "Frontend sanity check failed.";
|
$ERRORS[4] = _("Frontend sanity check failed.");
|
||||||
|
|
||||||
$ERRORS[5] = "Incorrect database schema version.";
|
$ERRORS[5] = _("Incorrect database schema version.");
|
||||||
|
|
||||||
$ERRORS[6] = "Request not authorized.";
|
$ERRORS[6] = _("Request not authorized.");
|
||||||
|
|
||||||
$ERRORS[7] = "No operation to perform.";
|
$ERRORS[7] = _("No operation to perform.");
|
||||||
|
|
||||||
$ERRORS[8] = "Could not display feed: query failed. Please check label match syntax or local configuration.";
|
$ERRORS[8] = _("Could not display feed: query failed. Please check label match syntax or local configuration.");
|
||||||
|
|
||||||
$ERRORS[8] = "Denied. Your access level is insufficient to access this page.";
|
$ERRORS[8] = _("Denied. Your access level is insufficient to access this page.");
|
||||||
|
|
||||||
$ERRORS[9] = "Configuration check failed";
|
$ERRORS[9] = _("Configuration check failed");
|
||||||
|
|
||||||
$ERRORS[10] = "Your version of MySQL is not currently supported. Please see
|
$ERRORS[10] = _("Your version of MySQL is not currently supported. Please see
|
||||||
official site for more information.";
|
official site for more information.");
|
||||||
?>
|
?>
|
||||||
|
|
22
prefs.php
22
prefs.php
|
@ -80,13 +80,13 @@ window.onload = init;
|
||||||
|
|
||||||
<div id="fatal_error"><div id="fatal_error_inner">
|
<div id="fatal_error"><div id="fatal_error_inner">
|
||||||
<h1>Fatal Error</h1>
|
<h1>Fatal Error</h1>
|
||||||
<div id="fatal_error_msg">Unknown Error</div>
|
<div id="fatal_error_msg"><?php echo _('Unknown Error') ?></div>
|
||||||
</div></div>
|
</div></div>
|
||||||
|
|
||||||
<div id="prefHeader">
|
<div id="prefHeader">
|
||||||
<?php if (!SINGLE_USER_MODE) { ?>
|
<?php if (!SINGLE_USER_MODE) { ?>
|
||||||
<div style="float : right">
|
<div style="float : right">
|
||||||
Hello, <b><?php echo $_SESSION["name"] ?></b>
|
<?php echo _('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b>
|
||||||
(<a href="logout.php">Logout</a>)
|
(<a href="logout.php">Logout</a>)
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
@ -100,31 +100,31 @@ window.onload = init;
|
||||||
<div class="firstTab"> </div>
|
<div class="firstTab"> </div>
|
||||||
|
|
||||||
<div id="genConfigTab" class="prefsTab"
|
<div id="genConfigTab" class="prefsTab"
|
||||||
onclick="selectTab('genConfig')">Preferences</div>
|
onclick="selectTab('genConfig')"><?php echo _('Preferences') ?></div>
|
||||||
<div id="feedConfigTab" class="prefsTab"
|
<div id="feedConfigTab" class="prefsTab"
|
||||||
onclick="selectTab('feedConfig')">My Feeds</div>
|
onclick="selectTab('feedConfig')"><?php echo _('My Feeds') ?></div>
|
||||||
<?php if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) { ?>
|
<?php if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) { ?>
|
||||||
<div id="feedBrowserTab" class="prefsTab"
|
<div id="feedBrowserTab" class="prefsTab"
|
||||||
onclick="selectTab('feedBrowser')">Other Feeds</div>
|
onclick="selectTab('feedBrowser')"><?php echo _('Other Feeds') ?></div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<div id="filterConfigTab" class="prefsTab"
|
<div id="filterConfigTab" class="prefsTab"
|
||||||
onclick="selectTab('filterConfig')">Content Filtering</div>
|
onclick="selectTab('filterConfig')"><?php echo _('Content Filtering') ?></div>
|
||||||
<?php if (get_pref($link, 'ENABLE_LABELS')) { ?>
|
<?php if (get_pref($link, 'ENABLE_LABELS')) { ?>
|
||||||
<div id="labelConfigTab" class="prefsTab"
|
<div id="labelConfigTab" class="prefsTab"
|
||||||
onclick="selectTab('labelConfig')">Label Editor</div>
|
onclick="selectTab('labelConfig')"><?php echo _('Label Editor') ?></div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if ($_SESSION["access_level"] >= 10) { ?>
|
<?php if ($_SESSION["access_level"] >= 10) { ?>
|
||||||
<div id="userConfigTab" class="prefsTab"
|
<div id="userConfigTab" class="prefsTab"
|
||||||
onclick="selectTab('userConfig')">User Manager</div>
|
onclick="selectTab('userConfig')"><?php echo _('User Manager') ?></div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<div id="prefContent">
|
<div id="prefContent">
|
||||||
<p>Loading, please wait...</p>
|
<p><?php echo _('Loading, please wait...') ?></p>
|
||||||
<noscript>
|
<noscript>
|
||||||
<div class="error">
|
<div class="error">
|
||||||
Your browser doesn't support Javascript, which is required
|
<?php echo _("Your browser doesn't support Javascript, which is required
|
||||||
for this application to function properly. Please check your
|
for this application to function properly. Please check your
|
||||||
browser settings.</div>
|
browser settings.") ?></div>
|
||||||
</noscript>
|
</noscript>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ window.onload = init;
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<?php if (!SINGLE_USER_MODE) { ?>
|
<?php if (!SINGLE_USER_MODE) { ?>
|
||||||
<div style="float : right">
|
<div style="float : right">
|
||||||
Hello, <b><?php echo $_SESSION["name"] ?></b>
|
<?php echo _('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b>
|
||||||
(<a href="logout.php">Logout</a>)
|
(<a href="logout.php">Logout</a>)
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
Loading…
Reference in a new issue