Permalink
Browse files

Issue #1350

  • Loading branch information...
1 parent 731c4dc commit 3e9596041185f851c87a8a1d4e349eb5cf73594e @karma4u101 karma4u101 committed Nov 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 web/webkit/src/main/scala/net/liftweb/sitemap/Menu.scala
@@ -555,9 +555,9 @@ sealed trait MenuSingleton {
/**
* A convenient way to define a Menu items that's got the same name as it does it's localized LinkText.
- * <pre>Menu.i("Home") / "index"</pre> is short-hand for <pre>Menu("Home", S ? "Home") / "index"</pre>
+ * <pre>Menu.i("Home") / "index"</pre> is short-hand for <pre>Menu("Home", S.loc("Home", Text("Home")) / "index"</pre>
*/
- def i(nameAndLink: String): PreMenu = Menu.apply(nameAndLink, S ? nameAndLink)
+ def i(nameAndLink: String): PreMenu = Menu.apply(nameAndLink, S.loc(nameAndLink, scala.xml.Text(nameAndLink)))
def param[T<:AnyRef](name: String, linkText: Loc.LinkText[T], parser: String => Box[T],
encoder: T => String): PreParamMenu[T] =

0 comments on commit 3e95960

Please sign in to comment.