aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-26 22:48:08 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-26 22:48:08 -0700
commite15265be3c687d5830a44de38fc2e5311dc00d86 (patch)
tree180aa324482ed6a1999f66e713e553b2abe050c7 /include
parentd6b3d091a650c91bc239a8047af212d929113189 (diff)
downloadvolse-hubzilla-e15265be3c687d5830a44de38fc2e5311dc00d86.tar.gz
volse-hubzilla-e15265be3c687d5830a44de38fc2e5311dc00d86.tar.bz2
volse-hubzilla-e15265be3c687d5830a44de38fc2e5311dc00d86.zip
start at i18n
Diffstat (limited to 'include')
-rw-r--r--include/auth.php6
-rw-r--r--include/nav.php3
2 files changed, 4 insertions, 5 deletions
diff --git a/include/auth.php b/include/auth.php
index 513d717e3..8e9d19d8a 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -10,7 +10,7 @@ if((x($_SESSION,'authenticated')) && (! ($_POST['auth-params'] == 'login'))) {
unset($_SESSION['is_visitor']);
unset($_SESSION['administrator']);
unset($_SESSION['cid']);
- $_SESSION['sysmsg'] = "Logged out." . EOL;
+ $_SESSION['sysmsg'] = t("Logged out.") . EOL;
goaway($a->get_baseurl());
}
if(x($_SESSION,'uid')) {
@@ -50,7 +50,7 @@ else {
dbesc(trim($_POST['login-name'])),
dbesc($encrypted));
if(($r === false) || (! count($r))) {
- $_SESSION['sysmsg'] = 'Login failed.' . EOL ;
+ $_SESSION['sysmsg'] = t('Login failed.') . EOL ;
goaway($a->get_baseurl());
}
$_SESSION['uid'] = $r[0]['uid'];
@@ -58,7 +58,7 @@ else {
$_SESSION['authenticated'] = 1;
$_SESSION['my_url'] = $a->get_baseurl() . '/profile/' . $r[0]['nickname'];
- $_SESSION['sysmsg'] = "Welcome back " . $r[0]['username'] . EOL;
+ $_SESSION['sysmsg'] = t("Welcome back ") . $r[0]['username'] . EOL;
$a->user = $r[0];
if(strlen($a->user['timezone']))
date_default_timezone_set($a->user['timezone']);
diff --git a/include/nav.php b/include/nav.php
index 0dc0f6029..a47d55d9a 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -1,8 +1,7 @@
-
<?php
if(x($_SESSION['uid'])) {
- $a->page['nav'] .= "<a id=\"nav-logout-link\" class=\"nav-link\" href=\"logout\">Logout</a>\r\n";
+ $a->page['nav'] .= "<a id=\"nav-logout-link\" class=\"nav-link\" href=\"logout\">" . t('Logout') . "</a>\r\n";
}
$a->page['nav'] .= "<span id=\"nav-link-wrapper\" >\r\n";