]> git.wh0rd.org Git - tt-rss.git/commitdiff
enable translations by default; misc fixes
authorAndrew Dolgov <fox@bah.org.ru>
Mon, 25 Jan 2010 20:12:08 +0000 (23:12 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Mon, 25 Jan 2010 20:12:08 +0000 (23:12 +0300)
backend.php
config.php-dist
login_form.php

index b9b60a5425f9dc478f3e9164c060a81a3ab0b81b..a87195c444a79c5235ba3ffd34254a3c36c25e28 100644 (file)
                                print "</select>";
 
                                $_SESSION = array();
-
+                       }
                break;
-               }
 
        } // Select action according to $op value.
 
index 85fe7cdc4ec2d1cfd6a861a9a5bdcd959abaf7b0..58811646d69076c7ab86c631bc17250d4f565d31 100644 (file)
        // If update daemon and update_feeds should send digests
        // Disable if you prefer querying special URL (see wiki)
 
-       define('ENABLE_TRANSLATIONS', false);
-       // Enable experimental support for interface translations
-       // based on PHP-Gettext. This is of no much use right now.
+       define('ENABLE_TRANSLATIONS', true);
+       // Enable support for interface translations
 
        define('MYSQL_CHARSET', '');
        // Connection charset for MySQL. Only enable if having charset-related
index af5e70e9b8e07dd5e5f9de59713537155b208f46..ea3d3fcc25143f45036495ce4b2950fd28e51c3e 100644 (file)
 <script type="text/javascript">
 function init() {
 
-       if (arguments.callee.done) return;
-       arguments.callee.done = true;           
-
-       var login = document.forms["loginForm"].login;
-
        var limit_set = getCookie("ttrss_bwlimit");
 
        if (limit_set == "true") {
                document.forms["loginForm"].bw_limit.checked = true;
        }
 
-       login.focus();
-
+       document.forms["loginForm"].login.focus();
 }
+
 function fetchProfiles() {
        try {
                var params = Form.serialize('loginForm');
@@ -102,10 +97,9 @@ function validateLoginForm(f) {
 </script>
 
 <script type="text/javascript">
-if (document.addEventListener) {
-       document.addEventListener("DOMContentLoaded", init, null);
-}
-window.onload = init;
+       Event.observe(window, 'load', function() {
+               init();
+       });
 </script>
 
 <form action="" method="POST" id="loginForm" name="loginForm" onsubmit="return validateLoginForm(this)">
@@ -125,11 +119,11 @@ window.onload = init;
                <table>
                        <tr><td align="right"><?php echo __("Login:") ?></td>
                        <td align="right"><input name="login" 
-                               onchange="fetchProfiles()"
+                               onchange="fetchProfiles()" onfocus="fetchProfiles()"
                                value="<?php echo $_SERVER["REMOTE_USER"] ?>"></td></tr>
                        <tr><td align="right"><?php echo __("Password:") ?></td>
                        <td align="right"><input type="password" name="password"
-                               onchange="fetchProfiles()"
+                               onchange="fetchProfiles()" onfocus="fetchProfiles()"
                                value="<?php echo $_SERVER["REMOTE_USER"] ?>"></td></tr>
                        <?php if (ENABLE_TRANSLATIONS) { ?>
                        <tr><td align="right"><?php echo __("Language:") ?></td>