Source:
<code>public void initialize() { logger.debug("Initialize OpenWeatherMap API handler."); OpenWeatherMapAPIConfiguration config = getOpenWeatherMapAPIConfig(); boolean configValid = true; if (StringUtils.trimToNull(config.getApikey()) == null) { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, "@text/offline.conf-error-missing-apikey"); configValid = false; } if (config.getRefreshIntervall() != null && config.getRefreshIntervall() < 10) { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, <START> "@text/offline.conf-error-not-supported-refreshIntervall"); <END> configValid = false; } if (config.getLanguage() != null) { final String language = StringUtils.trimToEmpty(config.getLanguage()); if (!OpenWeatherMapAPIConfiguration.SUPPORTED_LANGUAGES.contains(language.toLowerCase())) { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, "@text/offline.conf-error-not-supported-language"); configValid = false; } } if (configValid) { connection = new OpenWeatherMapConnection(this, httpClient); if (refreshJob == null || refreshJob.isCancelled()) { logger.debug("Start refresh job at intervall min.", config.getRefreshIntervall()); refreshJob = scheduler.scheduleWithFixedDelay(this::updateThings, 1, config.getRefreshIntervall(), TimeUnit.MINUTES); } updateStatus(ThingStatus.UNKNOWN); } }</code><technical_language>@text/offline.conf-error-not-supported-refreshIntervall -> @text/offline.conf-error-not-supported-refreshInterval</technical_language>

Target:
public void initialize() { logger.debug("Initialize OpenWeatherMap API handler."); config = getConfigAs(OpenWeatherMapAPIConfiguration.class); boolean configValid = true; if (StringUtils.trimToNull(config.getApikey()) == null) { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, "@text/offline.conf-error-missing-apikey"); configValid = false; } int refreshInterval = config.getRefreshInterval(); if (refreshInterval < 10) { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, "@text/offline.conf-error-not-supported-refreshInterval"); configValid = false; } String language = config.getLanguage(); if (language != null) { language = StringUtils.trimToEmpty(language); if (!OpenWeatherMapAPIConfiguration.SUPPORTED_LANGUAGES.contains(language.toLowerCase())) { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, "@text/offline.conf-error-not-supported-language"); configValid = false; } } else { language = localeProvider.getLocale().getLanguage(); if (OpenWeatherMapAPIConfiguration.SUPPORTED_LANGUAGES.contains(language)) { logger.debug("Language set to '{}'.", language); Configuration editConfig = editConfiguration(); editConfig.put(CONFIG_LANGUAGE, language); updateConfiguration(editConfig); } } if (configValid) { connection = new OpenWeatherMapConnection(this, httpClient); updateStatus(ThingStatus.UNKNOWN); if (refreshJob == null || refreshJob.isCancelled()) { logger.debug("Start refresh job at interval min.", refreshInterval); refreshJob = scheduler.scheduleWithFixedDelay(this::updateThings, INITIAL_DELAY_IN_SECONDS, TimeUnit.MINUTES.toSeconds(refreshInterval), TimeUnit.SECONDS); } } }