Rev 2613 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package org.tela_botanica.client.i18n;import com.google.gwt.i18n.client.Dictionary;public class VocabulaireMetadonnees {private static Dictionary traductionMetadonnees = null;public static String getTraduction(String terme) {traductionMetadonnees = Dictionary.getDictionary("traductionMetadonnees_"+Msg.getLangue());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;}}