mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 10:52:53 +00:00
kuassel: use i18n properly
This commit is contained in:
parent
f4b15f1faf
commit
1c77cc4eb7
5 changed files with 5 additions and 5 deletions
|
@ -63,7 +63,7 @@ void CoreConnectionStatusWidget::update()
|
||||||
void CoreConnectionStatusWidget::updateLag(int msecs)
|
void CoreConnectionStatusWidget::updateLag(int msecs)
|
||||||
{
|
{
|
||||||
if (msecs >= 0) {
|
if (msecs >= 0) {
|
||||||
QString unit = msecs >= 100 ? i18n("s", "seconds") : i18n("ms", "milliseconds");
|
QString unit = msecs >= 100 ? i18n("seconds") : i18n("milliseconds");
|
||||||
ui.lagLabel->setText(i18n("(Lag: %1 %2)").arg(msecs >= 100 ? msecs / 1000. : msecs, 0, 'f', (int)(msecs >= 100)).arg(unit));
|
ui.lagLabel->setText(i18n("(Lag: %1 %2)").arg(msecs >= 100 ? msecs / 1000. : msecs, 0, 'f', (int)(msecs >= 100)).arg(unit));
|
||||||
if (!ui.lagLabel->isVisible())
|
if (!ui.lagLabel->isVisible())
|
||||||
ui.lagLabel->show();
|
ui.lagLabel->show();
|
||||||
|
|
|
@ -54,7 +54,7 @@ void CoreInfoDlg::updateUptime()
|
||||||
int uphours = uptime / 3600; uptime %= 3600;
|
int uphours = uptime / 3600; uptime %= 3600;
|
||||||
int upmins = uptime / 60; uptime %= 60;
|
int upmins = uptime / 60; uptime %= 60;
|
||||||
|
|
||||||
QString uptimeText = i18n("%n Day(s)", "", updays)
|
QString uptimeText = i18n("%n Day(s)", updays)
|
||||||
+ i18n(" %1:%2:%3 (since %4)").arg(uphours, 2, 10, QChar('0')).arg(upmins, 2, 10, QChar('0')).arg(uptime, 2, 10, QChar('0')).arg(startTime.toLocalTime().toString(Qt::TextDate));
|
+ i18n(" %1:%2:%3 (since %4)").arg(uphours, 2, 10, QChar('0')).arg(upmins, 2, 10, QChar('0')).arg(uptime, 2, 10, QChar('0')).arg(startTime.toLocalTime().toString(Qt::TextDate));
|
||||||
ui.labelUptime->setText(uptimeText);
|
ui.labelUptime->setText(uptimeText);
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,7 +130,7 @@ void KNotificationBackend::notificationActivated(uint notificationId)
|
||||||
void KNotificationBackend::updateToolTip()
|
void KNotificationBackend::updateToolTip()
|
||||||
{
|
{
|
||||||
QtUi::mainWindow()->systemTray()->setToolTip("Kuassel",
|
QtUi::mainWindow()->systemTray()->setToolTip("Kuassel",
|
||||||
_notifications.count() ? i18n("%n pending highlight(s)", "", _notifications.count()) : QString());
|
_notifications.count() ? i18n("%n pending highlight(s)", _notifications.count()) : QString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,7 @@ void SystrayNotificationBackend::animateChanged(const QVariant &v)
|
||||||
void SystrayNotificationBackend::updateToolTip()
|
void SystrayNotificationBackend::updateToolTip()
|
||||||
{
|
{
|
||||||
QtUi::mainWindow()->systemTray()->setToolTip("Kuassel",
|
QtUi::mainWindow()->systemTray()->setToolTip("Kuassel",
|
||||||
_notifications.count() ? i18n("%n pending highlight(s)", "", _notifications.count()) : QString());
|
_notifications.count() ? i18n("%n pending highlight(s)", _notifications.count()) : QString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -701,7 +701,7 @@ void MultiLineEdit::on_textChanged()
|
||||||
clear();
|
clear();
|
||||||
|
|
||||||
if (lines.count() >= 4) {
|
if (lines.count() >= 4) {
|
||||||
QString msg = i18n("Do you really want to paste %n line(s)?", "", lines.count());
|
QString msg = i18n("Do you really want to paste %n line(s)?", lines.count());
|
||||||
msg += "<p>";
|
msg += "<p>";
|
||||||
for (int i = 0; i < 4; i++) {
|
for (int i = 0; i < 4; i++) {
|
||||||
#if QT_VERSION < 0x050000
|
#if QT_VERSION < 0x050000
|
||||||
|
|
Loading…
Add table
Reference in a new issue