Package org.jmol.i18n
Class GT
- java.lang.Object
-
- org.jmol.i18n.GT
-
- All Implemented Interfaces:
Translator
public class GT extends Object implements Translator
The language list is now in org.jmol.i18n.Language -- Bob Hanson, 12/16/12 implementing translations in JavaScript
-
-
Field Summary
Fields Modifier and Type Field Description private static booleanallowDebugprivate booleandoTranslateprivate static GTgetTextWrapperprivate static Map<String,String>htLanguagesprivate static booleanignoreApplicationBundleprivate Stringlanguageprivate static Language[]languageListprivate intresourceCountprivate Resource[]resources(package private) static Viewervwr
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String$(String string)private voidaddBundle(Viewer vwr, String className, String name)private voidaddBundles(Viewer vwr, String type, String la_co_va, String la_co, String la)private voidcreateLanguageList()static StringescapeHTML(String msg)static booleangetDoTranslate()static StringgetLanguage()static Language[]getLanguageList(GT gt)private StringgetString(String s)private StringgetSupported(String code)private static GTgetTextWrapper()static Stringi(String s, int n)static voidignoreApplicationBundle()static Stringo(String s, Object o)static booleansetDoTranslate(boolean TF)Stringtranslate(String s)used in custom menu translation only
-
-
-
Field Detail
-
ignoreApplicationBundle
private static boolean ignoreApplicationBundle
-
getTextWrapper
private static GT getTextWrapper
-
languageList
private static Language[] languageList
-
resources
private Resource[] resources
-
resourceCount
private int resourceCount
-
doTranslate
private boolean doTranslate
-
language
private String language
-
allowDebug
private static boolean allowDebug
-
vwr
static Viewer vwr
-
-
Method Detail
-
translate
public String translate(String s)
used in custom menu translation only- Specified by:
translatein interfaceTranslator
-
getLanguage
public static String getLanguage()
-
ignoreApplicationBundle
public static void ignoreApplicationBundle()
-
setDoTranslate
public static boolean setDoTranslate(boolean TF)
- Parameters:
TF-- Returns:
- initial setting of GT.doTranslate
-
getDoTranslate
public static boolean getDoTranslate()
-
getTextWrapper
private static GT getTextWrapper()
-
createLanguageList
private void createLanguageList()
-
addBundles
private void addBundles(Viewer vwr, String type, String la_co_va, String la_co, String la)
-
-