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 boolean
allowDebug
private boolean
doTranslate
private static GT
getTextWrapper
private static Map<String,String>
htLanguages
private static boolean
ignoreApplicationBundle
private String
language
private static Language[]
languageList
private int
resourceCount
private Resource[]
resources
(package private) static Viewer
vwr
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
$(String string)
private void
addBundle(Viewer vwr, String className, String name)
private void
addBundles(Viewer vwr, String type, String la_co_va, String la_co, String la)
private void
createLanguageList()
static String
escapeHTML(String msg)
static boolean
getDoTranslate()
static String
getLanguage()
static Language[]
getLanguageList(GT gt)
private String
getString(String s)
private String
getSupported(String code)
private static GT
getTextWrapper()
static String
i(String s, int n)
static void
ignoreApplicationBundle()
static String
o(String s, Object o)
static boolean
setDoTranslate(boolean TF)
String
translate(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:
translate
in 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)
-
-