Yii2 国际化:@@ 是什么意思?
Yii2 internationalization: What means @@?
在为 Yii2 消息字符串编写翻译时,有时会有包含在双符号中的翻译:@@
,例如
'Awesome, almost there. ' => '@@Fast geschafft. @@',
这是什么意思?翻译后的字符串是否过时,在源代码中找不到?
我找不到任何相关文档。
答案在文档中找到 - 完全隐藏在 "internals" 章 "Translation workflow / Framework messages":
Messages that no longer need translation will have their translations
enclosed between a pair of '@@' marks.
因此,文件夹 messages/...
中的翻译消息可以安全删除,因为代码中不再使用。
在为 Yii2 消息字符串编写翻译时,有时会有包含在双符号中的翻译:@@
,例如
'Awesome, almost there. ' => '@@Fast geschafft. @@',
这是什么意思?翻译后的字符串是否过时,在源代码中找不到?
我找不到任何相关文档。
答案在文档中找到 - 完全隐藏在 "internals" 章 "Translation workflow / Framework messages":
Messages that no longer need translation will have their translations enclosed between a pair of '@@' marks.
因此,文件夹 messages/...
中的翻译消息可以安全删除,因为代码中不再使用。