Package com.dubture.symfony.core.model

Examples of com.dubture.symfony.core.model.Translation


  @Override
  public String getInfo(IProgressMonitor monitor) {
    try {
     
      Translation translation = (Translation) getModelElement();     
     
      SymfonyModelAccess model = SymfonyModelAccess.getDefault();
      List<TransUnit> units = model.findTranslations(translation);
     
      String html = HTMLUtils.translation2Html(translation, units);
     
      if (html != null && html.length() > 0)
        return html;
     
      return translation.getElementName();
     
     
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here


      if (targetBundle.getScriptProject() == null) {
        targetBundle.setProject(project);
      }

      if (targetBundle != null && CodeAssistUtils.startsWithIgnoreCase(unit.name, prefix)) {
        Translation trans = new Translation(targetBundle,unit);       
        reporter.reportType(trans, "", range)
      }
    }     

  }
View Full Code Here

TOP

Related Classes of com.dubture.symfony.core.model.Translation

Copyright © 2018 www.massapicom. 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.