Initial Document loading implementation, instead of libglom.
[online-glom:gwt-glom.git] / src / main / java / org / glom / web / shared / libglom / Translatable.java
1 package org.glom.web.shared.libglom;
2
3 import java.util.Hashtable;
4
5 public class Translatable {
6         public String original = "";
7         
8         // A map of localeID to title:
9         public Hashtable<String, String> translationsMap = new Hashtable<String, String>();
10         
11         
12         public String get_title_original() {
13                 return original;
14         }
15         
16         public String get_title(final String locale) {
17                 final String title = translationsMap.get(locale);
18                 if(title == null) {
19                         return "";
20                 }
21         
22                 return title;
23         }
24 }