playframework:国际化+斯卡拉

问题描述:

我想知道是否有使用与斯卡拉/ playframework国际化的方式,这就是我试图到目前为止做:playframework:国际化+斯卡拉

@()(

    implicit 

    params:play.mvc.Scope.Params, 

    flash:play.mvc.Scope.Flash, 

    errors:Map[String,play.data.validation.Error] 

) 

@import play.i18n.Messages 

@main(title = "The title") { 

    <p>Hello world in &{'english'}</p> 

} 

我也试图与消息。得到(...),而不是& {...},但它并没有帮助

这里是我使用:

@import play.i18n._ 

@main(title = "The title") { 

    <p>Hello world in @Messages.get("english")</p> 

} 

注意@之前调用Messages.get(”。 ..“)。

+0

非常感谢;) – Roch