summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-12-21 18:12:51 +0100
committerAndrew Dolgov <[email protected]>2006-12-21 18:12:51 +0100
commitd3f24242f8d295567332a2813216a9b003d56781 (patch)
tree0da05b4959343224f337a438838aa7127f0ee2a4
parentdd34f155680915e50ad82bcf6e641a4efea64b79 (diff)
I18N
-rw-r--r--errors.php30
-rw-r--r--prefs.php22
-rw-r--r--tt-rss.php2
3 files changed, 27 insertions, 27 deletions
diff --git a/errors.php b/errors.php
index 2963beb8d..6e252ba08 100644
--- a/errors.php
+++ b/errors.php
@@ -1,28 +1,28 @@
<?php
- $ERRORS[0] = "Unknown error";
+ $ERRORS[0] = _("Unknown error");
- $ERRORS[1] = "This program requires XmlHttpRequest " .
- "to function properly. Your browser doesn't seem to support it.";
+ $ERRORS[1] = _("This program requires XmlHttpRequest " .
+ "to function properly. Your browser doesn't seem to support it.");
- $ERRORS[2] = "This program requires cookies " .
- "to function properly. Your browser doesn't seem to support them.";
+ $ERRORS[2] = _("This program requires cookies " .
+ "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
- official site for more information.";
+ $ERRORS[10] = _("Your version of MySQL is not currently supported. Please see
+ official site for more information.");
?>
diff --git a/prefs.php b/prefs.php
index 090252a62..5b529db1a 100644
--- a/prefs.php
+++ b/prefs.php
@@ -80,13 +80,13 @@ window.onload = init;
<div id="fatal_error"><div id="fatal_error_inner">
<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 id="prefHeader">
<?php if (!SINGLE_USER_MODE) { ?>
<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>)
</div>
<?php } ?>
@@ -100,31 +100,31 @@ window.onload = init;
<div class="firstTab">&nbsp;</div>
<div id="genConfigTab" class="prefsTab"
- onclick="selectTab('genConfig')">Preferences</div>
+ onclick="selectTab('genConfig')"><?php echo _('Preferences') ?></div>
<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) { ?>
<div id="feedBrowserTab" class="prefsTab"
- onclick="selectTab('feedBrowser')">Other Feeds</div>
+ onclick="selectTab('feedBrowser')"><?php echo _('Other Feeds') ?></div>
<?php } ?>
<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')) { ?>
<div id="labelConfigTab" class="prefsTab"
- onclick="selectTab('labelConfig')">Label Editor</div>
+ onclick="selectTab('labelConfig')"><?php echo _('Label Editor') ?></div>
<?php } ?>
<?php if ($_SESSION["access_level"] >= 10) { ?>
<div id="userConfigTab" class="prefsTab"
- onclick="selectTab('userConfig')">User Manager</div>
+ onclick="selectTab('userConfig')"><?php echo _('User Manager') ?></div>
<?php } ?>
<div id="prefContent">
- <p>Loading, please wait...</p>
+ <p><?php echo _('Loading, please wait...') ?></p>
<noscript>
<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
- browser settings.</div>
+ browser settings.") ?></div>
</noscript>
</div>
diff --git a/tt-rss.php b/tt-rss.php
index a0bb4108f..b4f4a992c 100644
--- a/tt-rss.php
+++ b/tt-rss.php
@@ -110,7 +110,7 @@ window.onload = init;
<div id="header">
<?php if (!SINGLE_USER_MODE) { ?>
<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>)
</div>
<?php } ?>