Subversion Repositories eFlore/Applications.cel

Rev

Rev 992 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 992 Rev 997
Line 1... Line 1...
1
package org.tela_botanica.client.I18n;
1
package org.tela_botanica.client.i18n;
-
 
2
 
-
 
3
import com.google.gwt.i18n.client.Dictionary;
Line 2... Line 4...
2
 
4
 
3
/**
5
/**
4
 * Interface to represent the constants contained in resource bundle:
6
 * Interface to represent the constants contained in resource bundle:
5
 * 	'/home/aurelien/web/cel_GWT2/src/org/tela_botanica/client/i18n/Vocabulary.properties'.
7
 * 	'/home/aurelien/web/cel_GWT2/src/org/tela_botanica/client/i18n/VocabulaireMetadonnees.properties'.
6
 */
8
 */
7
public interface VocabulaireMetadonnees extends com.google.gwt.i18n.client.Constants {
9
public class VocabulaireMetadonnees  {
-
 
10
	
8
  
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;
9
 
22
	}