international eclipse plugin

使用native2ascii  ,
native2 ascii -encoding gbk(gb2312)  **.property

Supported Encodings:

http://java.sun.com/j2se/1.3/docs/guide/intl/encoding.doc.html

eclipse使用flagement实现international eclipse plugin.
simple helloworld使用alt+shift+s  ------>Externalize String

private static final String BUNDLE_NAME = "com.oval.research.international.messages";

    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
            .getBundle(BUNDLE_NAME);

    private Messages() {
    }

    public static String getString(String key) {
        try {
            return RESOURCE_BUNDLE.getString(key);
        } catch (MissingResourceException e) {
            return '!' + key + '!';
        }
    }

你可能感兴趣的:(eclipse,html,J2SE,sun)