Example #1
0
  private void refreshLanguage() {
    hideJunkMessagesCheckBox.setText(language.getString("Options.junk.hideJunkMessages"));
    markJunkIdentityBadCheckBox.setText(language.getString("Options.junk.markJunkIdentityBad"));

    stopBoardUpdatesWhenDosedCheckBox.setText(
        language.getString("Options.junk.stopBoardUpdatesWhenDosed"));
    LinvalidSubsequentMessagesThreshold.setText(
        language.getString("Options.junk.invalidSubsequentMessagesThreshold"));
  }
Example #2
0
  /**
   * @param settings the SettingsClass instance that will be used to get and store the settings of
   *     the panel
   */
  protected JunkPanel(final SettingsClass settings) {
    super();

    this.language = Language.getInstance();
    this.settings = settings;

    initialize();
    loadSettings();
  }
Example #3
0
  private void refreshLanguage() {
    uploadPrioLabel.setText(language.getString("Options.news.1.messageUploadPriority") + " (2)");
    downloadPrioLabel.setText(
        language.getString("Options.news.1.messageDownloadPriority") + " (2)");
    useOneConnectionForMessagesCheckBox.setText(
        language.getString("Options.news.1.useOneConnectionForMessages"));
    displayDaysLabel.setText(language.getString("Options.news.1.numberOfDaysToDisplay") + " (15)");
    downloadDaysLabel.setText(
        language.getString("Options.news.1.numberOfDaysToDownloadBackwards") + " (5)");
    messageBaseLabel.setText(language.getString("Options.news.1.messageBase") + " (news)");
    alwaysDownloadBackloadCheckBox.setText(
        language.getString("Options.news.1.alwaysDownloadBackload"));
    alwaysDownloadBackloadCheckBox.setToolTipText(
        language.getString("Options.news.1.alwaysDownloadBackload.tooltip"));

    final String minutes = language.getString("Options.common.minutes");

    minimumIntervalLabel.setText(
        language.getString("Options.news.3.minimumUpdateInterval") + " (" + minutes + ") (45)");
    concurrentUpdatesLabel.setText(
        language.getString("Options.news.3.numberOfConcurrentlyUpdatingBoards") + " (6)");

    automaticBoardUpdateCheckBox.setText(language.getString("Options.news.3.automaticBoardUpdate"));

    storeSentMessagesCheckBox.setText(language.getString("Options.news.1.storeSentMessages"));
    silentlyRetryCheckBox.setText(language.getString("Options.news.3.silentlyRetryFailedMessages"));

    final String off = language.getString("Options.common.off");
    altEditCheckBox.setText(
        language.getString("Options.miscellaneous.useEditorForWritingMessages") + " (" + off + ")");
  }