Subversion Repositories LCARS

Rev

Rev 152 | Rev 170 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 152 Rev 154
Line 25... Line 25...
25
  'en' => 'English',
25
  'en' => 'English',
26
  'de' => 'Deutsch'
26
  'de' => 'Deutsch'
27
);
27
);
28
28
29
/* TODO: Use Autoloader */
29
/* TODO: Use Autoloader */
30
require_once 'Zend/Stdlib/ErrorHandler.php';
30
require_once 'Zend/Loader/StandardAutoloader.php';
31
require_once 'Zend/I18n/Translator/TextDomain.php';
-
 
32
require_once 'Zend/I18n/Translator/Loader/FileLoaderInterface.php';
31
$loader = new Zend\Loader\StandardAutoloader(array('autoregister_zf' => true));
33
require_once 'Zend/I18n/Translator/Loader/Gettext.php';
-
 
34
require_once 'Zend/ServiceManager/ServiceLocatorAwareInterface.php';
-
 
35
require_once 'Zend/ServiceManager/ServiceLocatorInterface.php';
-
 
36
require_once 'Zend/ServiceManager/ServiceManager.php';
32
$loader->register();
37
require_once 'Zend/ServiceManager/AbstractPluginManager.php';
-
 
38
require_once 'Zend/I18n/Translator/LoaderPluginManager.php';
-
 
39
require_once 'Zend/I18n/Translator/Translator.php';
-
 
40
 
33
41
$translator = new Zend\I18n\Translator\Translator();
34
$translator = new Zend\I18n\Translator\Translator();
-
 
35
// $translator->setCache(new Zend\Cache\Storage\*Adapter());
42
$type = 'gettext';
36
$type = 'gettext';
43
$baseDir = './LocaleData';
37
$baseDir = './LocaleData';
44
$pattern = '%s/LC_MESSAGES/%1$s.pointedears.mo';
38
$pattern = '%s/LC_MESSAGES/%1$s.pointedears.mo';
45
$textDomain = 'de.pointedears';
39
$textDomain = 'de.pointedears';
46
$translator->addTranslationFilePattern($type, $baseDir, $pattern, $textDomain);
40
$translator->addTranslationFilePattern($type, $baseDir, $pattern, $textDomain);