Examples of LanguageKey


Examples of com.dotmarketing.portlets.languagesmanager.model.LanguageKey

      String[] keys=allKeys.toArray(new String[allKeys.size()]);

      for(int i = beginIdx ; i < endIdx ; i++ ) {
          String key=keys[i];

          LanguageKey fake=new LanguageKey("", "", key, "");
          int lpos=Collections.binarySearch(lkeys, fake);
          int spos=Collections.binarySearch(skeys, fake);

          String gValue="", sValue="";
          if(lpos>=0) gValue=lkeys.get(lpos).getValue();
View Full Code Here

Examples of com.dotmarketing.portlets.languagesmanager.model.LanguageKey

              else
                value += "=" + splitted[i];// re-adding "="s removed by line.split("=")
            }
            if(line.endsWith("="))
              value += "=";
            list.add(new LanguageKey(langCode, null, splitted[0], value));
          }
        }
      } catch (FileNotFoundException e) {
        Logger.error(this, "getLanguageKeys: " + e.getMessage(), e);
        throw new DotRuntimeException(e.getMessage(), e);
View Full Code Here

Examples of com.dotmarketing.portlets.languagesmanager.model.LanguageKey

      synchronized (messages) {
        Iterator<LanguageKey> names = keys.iterator();

        while (names.hasNext()) {
          LanguageKey langkey = (LanguageKey)names.next();
          String key = langkey.getKey();
          messages.put(messageKey(localeKey, key),
              langkey.getValue());
        }
      }

    } else {
    Properties props = new Properties();
View Full Code Here

Examples of org.openqreg.bean.LanguageKey

*/
public static Object findByPrimaryKey(Connection con, PrimaryKey key) throws SQLException {
PreparedStatement pStmt = null;
ResultSet rs = null;
LanguageBean valueObject = null;
LanguageKey primaryKey = (LanguageKey) key;
try{
pStmt = con.prepareStatement(LanguageBeanBase.SELECT_STATEMENT);
pStmt.setObject(1, primaryKey.getLanguageid());
rs = pStmt.executeQuery();
while (rs.next()){
valueObject = populate(rs);
valueObject.afterPopulate(con);
}
View Full Code Here

Examples of org.openqreg.bean.LanguageKey

  @Override
  protected void populateKeysAndBeans(Connection con) throws SQLException {
    String isocode = fetch.getValueAsString("LANGUAGE_LANGUAGEID");
    language = (LanguageBean) LanguageFinderBase
        .findByPrimaryKey(new LanguageKey(isocode));
  }
View Full Code Here

Examples of org.openqreg.bean.LanguageKey

/**
* @return The primaryKey
*
*/
public PrimaryKey getPrimaryKey() {
return new LanguageKey(getLanguageid());
}
View Full Code Here

Examples of org.openqreg.bean.LanguageKey

      out.append(">\n");
      out.append(lang.getTranslation(langId, "ADMINLANGUAGELIST_STATUS_HL"));
      out.append("</td>\n");
      out.append("</tr>\n");

      Language userLanguage = (Language)LanguageFinderBase.findByPrimaryKey(new LanguageKey(user.getLanguageid()));
     
      Locale userLocale = userLanguage.getLocale();
      String languageName;
     
      for(LanguageBean language:col) {
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.