/** * Get the BaseL10n used to localize the node. * @return BaseL10n. * @see BaseL10n */ public static BaseL10n getBase() { if(b==null){ new NodeL10n(); } return b; } }
@Override public void setUp() throws InvalidThresholdException { new NodeL10n(); //if (TestProperty.VERBOSE) { // Logger.setupStdoutLogging(LogLevel.MINOR, "freenet.client.filter:DEBUG"); //} ContentFilter.init(); cssMIMEType = ContentFilter.getMIMEType("text/css"); }
new NodeL10n(BaseL10n.LANGUAGE.mapToLanguage(nodeConfig.getString("l10n")), getCfgDir()); } catch (MissingResourceException e) { try { new NodeL10n(BaseL10n.LANGUAGE.mapToLanguage(nodeConfig.getOption("l10n").getDefault()), getCfgDir()); } catch (MissingResourceException e1) { new NodeL10n(BaseL10n.LANGUAGE.mapToLanguage(BaseL10n.LANGUAGE.getDefault().shortCode), getCfgDir());