/** * @param settings the SettingsClass instance that will be used to get and store the settings of * the panel */ protected NewsPanel(final SettingsClass settings) { super(); this.language = Language.getInstance(); this.settings = settings; initialize(); loadSettings(); }
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 + ")"); }