object Loc extends DispatchSnippet
The Loc snippet is used to render localized content.
Lookup resource with the id specified with the locid attribute. Will also try to use the render method or the snippet body as locid if not specified.
So these are equivalent:
<lift:Loc locid="myid"/> <lift.Loc.myid/> <lift:Loc>myid</lift:Loc>
There's a special case with the "i" method. It will use the text content as the locid, and will replace the child node with the localized content instead of the current element.
This is especially useful together with designer friendly snippet markup:
Some header
If the locid "Some header" for the current locale is e.g "En overskrift", this will render
En overskrift
If the locid is not found, it will just render
Some header
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Loc
- DispatchSnippet
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- type DispatchIt = PartialFunction[String, (NodeSeq) => NodeSeq]
- Definition Classes
- DispatchSnippet
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def dispatch: DispatchIt
- Definition Classes
- Loc → DispatchSnippet
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def i(ns: NodeSeq): NodeSeq
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def render(locId: String, kids: NodeSeq): NodeSeq
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()