Subversion Repositories eFlore/Applications.cel

Rev

Rev 992 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
997 aurelien 1
package org.tela_botanica.client.i18n;
992 aurelien 2
 
997 aurelien 3
import com.google.gwt.i18n.client.Dictionary;
4
 
992 aurelien 5
/**
6
 * Interface to represent the constants contained in resource bundle:
997 aurelien 7
 * 	'/home/aurelien/web/cel_GWT2/src/org/tela_botanica/client/i18n/VocabulaireMetadonnees.properties'.
992 aurelien 8
 */
997 aurelien 9
public class VocabulaireMetadonnees  {
10
 
11
	private static Dictionary traductionMetadonnees = Dictionary.getDictionary("traductionMetadonnees");
12
 
13
	public static String getTraduction(String terme) {
14
		String traduction = null;
15
		terme = terme.toLowerCase();
16
		terme = terme.replaceAll("-", "");
17
		terme = terme.replaceAll(" ", "");
18
		if(traductionMetadonnees.keySet().contains(terme)) {
19
			traduction = traductionMetadonnees.get(terme);
20
		}
21
		return traduction != null ? traduction : terme;
22
	}
992 aurelien 23
}