Subversion Repositories LCARS

Compare Revisions

Last modification

Ignore whitespace Rev 213 → Rev 212

/branches/live/global.php
50,9 → 50,7
global $languages;
preg_match('/^[^-]{2,3}/', $key, $matches);
$language = $languages[$key];
return (is_array($language) && isset($language['key'])
? $language['key']
: $matches[0]);
return isset($language['key']) ? $language['key'] : $matches[0];
}
 
/**
64,9 → 62,7
{
global $languages;
$language = $languages[$key];
return (is_array($language) && isset($language['name'])
? $language['name']
: $language);
return isset($language['name']) ? $language['name'] : $language;
}
 
require_once 'Zend/Loader/StandardAutoloader.php';
86,10 → 82,6
* using Zend Framework 2.1 Translate
*
* @param string $s
*   String to be translated
* @param string $lang = null
* Target language. The default is the document language
* ($language).
* @return string
*/
function tr ($s, $lang = null)