本文整理汇总了Java中com.memetix.mst.language.Language.ENGLISH属性的典型用法代码示例。如果您正苦于以下问题:Java Language.ENGLISH属性的具体用法?Java Language.ENGLISH怎么用?Java Language.ENGLISH使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.memetix.mst.language.Language
的用法示例。
在下文中一共展示了Language.ENGLISH属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: main
/**
* @param args the command line arguments
* 1st parameter is name of the file(path inclusive) to be translated
* 2nd parameter is the language the file should be translated into
*/
public static void main(String[] args) {
try {
Language languageToBeTranslatedInto = Language.ENGLISH;
if(args[1].toLowerCase().contains("fr")){
languageToBeTranslatedInto = Language.FRENCH;
}else if(args[1].toLowerCase().contains("es")){
languageToBeTranslatedInto = Language.SPANISH;
}else if(args[1].toLowerCase().contains("de")){
languageToBeTranslatedInto = Language.GERMAN;
}else if(args[1].toLowerCase().contains("pt")){
languageToBeTranslatedInto = Language.PORTUGUESE;
}
new FileManager().translateFile(args[0],languageToBeTranslatedInto);
} catch (IOException ex) {
Logger.getLogger(Translator.class.getName()).log(Level.SEVERE, null, ex);
}
}
示例2: setTransLang
public void setTransLang(int index) {
if(index == 0) {
sketch.transLanguage = Language.ENGLISH;
} else if(index == 1) {
sketch.transLanguage = Language.FRENCH;
} else if(index == 2) {
sketch.transLanguage = Language.PORTUGUESE;
} else if(index == 3) {
sketch.transLanguage = Language.SPANISH;
}
middleZone.setGestureEnabled("TapAndHold", true);
}