qx.locale
Class MTranslation

java.lang.Object
  extended by qx.locale.MTranslation

public class MTranslation
extends java.lang.Object

This mixin contains the methods needed to use the translation features of qooxdoo.


Constructor Summary
MTranslation()
           
 
Method Summary
 String marktr(String messageId)
          Mark the message for translation but return the original message.
 LocalizedString tr(String messageId, java.lang.Object varargs)
          Translate a message Mark the message for translation.
 LocalizedString trn(String singularMessageId, String pluralMessageId, java.lang.Integer count, java.lang.Object varargs)
          Translate a plural message Mark the messages for translation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTranslation

public MTranslation()
Method Detail

marktr

public String marktr(String messageId)

Mark the message for translation but return the original message.


tr

public LocalizedString tr(String messageId,
                          java.lang.Object varargs)

Translate a message Mark the message for translation.


trn

public LocalizedString trn(String singularMessageId,
                           String pluralMessageId,
                           java.lang.Integer count,
                           java.lang.Object varargs)

Translate a plural message Mark the messages for translation.

Depending on the third argument the plursl or the singular form is chosen.



Copyright © 2008 1&1. All Rights Reserved.