📄 internationalization.java
字号:
package thinlet.drafts;
import java.util.*;
import thinlet.*;
/**
*
*/
public class Internationalization {
/**
*
*/
public void update(Thinlet thinlet, Object combobox, int selected, Object panel) throws Exception {
String locale = (String) thinlet.getProperty(thinlet.getItem(combobox, selected), "locale");
ResourceBundle bundle = ResourceBundle.getBundle("thinlet.drafts.i18n", new Locale(locale, "", ""));
thinlet.setResourceBundle(bundle);
thinlet.add(panel, thinlet.parse("i18npanel.xml"));
thinlet.setResourceBundle(null);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -