From 7283a283d4e0692e746dcb1f29f4ef3603aa26f2 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Sat, 21 Oct 2017 09:47:20 -0700 Subject: [PATCH] Adding PHP translation --- .../0.4/config/packages/dev/php_translation.yaml | 3 +++ .../0.4/config/packages/php_translation.yaml | 14 ++++++++++++++ .../0.4/config/routes/dev/php_translation.yaml | 6 ++++++ .../0.4/config/routes/php_translation.yaml | 3 +++ php-translation/symfony-bundle/0.4/manifest.json | 5 +++++ 5 files changed, 31 insertions(+) create mode 100644 php-translation/symfony-bundle/0.4/config/packages/dev/php_translation.yaml create mode 100644 php-translation/symfony-bundle/0.4/config/packages/php_translation.yaml create mode 100644 php-translation/symfony-bundle/0.4/config/routes/dev/php_translation.yaml create mode 100644 php-translation/symfony-bundle/0.4/config/routes/php_translation.yaml create mode 100644 php-translation/symfony-bundle/0.4/manifest.json diff --git a/php-translation/symfony-bundle/0.4/config/packages/dev/php_translation.yaml b/php-translation/symfony-bundle/0.4/config/packages/dev/php_translation.yaml new file mode 100644 index 00000000..17d71c8a --- /dev/null +++ b/php-translation/symfony-bundle/0.4/config/packages/dev/php_translation.yaml @@ -0,0 +1,3 @@ +translation: + symfony_profiler: # must be placed in config_dev.yml + enabled: true diff --git a/php-translation/symfony-bundle/0.4/config/packages/php_translation.yaml b/php-translation/symfony-bundle/0.4/config/packages/php_translation.yaml new file mode 100644 index 00000000..f30549dd --- /dev/null +++ b/php-translation/symfony-bundle/0.4/config/packages/php_translation.yaml @@ -0,0 +1,14 @@ +translation: + locales: ["en", "sv", "fr"] + webui: + enabled: true + edit_in_place: + enabled: false + config_name: app + activator: php_translation.edit_in_place.activator + configs: + app: + dirs: ["%kernel.project_dir%/templates", "%kernel.root_dir%/src"] + output_dir: "%kernel.project_dir%/Resources/translations" + excluded_names: ["*TestCase.php", "*Test.php"] + excluded_dirs: [cache, data, logs] \ No newline at end of file diff --git a/php-translation/symfony-bundle/0.4/config/routes/dev/php_translation.yaml b/php-translation/symfony-bundle/0.4/config/routes/dev/php_translation.yaml new file mode 100644 index 00000000..fb63222f --- /dev/null +++ b/php-translation/symfony-bundle/0.4/config/routes/dev/php_translation.yaml @@ -0,0 +1,6 @@ +_translation_webui: + resource: "@TranslationBundle/Resources/config/routing_webui.yml" + prefix: /admin + +_translation_profiler: + resource: '@TranslationBundle/Resources/config/routing_symfony_profiler.yml' \ No newline at end of file diff --git a/php-translation/symfony-bundle/0.4/config/routes/php_translation.yaml b/php-translation/symfony-bundle/0.4/config/routes/php_translation.yaml new file mode 100644 index 00000000..59529659 --- /dev/null +++ b/php-translation/symfony-bundle/0.4/config/routes/php_translation.yaml @@ -0,0 +1,3 @@ +_translation_edit_in_place: + resource: '@TranslationBundle/Resources/config/routing_edit_in_place.yml' + prefix: /admin \ No newline at end of file diff --git a/php-translation/symfony-bundle/0.4/manifest.json b/php-translation/symfony-bundle/0.4/manifest.json new file mode 100644 index 00000000..e164c6e6 --- /dev/null +++ b/php-translation/symfony-bundle/0.4/manifest.json @@ -0,0 +1,5 @@ +{ + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +}