LoginSignup
0
0

More than 5 years have passed since last update.

CS-Cart: 翻訳の文中に変数を使う

Posted at

CS-Cartで翻訳の文中で変数を使いたい場合、カギカッコを使う。

msgctxt "Languages::you_can_upload_video_in_formats"
msgid "You can upload a video in [formats] format"
msgstr "アップロード可能形式: [formats]形式の動画"

Smartyテンプレートでは、変数は第二引数に値を指定する。

{__("you_can_upload_video_in_formats", ["[formats]" => "MP4, MOV"])}

出力結果

アップロード可能形式: MP4, MOV形式の動画
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0