Package freenet.l10n

Examples of freenet.l10n.NodeL10n


  // From CSS spec

  private static final String CSS_SPEC_EXAMPLE1 = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">\n<HTML>\n  <HEAD>\n  <TITLE>Bach's home page</TITLE>\n  <STYLE type=\"text/css\">\n    body {\n      font-family: \"Gill Sans\", sans-serif;\n      font-size: 12pt;\n      margin: 3em;\n\n    }\n  </STYLE>\n  </HEAD>\n  <BODY>\n    <H1>Bach's home page</H1>\n    <P>Johann Sebastian Bach was a prolific composer.\n  </BODY>\n</HTML>";

  public void testHTMLFilter() throws Exception {
    new NodeL10n();

    if (TestProperty.VERBOSE) {
      Logger.setupStdoutLogging(LogLevel.MINOR, "freenet.client.filter.Generic:DEBUG");
    }
View Full Code Here


  FilterMIMEType cssMIMEType;

  @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");
View Full Code Here

        "Node.l10nLanguage",
        "Node.l10nLanguageLong",
        new L10nCallback());

    try {
      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());
      }
    }

    // FProxy config needs to be here too
    SubConfig fproxyConfig = new SubConfig("fproxy", config);
View Full Code Here

TOP

Related Classes of freenet.l10n.NodeL10n

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.