|
354 | 354 | replyLang.length < 4 || replyLang.includes('-') ? replyLang.toUpperCase() |
355 | 355 | : toTitleCase(replyLang) ) |
356 | 356 | settings.save('replyLanguage', replyLang || env.browser.language) |
357 | | - modals.alert(( app.msgs.alert_replyLangUpdated ) + '!', // title |
358 | | - ( app.msgs.appName ) + ' ' // msg |
359 | | - + ( app.msgs.alert_willReplyIn ) + ' ' |
360 | | - + ( replyLang || app.msgs.alert_yourSysLang) + '.' |
| 357 | + modals.alert(`${app.msgs.alert_replyLangUpdated}!`, // title |
| 358 | + `${app.msgs.appName} ${ // msg |
| 359 | + app.msgs.alert_willReplyIn} ${ replyLang || app.msgs.alert_yourSysLang }.` |
361 | 360 | ) |
362 | 361 | } |
363 | 362 | } else if (key == 'replyTopic') { |
|
368 | 367 | settings.save('replyTopic', |
369 | 368 | !replyTopic || re_all.test(replyTopic) ? app.msgs.menuLabel_all : replyTopic) |
370 | 369 | modals.alert(`${app.msgs.alert_replyTopicUpdated}!`, |
371 | | - `${app.msgs.appName} ${app.msgs.alert_willAnswer} ` |
372 | | - + ( !replyTopic || re_all.test(replyTopic) ? app.msgs.alert_onAllTopics |
373 | | - : `${app.msgs.alert_onTopicOf} ${replyTopic}` ) |
374 | | - + '!' |
| 370 | + `${app.msgs.appName} ${app.msgs.alert_willAnswer} ${ |
| 371 | + !replyTopic || re_all.test(replyTopic) ? app.msgs.alert_onAllTopics |
| 372 | + : `${app.msgs.alert_onTopicOf} ${replyTopic}` }!` |
375 | 373 | ) |
376 | 374 | } |
377 | 375 | } else if (key == 'replyInterval') { |
378 | 376 | const replyInterval = prompt(`${app.msgs.prompt_updateReplyInt}:`, config.replyInterval) |
379 | 377 | if (replyInterval == null) return // user cancelled so do nothing |
380 | 378 | else if (!isNaN(parseInt(replyInterval, 10)) && parseInt(replyInterval, 10) > 4) { |
381 | 379 | settings.save('replyInterval', parseInt(replyInterval, 10)) |
382 | | - modals.alert(( app.msgs.alert_replyIntUpdated ) + '!', // title |
383 | | - ( app.msgs.appName ) + ' ' // msg |
384 | | - + ( app.msgs.alert_willReplyEvery ) + ' ' |
385 | | - + replyInterval + ' ' + ( app.msgs.unit_seconds ) + '.' |
| 380 | + modals.alert(`${app.msgs.alert_replyIntUpdated}!`, // title |
| 381 | + `${app.msgs.appName} ${ // msg |
| 382 | + app.msgs.alert_willReplyEvery} ${replyInterval} ${app.msgs.unit_seconds}.` |
386 | 383 | ) |
387 | 384 | } |
388 | 385 | } |
|
0 commit comments