doume1301 2016-10-11 03:08
浏览 25

什么是树枝或螺栓的双下划线。

I was just going thorugh one of the twig files in the bolt default theme template and i came across the following line of code:

{{ __("Unfortunately, no content could be found. Try another page, or go to the <a href=\"%paths_root%\">homepage</a>.", {'%paths_root%': paths.root} ) }}

Now i taught the way you echo something in twig is as follows:

{{ 'hello there' }}

I googled double underline and found this HERE. Not sure thats the answer to my question.

So what exactly is the double underline in twig or bold ??

  • 写回答

2条回答 默认 最新

  • duanqiao9541 2016-10-11 03:15
    关注

    Im not sure if I understand this correctly but in Symfony framework for translations of strings you should use the translator service.

    Then you could use the trans and transchoice Twig tags.

    Please see Symfony documentation for more details : Symfony translations

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器