01: package com.caucho.netbeans;
02:
03: import org.openide.util.NbBundle;
04:
05: public class PluginL10N {
06: private Class<?> _cl;
07:
08: public PluginL10N(Class<?> cl) {
09: _cl = cl;
10: }
11:
12: public String l(String msg, Object... args) {
13: String message;
14:
15: try {
16: return NbBundle.getMessage(_cl, msg, args);
17: } catch (Exception ex) {
18: return java.text.MessageFormat.format(msg, args);
19: }
20: }
21: }
|