translation.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?xml version="1.0" ?>
  2. <container xmlns="http://symfony.com/schema/dic/services"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
  5. <parameters>
  6. <parameter key="translator.class">Symfony\Bundle\FrameworkBundle\Translation\Translator</parameter>
  7. <parameter key="translator.identity.class">Symfony\Component\Translation\IdentityTranslator</parameter>
  8. <parameter key="translator.selector.class">Symfony\Component\Translation\MessageSelector</parameter>
  9. <parameter key="translation.loader.php.class">Symfony\Component\Translation\Loader\PhpFileLoader</parameter>
  10. <parameter key="translation.loader.yml.class">Symfony\Component\Translation\Loader\YamlFileLoader</parameter>
  11. <parameter key="translation.loader.xliff.class">Symfony\Component\Translation\Loader\XliffFileLoader</parameter>
  12. <parameter key="translation.loader.po.class">Symfony\Component\Translation\Loader\PoFileLoader</parameter>
  13. <parameter key="translation.loader.mo.class">Symfony\Component\Translation\Loader\MoFileLoader</parameter>
  14. <parameter key="translation.loader.qt.class">Symfony\Component\Translation\Loader\QtFileLoader</parameter>
  15. <parameter key="translation.loader.csv.class">Symfony\Component\Translation\Loader\CsvFileLoader</parameter>
  16. <parameter key="translation.loader.res.class">Symfony\Component\Translation\Loader\IcuResFileLoader</parameter>
  17. <parameter key="translation.loader.dat.class">Symfony\Component\Translation\Loader\IcuDatFileLoader</parameter>
  18. <parameter key="translation.loader.ini.class">Symfony\Component\Translation\Loader\IniFileLoader</parameter>
  19. <parameter key="translation.loader.json.class">Symfony\Component\Translation\Loader\JsonFileLoader</parameter>
  20. <parameter key="translation.dumper.php.class">Symfony\Component\Translation\Dumper\PhpFileDumper</parameter>
  21. <parameter key="translation.dumper.xliff.class">Symfony\Component\Translation\Dumper\XliffFileDumper</parameter>
  22. <parameter key="translation.dumper.po.class">Symfony\Component\Translation\Dumper\PoFileDumper</parameter>
  23. <parameter key="translation.dumper.mo.class">Symfony\Component\Translation\Dumper\MoFileDumper</parameter>
  24. <parameter key="translation.dumper.yml.class">Symfony\Component\Translation\Dumper\YamlFileDumper</parameter>
  25. <parameter key="translation.dumper.qt.class">Symfony\Component\Translation\Dumper\QtFileDumper</parameter>
  26. <parameter key="translation.dumper.csv.class">Symfony\Component\Translation\Dumper\CsvFileDumper</parameter>
  27. <parameter key="translation.dumper.ini.class">Symfony\Component\Translation\Dumper\IniFileDumper</parameter>
  28. <parameter key="translation.dumper.json.class">Symfony\Component\Translation\Dumper\JsonFileDumper</parameter>
  29. <parameter key="translation.dumper.res.class">Symfony\Component\Translation\Dumper\IcuResFileDumper</parameter>
  30. <parameter key="translation.extractor.php.class">Symfony\Bundle\FrameworkBundle\Translation\PhpExtractor</parameter>
  31. <parameter key="translation.loader.class">Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader</parameter>
  32. <parameter key="translation.extractor.class">Symfony\Component\Translation\Extractor\ChainExtractor</parameter>
  33. <parameter key="translation.writer.class">Symfony\Component\Translation\Writer\TranslationWriter</parameter>
  34. </parameters>
  35. <services>
  36. <service id="translator.default" class="%translator.class%">
  37. <argument type="service" id="service_container" />
  38. <argument type="service" id="translator.selector" />
  39. <argument type="collection" /> <!-- translation loaders -->
  40. <argument type="collection">
  41. <argument key="cache_dir">%kernel.cache_dir%/translations</argument>
  42. <argument key="debug">%kernel.debug%</argument>
  43. </argument>
  44. <argument type="collection" /> <!-- translation resources -->
  45. <call method="setConfigCacheFactory">
  46. <argument type="service" id="config_cache_factory" />
  47. </call>
  48. <autowiring-type>Symfony\Component\Translation\TranslatorInterface</autowiring-type>
  49. </service>
  50. <service id="translator.logging" class="Symfony\Component\Translation\LoggingTranslator" public="false">
  51. <argument type="service" id="translator.logging.inner" />
  52. <argument type="service" id="logger" />
  53. <tag name="monolog.logger" channel="translation" />
  54. </service>
  55. <service id="translator" class="%translator.identity.class%">
  56. <argument type="service" id="translator.selector" />
  57. </service>
  58. <service id="translator.selector" class="%translator.selector.class%" public="false" />
  59. <service id="translation.loader.php" class="%translation.loader.php.class%">
  60. <tag name="translation.loader" alias="php" />
  61. </service>
  62. <service id="translation.loader.yml" class="%translation.loader.yml.class%">
  63. <tag name="translation.loader" alias="yml" />
  64. </service>
  65. <service id="translation.loader.xliff" class="%translation.loader.xliff.class%">
  66. <tag name="translation.loader" alias="xlf" legacy-alias="xliff" />
  67. </service>
  68. <service id="translation.loader.po" class="%translation.loader.po.class%">
  69. <tag name="translation.loader" alias="po" />
  70. </service>
  71. <service id="translation.loader.mo" class="%translation.loader.mo.class%">
  72. <tag name="translation.loader" alias="mo" />
  73. </service>
  74. <service id="translation.loader.qt" class="%translation.loader.qt.class%">
  75. <tag name="translation.loader" alias="ts" />
  76. </service>
  77. <service id="translation.loader.csv" class="%translation.loader.csv.class%">
  78. <tag name="translation.loader" alias="csv" />
  79. </service>
  80. <service id="translation.loader.res" class="%translation.loader.res.class%">
  81. <tag name="translation.loader" alias="res" />
  82. </service>
  83. <service id="translation.loader.dat" class="%translation.loader.dat.class%">
  84. <tag name="translation.loader" alias="dat" />
  85. </service>
  86. <service id="translation.loader.ini" class="%translation.loader.ini.class%">
  87. <tag name="translation.loader" alias="ini" />
  88. </service>
  89. <service id="translation.loader.json" class="%translation.loader.json.class%">
  90. <tag name="translation.loader" alias="json" />
  91. </service>
  92. <service id="translation.dumper.php" class="%translation.dumper.php.class%">
  93. <tag name="translation.dumper" alias="php" />
  94. </service>
  95. <service id="translation.dumper.xliff" class="%translation.dumper.xliff.class%">
  96. <tag name="translation.dumper" alias="xlf" />
  97. </service>
  98. <service id="translation.dumper.po" class="%translation.dumper.po.class%">
  99. <tag name="translation.dumper" alias="po" />
  100. </service>
  101. <service id="translation.dumper.mo" class="%translation.dumper.mo.class%">
  102. <tag name="translation.dumper" alias="mo" />
  103. </service>
  104. <service id="translation.dumper.yml" class="%translation.dumper.yml.class%">
  105. <tag name="translation.dumper" alias="yml" />
  106. </service>
  107. <service id="translation.dumper.qt" class="%translation.dumper.qt.class%">
  108. <tag name="translation.dumper" alias="ts" />
  109. </service>
  110. <service id="translation.dumper.csv" class="%translation.dumper.csv.class%">
  111. <tag name="translation.dumper" alias="csv" />
  112. </service>
  113. <service id="translation.dumper.ini" class="%translation.dumper.ini.class%">
  114. <tag name="translation.dumper" alias="ini" />
  115. </service>
  116. <service id="translation.dumper.json" class="%translation.dumper.json.class%">
  117. <tag name="translation.dumper" alias="json" />
  118. </service>
  119. <service id="translation.dumper.res" class="%translation.dumper.res.class%">
  120. <tag name="translation.dumper" alias="res" />
  121. </service>
  122. <service id="translation.extractor.php" class="%translation.extractor.php.class%">
  123. <tag name="translation.extractor" alias="php" />
  124. </service>
  125. <service id="translation.loader" class="%translation.loader.class%"/>
  126. <service id="translation.extractor" class="%translation.extractor.class%"/>
  127. <service id="translation.writer" class="%translation.writer.class%"/>
  128. <service id="translation.warmer" class="Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer" public="false">
  129. <argument type="service" id="service_container" />
  130. <tag name="kernel.cache_warmer" />
  131. </service>
  132. </services>
  133. </container>