2016-07-30 31 views

回答

3

應該很容易與您的messages.properties文件

my.message.key=Just a link to <a href="{0}">Something</a>

以下,然後調用它像這樣:

<g:message code="my.message.key" args="[createLink(controller: 'foo', action: 'baz')]" />

請記住,對於消息代碼參數是一個數組,因此上面使用了括號。

+0

謝謝工作,我以爲我不能在'messages.properties'中寫'' – Sherif