/* get the singular/plural strings in an array that can be used directly by "i18n.getStr...(...)" */ public static String[] getStringsArray(Account account, String strID, String dft[]) { /* get values */ try { AccountString str = AccountString.getAccountString(account, strID); if (str != null) { String s = str.getSingularTitle(); String p = str.getPluralTitle(); if ((dft != null) && (dft.length >= 2)) { if (s.equals("")) { s = dft[0]; } if (p.equals("")) { p = dft[1]; } } return new String[] { s, // singular p // plural }; } } catch (DBException dbe) { // ignore } /* return default */ return dft; // not found }