Rev 170 | Rev 191 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 170 | Rev 189 | ||
|---|---|---|---|
| Line 33... | Line 33... | ||
| 33 | $loader->register(); | 33 | $loader->register(); | 
| 34 | 34 | ||
| 35 | $translator = new Zend\I18n\Translator\Translator(); | 35 | $translator = new Zend\I18n\Translator\Translator(); | 
| 36 | // $translator->setCache(new Zend\Cache\Storage\*Adapter());
 | 36 | // $translator->setCache(new Zend\Cache\Storage\*Adapter());
 | 
| 37 | $type = 'gettext'; | 37 | $type = 'gettext'; | 
| 38 | $baseDir = './LocaleData'; | 38 | $baseDir = './i18n/LocaleData'; | 
| 39 | $pattern = '%s/LC_MESSAGES/%1$s.pointedears.mo'; | 39 | $pattern = '%s/LC_MESSAGES/%1$s.pointedears.mo'; | 
| 40 | $textDomain = 'de.pointedears'; | 40 | $textDomain = 'de.pointedears'; | 
| 41 | $translator->addTranslationFilePattern($type, $baseDir, $pattern, $textDomain); | 41 | $translator->addTranslationFilePattern($type, $baseDir, $pattern, $textDomain); | 
| 42 | 42 | ||
| 43 | /**
 | 43 | /**
 |