]> git.wh0rd.org Git - tt-rss.git/commitdiff
I18N
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 21 Dec 2006 17:12:51 +0000 (18:12 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 21 Dec 2006 17:12:51 +0000 (18:12 +0100)
errors.php
prefs.php
tt-rss.php

index 2963beb8d973cb35a27dab9bdc68d3033ba3f313..6e252ba08953c976e1ba07fae44fbde3b79530d4 100644 (file)
@@ -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.");
 ?>
index 090252a62138dfc346649bece193627cebca550a..5b529db1a9a207e12b70a9ef029f220fb5d9e396 100644 (file)
--- 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>
 
index a0bb4108fb3addc249e71d7ba122385bfc1e905c..b4f4a992c636aa6a6ceec10bf8963e9162f5a5ea 100644 (file)
@@ -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 } ?>