]> git.mxchange.org Git - friendica.git/commitdiff
Translatable "Welcome to" in home
authorfabrixxm <fabrix.xm@gmail.com>
Thu, 23 Dec 2010 20:33:45 +0000 (21:33 +0100)
committerfabrixxm <fabrix.xm@gmail.com>
Thu, 23 Dec 2010 20:33:45 +0000 (21:33 +0100)
mod/home.php
util/strings.php

index 59cc31d3b00095f1e2eb21e6a8e27b807dd1df58..53b111bdf7d492da4c13a01036b1c1a5f5e125fa 100644 (file)
@@ -19,7 +19,7 @@ function home_content(&$a) {
  *             $a->page['footer'] = '';
  *     $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'))
                $o .= file_get_contents('home.html');
 
@@ -27,4 +27,4 @@ function home_content(&$a) {
        return $o;
 
        
-}} 
\ No newline at end of file
+}} 
index 39d66a3a940e6b33ab4affa0787628931f2e66c5..6e6c4b27cbd2ebd450019d1c7999232bec0afdec 100644 (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['Nickname or Email address: '] = 'Nickname or Email address: ';
+$a->strings['Welcome to '] = 'Welcome to ';
 $a->strings['Password: '] = 'Password: ';
 $a->strings['Login'] = 'Login';
 $a->strings['Nickname/Email/OpenID: '] = 'Nickname/Email/OpenID: ';