Translatable "Welcome to" in home

This commit is contained in:
fabrixxm 2010-12-23 21:33:45 +01:00
parent fa756ffcb9
commit dd83923057
2 changed files with 3 additions and 2 deletions

View file

@ -19,7 +19,7 @@ function home_content(&$a) {
* $a->page['footer'] = ''; * $a->page['footer'] = '';
* $a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://friendika.com\" title=\"friendika\" >friendika</a></div>"; * $a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://friendika.com\" title=\"friendika\" >friendika</a></div>";
*/ */
$o .= '<h1>Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '</h1>'; $o .= '<h1>' . ((x($a->config,'sitename')) ? t("Welcome to ").$a->config['sitename'] : "" ) . '</h1>';
if(file_exists('home.html')) if(file_exists('home.html'))
$o .= file_get_contents('home.html'); $o .= file_get_contents('home.html');
@ -27,4 +27,4 @@ function home_content(&$a) {
return $o; return $o;
}} }}

View file

@ -4,6 +4,7 @@ $a->strings['Page not found.' ] = 'Page not found.' ;
$a->strings['Permission denied'] = 'Permission denied'; $a->strings['Permission denied'] = 'Permission denied';
$a->strings['Permission denied.'] = 'Permission denied.'; $a->strings['Permission denied.'] = 'Permission denied.';
$a->strings['Nickname or Email address: '] = 'Nickname or Email address: '; $a->strings['Nickname or Email address: '] = 'Nickname or Email address: ';
$a->strings['Welcome to '] = 'Welcome to ';
$a->strings['Password: '] = 'Password: '; $a->strings['Password: '] = 'Password: ';
$a->strings['Login'] = 'Login'; $a->strings['Login'] = 'Login';
$a->strings['Nickname/Email/OpenID: '] = 'Nickname/Email/OpenID: '; $a->strings['Nickname/Email/OpenID: '] = 'Nickname/Email/OpenID: ';