website diff lib/get-feeds.php @ rev 1296

Add de/doc/index.php, lib/html/header.de.html, update lib/html/nav.de.html (thanks HGT)
author Paul Issott <paul@slitaz.org>
date Sun Mar 19 17:52:44 2017 +0000 (2017-03-19)
parents 8585804d4b9a
children 7d0c505926c6
line diff
     1.1 --- a/lib/get-feeds.php	Fri Jun 29 11:29:39 2012 +0000
     1.2 +++ b/lib/get-feeds.php	Sun Mar 19 17:52:44 2017 +0000
     1.3 @@ -3,7 +3,6 @@
     1.4  function updated() {
     1.5  	$addr = explode('/', $_SERVER['REQUEST_URI']);
     1.6  	$lang = $addr[1];
     1.7 -	if ($lang == '') $lang = "en";
     1.8  	$native = array(
     1.9  	"cn"=>"- 更新于: ",
    1.10  	"da"=>"- Opdateret den: ",
    1.11 @@ -16,6 +15,8 @@
    1.12  	"pt"=>"- Atualizado em: ",
    1.13  	"ru"=>"— Обновлено: "
    1.14  	);
    1.15 +	if (!isset($native[$lang]))
    1.16 +		$lang = "en";
    1.17  	return $native[$lang];
    1.18  }
    1.19