Examples of PackageTranslator


Examples of org.granite.generator.as3.PackageTranslator

        }
        String java = splitTranslator[0];
        String as3 = splitTranslator[1];
       
        getLogger().info("Adding translator: [" + java + ", " + as3 + "]");
        translators.add(new PackageTranslator(java, as3));
      }
        // tide
        String useTide = request.getExtraOptions().get( "tide" );
        if ( useTide != null )
        {
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

   * @param cel
   * @param userObject
   * @return the controller
   */
  public static DialogController createYesNoDialogController(Locale locale, String text, ControllerEventListener cel, Object userObject) {
    Translator intTrans = new PackageTranslator(PACKAGE, locale);
    DialogController dc = new DialogController(locale, intTrans.translate("answer.yes"), intTrans.translate("answer.no"), text, userObject, true, null);
    // when used with basic controller listener has to be set with listenTo()
    if (cel != null) dc.addControllerListener(cel);
    return dc;
  }
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

   * @param text
   * @param cel
   * @return the controller
   */
  public static DialogController createOkCancelDialogController(Locale locale, String text, ControllerEventListener cel) {
    Translator intTrans = new PackageTranslator(PACKAGE, locale);
    DialogController dc = new DialogController(locale, intTrans.translate("answer.ok"), intTrans.translate("answer.cancel"), text);
    // when used with basic controller listener has to be set with listenTo()   
    if (cel != null) dc.addControllerListener(cel);
    return dc;
  }
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

   *          been answered by the user (convenience)
   */
  public DialogController(Locale locale, String firstButtonText, String secondButtonText, String text, Object userObject, boolean displayCloseIcon, String title) {
    super(null);
    this.userObject = userObject;
    myContent = new VelocityContainer("genericdialog", VELOCITY_ROOT + "/index.html", new PackageTranslator(PACKAGE, locale), this);
   
    firstButton = LinkFactory.createCustomLink("firstButton", "fb", firstButtonText, Link.BUTTON + Link.NONTRANSLATED, myContent, this);
    secondButton = LinkFactory.createCustomLink("secondButton", "sb", secondButtonText, Link.BUTTON + Link.NONTRANSLATED, myContent, this);
    if (displayCloseIcon){
      backIcon = LinkFactory.createIconClose("close", myContent, this);
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

  /**
   * @param name
   */
  public SelectionTree(String name, Translator translator ) {
    super(name, new PackageTranslator(PACKAGE, translator.getLocale(), translator));
  }
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

   * Constructor
   */
  public CustomLinkChooserController(UserRequest ureq, WindowControl wControl, CustomLinkTreeModel customLinkTreeModel) {
    super(wControl);

    trans = new PackageTranslator(PACKAGE, ureq.getLocale());

    mainVC = new VelocityContainer("mainVC", VELOCITY_ROOT + "/internallinkchooser.html", trans, this);

    this.customLinkTreeModel = customLinkTreeModel;
    boolean ajax = getWindowControl().getWindowBackOffice().getWindowManager().isAjaxEnabled();
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

    }
    // set the formtranslator, and parent
    Translator itemTranslator = formComp.getTranslator();
    if(formComp.getTranslator()!=null && itemTranslator instanceof PackageTranslator){
      //let the FormItem provide a more specialized translator
      PackageTranslator itemPt = (PackageTranslator)itemTranslator;
      itemTranslator = itemPt.cascadeTranslators(itemPt, translator);
    }else{
      itemTranslator = translator;
    }
    formComp.setTranslator(itemTranslator);
    formComp.setRootForm(getRootForm());
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

    }
    // set the formtranslator, and parent
    Translator itemTranslator = formComp.getTranslator();
    if(formComp.getTranslator()!=null && itemTranslator instanceof PackageTranslator){
      //let the FormItem provide a more specialized translator
      PackageTranslator itemPt = (PackageTranslator)itemTranslator;
      itemTranslator = itemPt.cascadeTranslators(itemPt, translator);
    }else{
      itemTranslator = translator;
    }
    formComp.setTranslator(itemTranslator);
    formComp.setRootForm(getRootForm());
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

   
  // set the formtranslator, and parent
    Translator itemTranslator = with.getTranslator();
    if(with.getTranslator()!=null && itemTranslator instanceof PackageTranslator){
      //let the FormItem provide a more specialized translator
      PackageTranslator itemPt = (PackageTranslator)itemTranslator;
      itemTranslator = itemPt.cascadeTranslators(itemPt, translator);
    }else{
      itemTranslator = translator;
    }
    with.setTranslator(itemTranslator);
    with.setRootForm(getRootForm());
View Full Code Here

Examples of org.olat.core.gui.translator.PackageTranslator

    if (tableEventListener != null) addControllerListener(tableEventListener);

    // FIXME fj: the other way round: allow table translator to override package
    // translator!
    this.trans = new PackageTranslator(PACKAGE, ureq.getLocale(), tableTrans);

    this.table = new Table("table", trans);
    this.table.addListener(this);

    // propagate table specific configuration to table,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.