2012-08-24 01:45:11 +02:00
|
|
|
---
|
|
|
|
Name: basei18n
|
2018-02-13 04:31:51 +01:00
|
|
|
Before: '#defaulti18n'
|
2012-08-24 01:45:11 +02:00
|
|
|
---
|
2022-11-15 06:20:54 +01:00
|
|
|
SilverStripe\Core\Manifest\ModuleManifest:
|
2012-08-24 01:45:11 +02:00
|
|
|
module_priority:
|
2017-03-14 03:20:51 +01:00
|
|
|
- silverstripe\admin
|
|
|
|
- silverstripe\framework
|
2012-08-24 01:45:11 +02:00
|
|
|
---
|
|
|
|
Name: defaulti18n
|
|
|
|
---
|
2022-11-15 06:20:54 +01:00
|
|
|
SilverStripe\Core\Manifest\ModuleManifest:
|
2012-08-24 01:45:11 +02:00
|
|
|
module_priority:
|
|
|
|
- other_modules
|
2015-07-05 06:53:21 +02:00
|
|
|
---
|
2017-01-18 04:58:48 +01:00
|
|
|
name: i18nMessages
|
|
|
|
---
|
|
|
|
SilverStripe\Core\Injector\Injector:
|
|
|
|
# Custom yml loader for localisation messages
|
|
|
|
SilverStripe\i18n\Messages\Reader:
|
|
|
|
class: SilverStripe\i18n\Messages\YamlReader
|
|
|
|
SilverStripe\i18n\Messages\Writer:
|
|
|
|
class: SilverStripe\i18n\Messages\YamlWriter
|
|
|
|
Symfony\Component\Translation\Loader\LoaderInterface:
|
|
|
|
class: SilverStripe\i18n\Messages\Symfony\ModuleYamlLoader
|
|
|
|
properties:
|
2017-07-21 12:17:18 +02:00
|
|
|
Reader: '%$SilverStripe\i18n\Messages\Reader'
|
2017-01-18 04:58:48 +01:00
|
|
|
# Ensure our cache respects ModuleYamlLoader's self-invalidation
|
|
|
|
# @see DirectoryListResource::isFresh()
|
|
|
|
# Note: This could be replaced with a more aggressive cache if necessary on a live environment
|
|
|
|
Symfony\Component\Config\ConfigCacheFactoryInterface:
|
|
|
|
class: Symfony\Component\Config\ResourceCheckerConfigCacheFactory
|
|
|
|
constructor:
|
2017-07-21 12:17:18 +02:00
|
|
|
0: [ '%$Symfony\Component\Config\Resource\SelfCheckingResourceChecker' ]
|
2017-01-18 04:58:48 +01:00
|
|
|
# Create default translator with standard cache path and our custom loader
|
|
|
|
Symfony\Component\Translation\TranslatorInterface:
|
|
|
|
class: Symfony\Component\Translation\Translator
|
|
|
|
constructor:
|
|
|
|
0: 'en'
|
|
|
|
1: null
|
2017-10-09 01:41:34 +02:00
|
|
|
2: '`TEMP_PATH`'
|
2017-01-18 04:58:48 +01:00
|
|
|
properties:
|
2017-07-21 12:17:18 +02:00
|
|
|
ConfigCacheFactory: '%$Symfony\Component\Config\ConfigCacheFactoryInterface'
|
2017-01-18 04:58:48 +01:00
|
|
|
calls:
|
|
|
|
FallbackLocales: [ setFallbackLocales, [['en']]]
|
2017-07-21 12:17:18 +02:00
|
|
|
Loader: [ addLoader, ['ss', '%$Symfony\Component\Translation\Loader\LoaderInterface' ]]
|
2017-01-18 04:58:48 +01:00
|
|
|
# Set this translator as our message provider for silverstripe's i18n
|
|
|
|
SilverStripe\i18n\Messages\MessageProvider:
|
|
|
|
class: SilverStripe\i18n\Messages\Symfony\SymfonyMessageProvider
|
|
|
|
properties:
|
2017-07-21 12:17:18 +02:00
|
|
|
Translator: '%$Symfony\Component\Translation\TranslatorInterface'
|
2017-01-18 04:58:48 +01:00
|
|
|
---
|
2015-07-05 06:53:21 +02:00
|
|
|
Name: textcollector
|
|
|
|
---
|
2016-08-19 00:51:35 +02:00
|
|
|
SilverStripe\Core\Injector\Injector:
|
2017-01-18 04:58:48 +01:00
|
|
|
SilverStripe\i18n\TextCollection\i18nTextCollector:
|
|
|
|
properties:
|
2017-07-21 12:17:18 +02:00
|
|
|
Reader: '%$SilverStripe\i18n\Messages\Reader'
|
|
|
|
Writer: '%$SilverStripe\i18n\Messages\Writer'
|
2017-01-26 05:20:08 +01:00
|
|
|
---
|
|
|
|
Name: i18ndata
|
|
|
|
---
|
|
|
|
SilverStripe\Core\Injector\Injector:
|
|
|
|
SilverStripe\i18n\Data\Locales:
|
|
|
|
class: SilverStripe\i18n\Data\Intl\IntlLocales
|