翻译

翻译

此页面根据其网址提供语言。其措辞来自yml文件,通过translations:translate-files进行翻译;下面的文章是其#[Translatable]字段在首次阅读时翻译并存储的实体。

欢迎来到翻译演示

字段来源用此语言阅读
标题 Welcome to the translation demo 欢迎来到翻译演示
摘要 This article is written in English. Switch the language: its title and summary are translated the first time they are read, then served from the database. 本文为英文撰写。切换语言后:标题和摘要在第一次阅读时被翻译,然后从数据库提供。

占位符可以在翻译中保留

字段来源用此语言阅读
标题 Placeholders survive translation 占位符可以在翻译中保留
摘要 Hello %name%, you have {count} new messages. Parameters like these are hidden from the engine and put back afterwards. 你好 %name%,你有 {count} 条新消息。这些参数在引擎中是隐藏的,之后会被放回。

格式保持不变

字段来源用此语言阅读
标题 Markup is kept as it is 格式保持不变
摘要 A sentence with bold words and a subtle emphasis, whose tags never reach the engine. 一句包含粗体字和一个细微强调的句子,其标签永远不会传递给引擎。