Rev 997 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package org.tela_botanica.client.i18n;import com.google.gwt.i18n.client.Dictionary;/*** Interface to represent the constants contained in resource bundle:* '/home/aurelien/web/cel_GWT2/src/org/tela_botanica/client/i18n/VocabulaireMetadonnees.properties'.*/public class VocabulaireMetadonnees {private static Dictionary traductionMetadonnees = Dictionary.getDictionary("traductionMetadonnees");public static String getTraduction(String terme) {String traduction = null;terme = terme.toLowerCase();terme = terme.replaceAll("-", "");terme = terme.replaceAll(" ", "");if(traductionMetadonnees.keySet().contains(terme)) {traduction = traductionMetadonnees.get(terme);}return traduction != null ? traduction : terme;}}