Skip to content

Commit 3c72573

Browse files
committed
reference/twig_reference翻訳
1 parent 122784d commit 3c72573

File tree

3 files changed

+195
-1
lines changed

3 files changed

+195
-1
lines changed

book/security.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,6 +1298,8 @@ HTTP 認証やフォームログインなどの全ての認証メカニズムは
12981298
12991299
ユーザが一旦ログアウトすると、そのユーザは、上記の ``target`` の値によって定義されたパス(``homepage`` など)にリダイレクトされます。ログアウトの設定に関する詳細は :doc:`Security Configuration Reference</reference/configuration/security>` を参照してください。
13001300

1301+
.. _book-security-template:
1302+
13011303
テンプレートにおけるアクセス制御
13021304
--------------------------------
13031305

book/translation.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,9 +692,10 @@ apples`` が使われます。
692692
多くの場合、翻訳はテンプレート内で発生します。 Symfony2 は Twig と PHP テンプレートの
693693
両方をネイティブでサポートします。
694694

695+
.. _book-translation-tags:
696+
695697
Twig テンプレート
696698
~~~~~~~~~~~~~~~~~
697-
698699
Symfony2 はメッセージの翻訳に役立つよう特別な Twig タグ (``trans`` と ``transChoice``)
699700
を提供します。
700701

@@ -724,6 +725,8 @@ Symfony2 はメッセージの翻訳に役立つよう特別な Twig タグ (``t
724725
{0} There is no apples|{1} There is one apple|]1,Inf] There are %count% apples
725726
{% endtranschoice %}
726727
728+
.. _book-translation-filters:
729+
727730
``trans``、``transchoice``フィルターは、*variable texts*や複雑な式を変換するために使用できます。
728731
729732
.. code-block:: jinja

0 commit comments

Comments
 (0)