Subversion Repositories LCARS

Compare Revisions

Last modification

Ignore whitespace Rev 190 → Rev 191

/trunk/global.php
25,7 → 25,8
 
$languages = array(
'en' => 'English',
'de' => 'Deutsch'
'de' => 'Deutsch',
// 'ru' => 'По-русски',
);
 
require_once 'Zend/Loader/StandardAutoloader.php';
36,8 → 37,8
// $translator->setCache(new Zend\Cache\Storage\*Adapter());
$type = 'gettext';
$baseDir = './i18n/LocaleData';
$pattern = '%s/LC_MESSAGES/%1$s.pointedears.mo';
$textDomain = 'de.pointedears';
$pattern = "%s/LC_MESSAGES/{$textDomain}.mo";
$translator->addTranslationFilePattern($type, $baseDir, $pattern, $textDomain);
 
/**
53,6 → 54,9
global $textDomain;
global $language;
 
/* DEBUG */
// echo "return \$translator->translate(\"$s\", \"$textDomain\", \"$language\");<br>\n";
 
return $translator->translate($s, $textDomain, $language);
}