mirror of https://tt-rss.org/git/tt-rss.git
add startup_gettext() calls to several endpoints for unregistered users so the output would be translated based on accept-language header
This commit is contained in:
parent
642432fc39
commit
67e0cf9a37
|
@ -732,6 +732,8 @@ class Handler_Public extends Handler {
|
||||||
}
|
}
|
||||||
|
|
||||||
function forgotpass() {
|
function forgotpass() {
|
||||||
|
startup_gettext();
|
||||||
|
|
||||||
header('Content-Type: text/html; charset=utf-8');
|
header('Content-Type: text/html; charset=utf-8');
|
||||||
print "<html><head><title>Tiny Tiny RSS</title>";
|
print "<html><head><title>Tiny Tiny RSS</title>";
|
||||||
|
|
||||||
|
@ -825,6 +827,8 @@ class Handler_Public extends Handler {
|
||||||
}
|
}
|
||||||
|
|
||||||
function dbupdate() {
|
function dbupdate() {
|
||||||
|
startup_gettext();
|
||||||
|
|
||||||
if (!SINGLE_USER_MODE && $_SESSION["access_level"] < 10) {
|
if (!SINGLE_USER_MODE && $_SESSION["access_level"] < 10) {
|
||||||
$_SESSION["login_error_msg"] = __("Your access level is insufficient to run this script.");
|
$_SESSION["login_error_msg"] = __("Your access level is insufficient to run this script.");
|
||||||
render_login_form();
|
render_login_form();
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<?php startup_gettext(); ?>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Tiny Tiny RSS : Login</title>
|
<title>Tiny Tiny RSS : Login</title>
|
||||||
|
@ -108,14 +109,14 @@ function init() {
|
||||||
require(['dojo/parser','dijit/form/Button','dijit/form/CheckBox','dijit/form/Form',
|
require(['dojo/parser','dijit/form/Button','dijit/form/CheckBox','dijit/form/Form',
|
||||||
'dijit/form/Select','dijit/form/TextBox','dijit/form/ValidationTextBox'],function(parser){
|
'dijit/form/Select','dijit/form/TextBox','dijit/form/ValidationTextBox'],function(parser){
|
||||||
parser.parse();
|
parser.parse();
|
||||||
//show tooltip node only after this widget is instaniated.
|
//show tooltip node only after this widget is instaniated.
|
||||||
dojo.query('div[dojoType="dijit.Tooltip"]').style({
|
dojo.query('div[dojoType="dijit.Tooltip"]').style({
|
||||||
display:''
|
display:''
|
||||||
});
|
});
|
||||||
fetchProfiles();
|
fetchProfiles();
|
||||||
dijit.byId("bw_limit").attr("checked", getCookie("ttrss_bwlimit") == 'true');
|
dijit.byId("bw_limit").attr("checked", getCookie("ttrss_bwlimit") == 'true');
|
||||||
document.forms.loginForm.login.focus();
|
document.forms.loginForm.login.focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
require_once "config.php";
|
require_once "config.php";
|
||||||
require_once "db.php";
|
require_once "db.php";
|
||||||
|
|
||||||
|
startup_gettext();
|
||||||
|
|
||||||
$action = $_REQUEST["action"];
|
$action = $_REQUEST["action"];
|
||||||
|
|
||||||
if (!init_plugins()) return;
|
if (!init_plugins()) return;
|
||||||
|
|
Loading…
Reference in New Issue