Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Some fixes in structure overriding page#14147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletionsconfiguration/override_dir_structure.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -141,8 +141,8 @@ Override the Translations Directory
-----------------------------------

If your translation files are not stored in the default ``translations/``
directory, use the :ref:`framework.translator.paths <reference-translator-paths>`
configuration option to define your own translations directory (or directories):
directory, use the :ref:`framework.translator.default_path <reference-translator-default_path>`
configuration option to define your own translations directory (use :ref:`framework.translator.paths <reference-translator-paths>` for multiple directories):

.. configuration-block::

Expand All@@ -152,7 +152,7 @@ configuration option to define your own translations directory (or directories):
framework:
translator:
# ...
paths: ["%kernel.project_dir%/i18n"]
default_path:"%kernel.project_dir%/i18n"

.. code-block:: xml

Expand All@@ -168,7 +168,7 @@ configuration option to define your own translations directory (or directories):

<framework:config>
<framework:translator>
<framework:path>%kernel.project_dir%/i18n</framework:path>
<framework:default-path>%kernel.project_dir%/i18n</framework:default-path>
</framework:translator>
</framework:config>

Expand All@@ -179,9 +179,7 @@ configuration option to define your own translations directory (or directories):
// config/packages/translation.php
$container->loadFromExtension('framework', [
'translator' => [
'paths' => [
'%kernel.project_dir%/i18n',
],
'default_path' => '%kernel.project_dir%/i18n',
],
]);

Expand All@@ -192,7 +190,7 @@ Override the Public Directory
-----------------------------

If you need to rename or move your ``public/`` directory, the only thing you
need to guarantee is that the path to the ``var/`` directory is still correct in
need to guarantee is that the path to the ``vendor/`` directory is still correct in
your ``index.php`` front controller. If you renamed the directory, you're fine.
But if you moved it in some way, you may need to modify these paths inside those
files::
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp