diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-11-10 16:56:54 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-11-10 09:21:47 -0800 |
commit | 4fde26fb2c8478176bdd77be19e091695b744ae8 (patch) | |
tree | d4756125f24414769c9a3cc0a321ad9dada23b77 /desktop-widgets/preferences/preferences_language.cpp | |
parent | 2c06cb027f20eee42769fb3a56e41c87b1a4d252 (diff) | |
download | subsurface-4fde26fb2c8478176bdd77be19e091695b744ae8.tar.gz |
preferences: re-use a tr() string in _language.cpp
Also, tell "in date format" instead of "in time format"
for dates.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'desktop-widgets/preferences/preferences_language.cpp')
-rw-r--r-- | desktop-widgets/preferences/preferences_language.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop-widgets/preferences/preferences_language.cpp b/desktop-widgets/preferences/preferences_language.cpp index 4d200d82f..0cb36dc2c 100644 --- a/desktop-widgets/preferences/preferences_language.cpp +++ b/desktop-widgets/preferences/preferences_language.cpp @@ -89,14 +89,15 @@ void PreferencesLanguage::syncSettings() lang->setDateFormatShort(ui->shortDateFormatEntry->text()); uiLanguage(NULL); + QString qDateTimeWeb = tr("These will be used as is. This might not be what you intended.\nSee http://doc.qt.io/qt-5/qdatetime.html#toString"); QRegExp tfillegalchars("[^hHmszaApPt\\s:;\\.,]"); if (tfillegalchars.indexIn(ui->timeFormatEntry->text()) >= 0) QMessageBox::warning(this, tr("Literal characters"), - tr("Non-special character(s) in time format.\nThese will be used as is. This might not be what you intended.\nSee http://doc.qt.io/qt-5/qdatetime.html#toString")); + tr("Non-special character(s) in time format.\n") + qDateTimeWeb); QRegExp dfillegalchars("[^dMy/\\s:;\\.,\\-]"); if (dfillegalchars.indexIn(ui->dateFormatEntry->currentText()) >= 0 || dfillegalchars.indexIn(ui->shortDateFormatEntry->text()) >= 0) QMessageBox::warning(this, tr("Literal characters"), - tr("Non-special character(s) in time format.\nThese will be used as is. This might not be what you intended.\nSee http://doc.qt.io/qt-5/qdatetime.html#toString")); + tr("Non-special character(s) in date format.\n") + qDateTimeWeb); } |