言語ファイル ( ) のキーを使用して現在のハードコードされたテキストを翻訳するにはどうすればよいmessages.en.xliff
ですか?
を使ってみました
{% trans %} translation_key{% endtrans %}
成功しませんでした。Symfony はこのエラーを返します
メッセージは、'ProjectEventsBundle:Default:show_event.html.twig' 内の単純なテキストでなければなりません
500 内部サーバー エラー - Twig_Error_Syntax
{% transchoice count %}
{0} The current hardcoded text|{1} is attending|{2} are attending|]2,Inf] and %count% - 2 others are attending
{% endtranschoice %}
前もって感謝します。