| 997 |
aurelien |
1 |
package org.tela_botanica.client.i18n;
|
| 992 |
aurelien |
2 |
|
| 997 |
aurelien |
3 |
import com.google.gwt.i18n.client.Dictionary;
|
|
|
4 |
|
|
|
5 |
public class VocabulaireMetadonnees {
|
|
|
6 |
|
|
|
7 |
private static Dictionary traductionMetadonnees = Dictionary.getDictionary("traductionMetadonnees");
|
|
|
8 |
|
|
|
9 |
public static String getTraduction(String terme) {
|
|
|
10 |
String traduction = null;
|
|
|
11 |
terme = terme.toLowerCase();
|
|
|
12 |
terme = terme.replaceAll("-", "");
|
|
|
13 |
terme = terme.replaceAll(" ", "");
|
|
|
14 |
if(traductionMetadonnees.keySet().contains(terme)) {
|
|
|
15 |
traduction = traductionMetadonnees.get(terme);
|
|
|
16 |
}
|
|
|
17 |
return traduction != null ? traduction : terme;
|
|
|
18 |
}
|
| 992 |
aurelien |
19 |
}
|