You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@esme.apache.org by Richard Hirsch <hi...@gmail.com> on 2009/09/01 08:00:26 UTC

I18N in lift: A question

Right now, I'm going through the code and pulling out the hard-coded
strings and putting them in property files. I'm figured out how to do
texts in the html templates but I keep getting errors when I try to
the same in scala files. I've looked at the lift wiki and find a few
tips but no real answers.

For example, in Boot.scala

   Menu(Loc("list_users", List("user_view", "all"), "List Users")) ::

is it:

   Menu(Loc("list_users", List("user_view", "all"),
S.?("esme_base_list_user")) ::

D.

Re: I18N in lift: A question

Posted by David Pollak <fe...@gmail.com>.
Please see
http://blog.getintheloop.eu/2009/7/26/how-to-extensive-localization-with-the-liftweb-framework

Tim did the XMPie app in Lift (http://www.scala-lang.org/node/2766)  He's
done localization of the app including localization to non-Roman character
places.

On Mon, Aug 31, 2009 at 11:00 PM, Richard Hirsch <hi...@gmail.com>wrote:

> Right now, I'm going through the code and pulling out the hard-coded
> strings and putting them in property files. I'm figured out how to do
> texts in the html templates but I keep getting errors when I try to
> the same in scala files. I've looked at the lift wiki and find a few
> tips but no real answers.
>
> For example, in Boot.scala
>
>   Menu(Loc("list_users", List("user_view", "all"), "List Users")) ::
>
> is it:
>
>   Menu(Loc("list_users", List("user_view", "all"),
> S.?("esme_base_list_user")) ::
>
> D.
>



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp