[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kalarm
From: David Jarvie <software () astrojar ! org ! uk>
Date: 2009-05-31 21:58:13
Message-ID: 1243807093.725422.8625.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 976101 by djarvie:
Convert translatable string from a #define to a ki18nc(), because it was omitted from
the .po file using #define.
M +9 -9 prefdlg.cpp
--- trunk/KDE/kdepim/kalarm/prefdlg.cpp #976100:976101
@@ -1141,7 +1141,7 @@
EditPrefTab::EditPrefTab(StackedScrollGroup* scrollGroup)
: PrefsTabBase(scrollGroup)
{
-#define DEFSETTING "The default setting for <interface>%1</interface> in the alarm \
edit dialog." + KLocalizedString defsetting = ki18nc("@info:whatsthis", "The default \
setting for <interface>%1</interface> in the alarm edit dialog.");
KTabWidget* tabs = new KTabWidget(topWidget());
StackedGroupT<KVBox>* tabgroup = new StackedGroupT<KVBox>(tabs);
@@ -1162,7 +1162,7 @@
// Show in KOrganizer
mCopyToKOrganizer = new QCheckBox(EditAlarmDlg::i18n_chk_ShowInKOrganizer(), \
topGeneral); mCopyToKOrganizer->setMinimumSize(mCopyToKOrganizer->sizeHint());
- mCopyToKOrganizer->setWhatsThis(i18nc("@info:whatsthis", DEFSETTING, \
EditAlarmDlg::i18n_chk_ShowInKOrganizer())); \
+ mCopyToKOrganizer->setWhatsThis(defsetting.subs(EditAlarmDlg::i18n_chk_ShowInKOrganizer()).toString());
// Late cancellation
KHBox* box = new KHBox(topGeneral);
@@ -1170,7 +1170,7 @@
box->setSpacing(KDialog::spacingHint());
mLateCancel = new QCheckBox(LateCancelSelector::i18n_chk_CancelIfLate(), box);
mLateCancel->setMinimumSize(mLateCancel->sizeHint());
- mLateCancel->setWhatsThis(i18nc("@info:whatsthis", DEFSETTING, \
LateCancelSelector::i18n_chk_CancelIfLate())); \
+ mLateCancel->setWhatsThis(defsetting.subs(LateCancelSelector::i18n_chk_CancelIfLate()).toString());
box->setStretchFactor(new QWidget(box), 1); // left adjust the control
// Recurrence
@@ -1232,12 +1232,12 @@
mConfirmAck = new QCheckBox(EditDisplayAlarmDlg::i18n_chk_ConfirmAck(), group);
mConfirmAck->setMinimumSize(mConfirmAck->sizeHint());
- mConfirmAck->setWhatsThis(i18nc("@info:whatsthis", DEFSETTING, \
EditDisplayAlarmDlg::i18n_chk_ConfirmAck())); \
+ mConfirmAck->setWhatsThis(defsetting.subs(EditDisplayAlarmDlg::i18n_chk_ConfirmAck()).toString());
vlayout->addWidget(mConfirmAck, 0, Qt::AlignLeft);
mAutoClose = new QCheckBox(LateCancelSelector::i18n_chk_AutoCloseWinLC(), group);
mAutoClose->setMinimumSize(mAutoClose->sizeHint());
- mAutoClose->setWhatsThis(i18nc("@info:whatsthis", DEFSETTING, \
LateCancelSelector::i18n_chk_AutoCloseWin())); \
+ mAutoClose->setWhatsThis(defsetting.subs(LateCancelSelector::i18n_chk_AutoCloseWin()).toString());
vlayout->addWidget(mAutoClose, 0, Qt::AlignLeft);
box = new KHBox(group);
@@ -1272,7 +1272,7 @@
if (theApp()->speechEnabled())
mSound->addItem(SoundPicker::i18n_combo_Speak()); // index 3
mSound->setMinimumSize(mSound->sizeHint());
- mSound->setWhatsThis(i18nc("@info:whatsthis", DEFSETTING, \
SoundPicker::i18n_label_Sound())); \
+ mSound->setWhatsThis(defsetting.subs(SoundPicker::i18n_label_Sound()).toString()); \
hlayout->addWidget(mSound); hlayout->addStretch();
@@ -1310,13 +1310,13 @@
mCmdScript = new QCheckBox(EditCommandAlarmDlg::i18n_chk_EnterScript(), group);
mCmdScript->setMinimumSize(mCmdScript->sizeHint());
- mCmdScript->setWhatsThis(i18nc("@info:whatsthis", DEFSETTING, \
EditCommandAlarmDlg::i18n_chk_EnterScript())); \
+ mCmdScript->setWhatsThis(defsetting.subs(EditCommandAlarmDlg::i18n_chk_EnterScript()).toString());
hlayout->addWidget(mCmdScript);
hlayout->addStretch();
mCmdXterm = new QCheckBox(EditCommandAlarmDlg::i18n_chk_ExecInTermWindow(), group);
mCmdXterm->setMinimumSize(mCmdXterm->sizeHint());
- mCmdXterm->setWhatsThis(i18nc("@info:whatsthis", DEFSETTING, \
EditCommandAlarmDlg::i18n_radio_ExecInTermWindow())); \
+ mCmdXterm->setWhatsThis(defsetting.subs(EditCommandAlarmDlg::i18n_radio_ExecInTermWindow()).toString());
hlayout->addWidget(mCmdXterm);
// EMAIL ALARMS
@@ -1328,7 +1328,7 @@
// BCC email to sender
mEmailBcc = new QCheckBox(EditEmailAlarmDlg::i18n_chk_CopyEmailToSelf(), group);
mEmailBcc->setMinimumSize(mEmailBcc->sizeHint());
- mEmailBcc->setWhatsThis(i18nc("@info:whatsthis", DEFSETTING, \
EditEmailAlarmDlg::i18n_chk_CopyEmailToSelf())); \
+ mEmailBcc->setWhatsThis(defsetting.subs(EditEmailAlarmDlg::i18n_chk_CopyEmailToSelf()).toString());
vlayout->addWidget(mEmailBcc, 0, Qt::AlignLeft);
lay = qobject_cast<QVBoxLayout*>(topTypes->layout());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic