Commit a0f41f82 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use resolve_kuit.py to clean i18n*

parent 38fac7e8
......@@ -921,9 +921,9 @@ QString AkonadiModel::displayName(Akonadi::Collection& collection) const
QString AkonadiModel::storageType(const Akonadi::Collection& collection) const
{
const KUrl url = collection.remoteId();
return !url.isLocalFile() ? i18nc("@info/plain", "URL")
: QFileInfo(url.toLocalFile()).isDir() ? i18nc("@info/plain Directory in filesystem", "Directory")
: i18nc("@info/plain", "File");
return !url.isLocalFile() ? i18nc("@info", "URL")
: QFileInfo(url.toLocalFile()).isDir() ? i18nc("@info Directory in filesystem", "Directory")
: i18nc("@info", "File");
}
/******************************************************************************
......@@ -938,7 +938,7 @@ QString AkonadiModel::tooltip(const Collection& collection, CalEvent::Types type
const QString locn = url.pathOrUrl();
const bool inactive = !collection.hasAttribute<CollectionAttribute>()
|| !(collection.attribute<CollectionAttribute>()->enabled() & types);
const QString disabled = i18nc("@info/plain", "Disabled");
const QString disabled = i18nc("@info", "Disabled");
const QString readonly = readOnlyTooltip(collection);
const bool writable = readonly.isEmpty();
if (inactive && !writable)
......@@ -971,11 +971,11 @@ QString AkonadiModel::readOnlyTooltip(const Collection& collection)
case 1:
return QString();
case 0:
return i18nc("@info/plain", "Read-only (old format)");
return i18nc("@info", "Read-only (old format)");
default:
if (compat == KACalendar::Current)
return i18nc("@info/plain", "Read-only");
return i18nc("@info/plain", "Read-only (other format)");
return i18nc("@info", "Read-only");
return i18nc("@info", "Read-only (other format)");
}
}
......@@ -1493,11 +1493,11 @@ void AkonadiModel::itemJobDone(KJob* j)
{
QString errMsg;
if (jobClass == "Akonadi::ItemCreateJob")
errMsg = i18nc("@info/plain", "Failed to create alarm.");
errMsg = i18nc("@info", "Failed to create alarm.");
else if (jobClass == "Akonadi::ItemModifyJob")
errMsg = i18nc("@info/plain", "Failed to update alarm.");
errMsg = i18nc("@info", "Failed to update alarm.");
else if (jobClass == "Akonadi::ItemDeleteJob")
errMsg = i18nc("@info/plain", "Failed to delete alarm.");
errMsg = i18nc("@info", "Failed to delete alarm.");
else
Q_ASSERT(0);
qCritical() << errMsg << itemId << ":" << j->errorString();
......
......@@ -106,7 +106,7 @@ void AkonadiResourceCreator::agentInstanceCreated(KJob* j)
if (j->error())
{
qCritical() << "Failed to create new calendar resource:" << j->errorString();
KMessageBox::error(0, xi18nc("@info", "%1<nl/>(%2)", i18nc("@info/plain", "Failed to create new calendar resource"), j->errorString()));
KMessageBox::error(0, xi18nc("@info", "%1<nl/>(%2)", i18nc("@info", "Failed to create new calendar resource"), j->errorString()));
exitWithError();
}
else
......
......@@ -573,7 +573,7 @@ bool AlarmCalendar::importAlarms(QWidget* parent, Collection* collection)
{
qDebug();
KUrl url = KFileDialog::getOpenUrl(KUrl("filedialog:///importalarms"),
QString::fromLatin1("*.vcs *.ics|%1").arg(i18nc("@info/plain", "Calendar Files")), parent);
QString::fromLatin1("*.vcs *.ics|%1").arg(i18nc("@info", "Calendar Files")), parent);
if (url.isEmpty())
{
qCritical() << "Empty URL";
......@@ -697,7 +697,7 @@ bool AlarmCalendar::exportAlarms(const KAEvent::List& events, QWidget* parent)
{
bool append;
QString file = FileDialog::getSaveFileName(KUrl("kfiledialog:///exportalarms"),
QString::fromLatin1("*.ics|%1").arg(i18nc("@info/plain", "Calendar Files")),
QString::fromLatin1("*.ics|%1").arg(i18nc("@info", "Calendar Files")),
parent, i18nc("@title:window", "Choose Export Calendar"),
&append);
if (file.isEmpty())
......
......@@ -39,7 +39,7 @@ int AlarmTime::mTimeHourPos = -2;
QString AlarmTime::alarmTimeText(const DateTime& dateTime)
{
if (!dateTime.isValid())
return i18nc("@info/plain Alarm never occurs", "Never");
return i18nc("@info Alarm never occurs", "Never");
KLocale* locale = KLocale::global();
KDateTime kdt = dateTime.effectiveKDateTime().toTimeSpec(Preferences::timeZone());
QString dateTimeText = locale->formatDate(kdt.date(), KLocale::ShortDate);
......@@ -77,13 +77,13 @@ QString AlarmTime::alarmTimeText(const DateTime& dateTime)
QString AlarmTime::timeToAlarmText(const DateTime& dateTime)
{
if (!dateTime.isValid())
return i18nc("@info/plain Alarm never occurs", "Never");
return i18nc("@info Alarm never occurs", "Never");
KDateTime now = KDateTime::currentUtcDateTime();
if (dateTime.isDateOnly())
{
int days = now.date().daysTo(dateTime.date());
// xgettext: no-c-format
return i18nc("@info/plain n days", "%1d", days);
return i18nc("@info n days", "%1d", days);
}
int mins = (now.secsTo(dateTime.effectiveKDateTime()) + 59) / 60;
if (mins < 0)
......@@ -92,10 +92,10 @@ QString AlarmTime::timeToAlarmText(const DateTime& dateTime)
minutes[0] = (mins%60) / 10 + '0';
minutes[1] = (mins%60) % 10 + '0';
if (mins < 24*60)
return i18nc("@info/plain hours:minutes", "%1:%2", mins/60, QLatin1String(minutes));
return i18nc("@info hours:minutes", "%1:%2", mins/60, QLatin1String(minutes));
int days = mins / (24*60);
mins = mins % (24*60);
return i18nc("@info/plain days hours:minutes", "%1d %2:%3", days, mins/60, QLatin1String(minutes));
return i18nc("@info days hours:minutes", "%1d %2:%3", days, mins/60, QLatin1String(minutes));
}
/******************************************************************************
......
......@@ -50,7 +50,7 @@ const int AlarmTimeWidget::maxDelayTime = 999*60 + 59; // < 1000 hours
QString AlarmTimeWidget::i18n_TimeAfterPeriod()
{
return i18nc("@info/plain", "Enter the length of time (in hours and minutes) after "
return i18nc("@info", "Enter the length of time (in hours and minutes) after "
"the current time to schedule the alarm.");
}
......@@ -81,10 +81,10 @@ AlarmTimeWidget::AlarmTimeWidget(Mode mode, QWidget* parent)
void AlarmTimeWidget::init(Mode mode, const QString& title)
{
static const QString recurText = i18nc("@info/plain",
static const QString recurText = i18nc("@info",
"If a recurrence is configured, the start date/time will be adjusted "
"to the first recurrence on or after the entered date/time.");
static const QString tzText = i18nc("@info/plain",
static const QString tzText = i18nc("@info",
"This uses KAlarm's default time zone, set in the Configuration dialog.");
QWidget* topWidget;
......
......@@ -80,7 +80,7 @@ BirthdayDlg::BirthdayDlg(QWidget* parent)
// Prefix and suffix to the name in the alarm text
// Get default prefix and suffix texts from config file
KConfigGroup config(KSharedConfig::openConfig(), "General");
mPrefixText = config.readEntry("BirthdayPrefix", i18nc("@info/plain", "Birthday: "));
mPrefixText = config.readEntry("BirthdayPrefix", i18nc("@info", "Birthday: "));
mSuffixText = config.readEntry("BirthdaySuffix");
QGroupBox* textGroup = new QGroupBox(i18nc("@title:group", "Alarm Text"), topWidget);
......
......@@ -288,7 +288,7 @@ void CalendarMigrator::createDefaultResources()
CalendarCreator* creator;
if (!(mExistingAlarmTypes & CalEvent::ACTIVE))
{
creator = new CalendarCreator(CalEvent::ACTIVE, QLatin1String("calendar.ics"), i18nc("@info/plain", "Active Alarms"));
creator = new CalendarCreator(CalEvent::ACTIVE, QLatin1String("calendar.ics"), i18nc("@info", "Active Alarms"));
connect(creator, SIGNAL(finished(CalendarCreator*)), SLOT(calendarCreated(CalendarCreator*)));
connect(creator, SIGNAL(creating(QString)), SLOT(creatingCalendar(QString)));
mCalendarsPending << creator;
......@@ -296,7 +296,7 @@ void CalendarMigrator::createDefaultResources()
}
if (!(mExistingAlarmTypes & CalEvent::ARCHIVED))
{
creator = new CalendarCreator(CalEvent::ARCHIVED, QLatin1String("expired.ics"), i18nc("@info/plain", "Archived Alarms"));
creator = new CalendarCreator(CalEvent::ARCHIVED, QLatin1String("expired.ics"), i18nc("@info", "Archived Alarms"));
connect(creator, SIGNAL(finished(CalendarCreator*)), SLOT(calendarCreated(CalendarCreator*)));
connect(creator, SIGNAL(creating(QString)), SLOT(creatingCalendar(QString)));
mCalendarsPending << creator;
......@@ -304,7 +304,7 @@ void CalendarMigrator::createDefaultResources()
}
if (!(mExistingAlarmTypes & CalEvent::TEMPLATE))
{
creator = new CalendarCreator(CalEvent::TEMPLATE, QLatin1String("template.ics"), i18nc("@info/plain", "Alarm Templates"));
creator = new CalendarCreator(CalEvent::TEMPLATE, QLatin1String("template.ics"), i18nc("@info", "Alarm Templates"));
connect(creator, SIGNAL(finished(CalendarCreator*)), SLOT(calendarCreated(CalendarCreator*)));
connect(creator, SIGNAL(creating(QString)), SLOT(creatingCalendar(QString)));
mCalendarsPending << creator;
......@@ -346,7 +346,7 @@ void CalendarMigrator::calendarCreated(CalendarCreator* creator)
: xi18nc("@info/plain 'Import Alarms' is the name of a menu option",
"Failed to convert old configuration for calendar <resource>%1</resource>. "
"Please use Import Alarms to load its alarms into a new or existing calendar.", creator->resourceName());
const QString locn = i18nc("@info/plain File path or URL", "Location: %1", creator->path());
const QString locn = i18nc("@info File path or URL", "Location: %1", creator->path());
if (creator->errorMessage().isEmpty())
errmsg = xi18nc("@info", "<para>%1</para><para>%2</para>", errmsg, locn);
else
......@@ -459,7 +459,7 @@ bool CalendarUpdater::update()
// Refetch the collection's details because anything could
// have happened since the prompt was first displayed.
if (!AkonadiModel::instance()->refresh(mCollection))
errmsg = i18nc("@info/plain", "Invalid collection");
errmsg = i18nc("@info", "Invalid collection");
}
if (errmsg.isEmpty())
{
......@@ -751,7 +751,7 @@ void CalendarCreator::collectionFetchResult(KJob* j)
{
if (++mCollectionFetchRetryCount >= 10)
{
mErrorMessage = i18nc("@info/plain", "New configuration timed out");
mErrorMessage = i18nc("@info", "New configuration timed out");
qCritical() << "Timeout fetching collection for resource";
finish(true);
return;
......@@ -764,7 +764,7 @@ void CalendarCreator::collectionFetchResult(KJob* j)
}
if (collections.count() > 1)
{
mErrorMessage = i18nc("@info/plain", "New configuration was corrupt");
mErrorMessage = i18nc("@info", "New configuration was corrupt");
qCritical() << "Wrong number of collections for this resource:" << collections.count();
finish(true);
return;
......
......@@ -947,11 +947,11 @@ QString CollectionControlModel::typeListForDisplay(CalEvent::Types alarmTypes)
{
QString list;
if (alarmTypes & CalEvent::ACTIVE)
list += QLatin1String("<item>") + i18nc("@info/plain", "Active Alarms") + QLatin1String("</item>");
list += QLatin1String("<item>") + i18nc("@info", "Active Alarms") + QLatin1String("</item>");
if (alarmTypes & CalEvent::ARCHIVED)
list += QLatin1String("<item>") + i18nc("@info/plain", "Archived Alarms") + QLatin1String("</item>");
list += QLatin1String("<item>") + i18nc("@info", "Archived Alarms") + QLatin1String("</item>");
if (alarmTypes & CalEvent::TEMPLATE)
list += QLatin1String("<item>") + i18nc("@info/plain", "Alarm Templates") + QLatin1String("</item>");
list += QLatin1String("<item>") + i18nc("@info", "Alarm Templates") + QLatin1String("</item>");
if (!list.isEmpty())
list = QLatin1String("<list>") + list + QLatin1String("</list>");
return list;
......
......@@ -69,7 +69,7 @@
</entry>
<entry name="Base_TimeZone" key="TimeZone" type="String">
<label context="@label">Time zone</label>
<whatsthis context="@info:whatsthis">Select the time zone which &lt;application>KAlarm&lt;/application> should use as its default for displaying and entering dates and times.</whatsthis>
<whatsthis context="@info:whatsthis">Select the time zone which KAlarm should use as its default for displaying and entering dates and times.</whatsthis>
<!-- <emit signal="base_TimeZoneChanged"/> -->
</entry>
<entry name="Base_HolidayRegion" key="HolidayRegion" type="String">
......@@ -95,19 +95,19 @@
</entry>
<entry name="ShowInSystemTray" type="Bool">
<label context="@label">Show in system tray</label>
<whatsthis context="@info:whatsthis">&lt;para>Check to show &lt;application>KAlarm&lt;/application>'s icon in the system tray. Showing it in the system tray provides easy access and a status indication.&lt;/para></whatsthis>
<whatsthis context="@info:whatsthis">&lt;p>Check to show KAlarm's icon in the system tray. Showing it in the system tray provides easy access and a status indication.&lt;/p></whatsthis>
<default>true</default>
<!-- <emit signal="showInSystemTrayChanged"/>-->
</entry>
<entry name="AutoHideSystemTray" type="Int">
<label context="@label">Auto-hide in system tray if no alarms due within period</label>
<whatsthis context="@info:whatsthis">&lt;para>Enter -1 to auto-hide &lt;application>KAlarm&lt;/application>'s icon in the system tray when there are no active alarms.&lt;/para>&lt;para>To auto-hide the system tray icon when there are no alarms due within a set period of time, enter the time period in minutes.&lt;/para>&lt;para>Enter 0 to always show the system tray icon.&lt;/para></whatsthis>
<whatsthis context="@info:whatsthis">&lt;p>Enter -1 to auto-hide KAlarm's icon in the system tray when there are no active alarms.&lt;/p>&lt;p>To auto-hide the system tray icon when there are no alarms due within a set period of time, enter the time period in minutes.&lt;/p>&lt;p>Enter 0 to always show the system tray icon.&lt;/p></whatsthis>
<default>1440</default>
<!-- <emit signal="autoHideSystemTrayChanged"/> -->
</entry>
<entry name="AutoStart" key="AutoStart" type="Bool">
<label context="@label">Start at login</label>
<whatsthis context="@info:whatsthis">&lt;para>Automatically start &lt;application>KAlarm&lt;/application> whenever you start KDE.&lt;/para>&lt;para>This option should always be checked unless you intend to discontinue use of &lt;application>KAlarm&lt;/application>.&lt;/para></whatsthis>
<whatsthis context="@info:whatsthis">&lt;p>Automatically start KAlarm whenever you start KDE.&lt;/p>&lt;p>This option should always be checked unless you intend to discontinue use of KAlarm.&lt;/p></whatsthis>
<default>false</default>
</entry>
<entry name="NoAutoStart" key="NoAutoStart" type="Bool" hidden="true">
......@@ -121,21 +121,21 @@
</entry>
<entry name="AskResource" type="Bool">
<label context="@label">Prompt for which calendar to store in</label>
<whatsthis context="@info:whatsthis">&lt;para>When saving a new alarm or alarm template, prompt for which calendar to store it in, if there is more than one active calendar.&lt;/para>&lt;para>Note that archived alarms are always stored in the default archived alarm calendar.&lt;/para></whatsthis>
<whatsthis context="@info:whatsthis">&lt;p>When saving a new alarm or alarm template, prompt for which calendar to store it in, if there is more than one active calendar.&lt;/p>&lt;p>Note that archived alarms are always stored in the default archived alarm calendar.&lt;/p></whatsthis>
<default>true</default>
<!-- <emit signal="askResourceChanged"/> -->
</entry>
<entry name="ModalMessages" type="Bool">
<label context="@label">Message windows have a title bar and take keyboard focus</label>
<whatsthis context="@info:whatsthis">&lt;para>Specify the characteristics of alarm message windows:&lt;list>&lt;item>If checked, the window is a normal window with a title bar, which grabs keyboard input when it is displayed.&lt;/item>&lt;item>If unchecked, the window does not interfere with your typing when it is displayed, but it has no title bar and cannot be moved or resized.&lt;/item>&lt;/list>&lt;/para></whatsthis>
<whatsthis context="@info:whatsthis">&lt;p>Specify the characteristics of alarm message windows:&lt;ul>&lt;li>If checked, the window is a normal window with a title bar, which grabs keyboard input when it is displayed.&lt;/li>&lt;li>If unchecked, the window does not interfere with your typing when it is displayed, but it has no title bar and cannot be moved or resized.&lt;/li>&lt;/ul>&lt;/p></whatsthis>
<default>true</default>
</entry>
<entry name="MessageButtonDelay" type="Int">
<label context="@label">Delay before message window buttons are enabled</label>
<whatsthis context="@info:whatsthis">&lt;para>Specify the positioning of alarm message windows, and the delay in seconds after a window shows until its buttons are enabled.
&lt;list>&lt;item>0 to position message windows as far from the cursor as possible with no enable delay.&lt;/item>
&lt;item>> 0 to position in center of screen and specify delay before enabling buttons.&lt;/item>
&lt;item>-1 for no special positioning and no enable delay.&lt;/item>&lt;/list>&lt;/para>
<whatsthis context="@info:whatsthis">&lt;p>Specify the positioning of alarm message windows, and the delay in seconds after a window shows until its buttons are enabled.
&lt;ul>&lt;li>0 to position message windows as far from the cursor as possible with no enable delay.&lt;/li>
&lt;li>> 0 to position in center of screen and specify delay before enabling buttons.&lt;/li>
&lt;li>-1 for no special positioning and no enable delay.&lt;/li>&lt;/ul>&lt;/p>
</whatsthis>
<default>0</default>
<min>-1</min>
......@@ -143,10 +143,10 @@
</entry>
<entry name="TooltipAlarmCount" type="Int">
<label context="@label">Number of alarms to show in system tray tooltip</label>
<whatsthis context="@info:whatsthis">&lt;para>How many alarms due in the next 24 hours to show in the system tray tooltip:
&lt;list>&lt;item>0 to display none&lt;/item>
&lt;item>-1 to display all&lt;/item>
&lt;item>>0 to set a limit.&lt;/item>&lt;/list>&lt;/para>
<whatsthis context="@info:whatsthis">&lt;p>How many alarms due in the next 24 hours to show in the system tray tooltip:
&lt;ul>&lt;li>0 to display none&lt;/li>
&lt;li>-1 to display all&lt;/li>
&lt;li>>0 to set a limit.&lt;/li>&lt;/ul>&lt;/p>
</whatsthis>
<default>5</default>
<min>-1</min>
......@@ -172,7 +172,7 @@
</entry>
<entry name="EmailClient" key="EmailClient" type="Enum">
<label context="@label">Email client</label>
<whatsthis context="@info:whatsthis">&lt;para>How to send email when an email alarm is triggered.&lt;list>&lt;item>KMail: The email is sent automatically via &lt;application>KMail&lt;/application>. &lt;application>KMail&lt;/application> is started first if necessary.&lt;/item>&lt;item>Sendmail: The email is sent automatically. This option will only work if your system is configured to use &lt;application>sendmail&lt;/application> or a sendmail compatible mail transport agent.&lt;/item>&lt;/list>&lt;/para></whatsthis>
<whatsthis context="@info:whatsthis">&lt;p>How to send email when an email alarm is triggered.&lt;ul>&lt;li>KMail: The email is sent automatically via KMail. KMail is started first if necessary.&lt;/li>&lt;li>Sendmail: The email is sent automatically. This option will only work if your system is configured to use sendmail or a sendmail compatible mail transport agent.&lt;/li>&lt;/ul>&lt;/p></whatsthis>
<choices name="MailClient">
<choice name="sendmail"><label context="@option">Sendmail</label></choice>
<choice name="kmail"><label context="@option">KMail</label></choice>
......@@ -236,10 +236,10 @@
</entry>
<entry name="ArchivedKeepDays" key="ExpiredKeepDays" type="Int">
<label context="@label">Days to keep expired alarms</label>
<whatsthis context="@info:whatsthis">&lt;para>Specify how many days to keep alarms after they expire or are deleted (except deleted alarms which were never triggered):
&lt;list>&lt;item>0 to not keep&lt;/item>
&lt;item>-1 to keep indefinitely&lt;/item>
&lt;item>>0 number of days to keep.&lt;/item>&lt;/list>&lt;/para>
<whatsthis context="@info:whatsthis">&lt;p>Specify how many days to keep alarms after they expire or are deleted (except deleted alarms which were never triggered):
&lt;ul>&lt;li>0 to not keep&lt;/li>
&lt;li>-1 to keep indefinitely&lt;/li>
&lt;li>>0 number of days to keep.&lt;/li>&lt;/ul>&lt;/p>
</whatsthis>
<default>7</default>
<min>-1</min>
......@@ -345,7 +345,7 @@
</entry>
<entry name="DefaultFeb29Type" key="Feb29Recur" type="Enum">
<label context="@label">In non-leap years, repeat yearly February 29th alarms on:</label>
<whatsthis context="@info:whatsthis">For yearly recurrences, choose what date, if any, alarms due on February 29th should occur in non-leap years.&lt;note>The next scheduled occurrence of existing alarms is not re-evaluated when you change this setting.&lt;/note></whatsthis>
<whatsthis context="@info:whatsthis">For yearly recurrences, choose what date, if any, alarms due on February 29th should occur in non-leap years.&lt;i>Note&lt;/i>: The next scheduled occurrence of existing alarms is not re-evaluated when you change this setting.</whatsthis>
<choices name="Feb29Type" prefix="Feb29_">
<choice name="Feb28"><label context="@option">February 28th</label></choice>
<choice name="Mar1"><label context="@option">March 1st</label></choice>
......
......@@ -83,10 +83,10 @@ static QByteArray autoDetectCharset(const QString& text);
static const QTextCodec* codecForName(const QByteArray& str);
QString KAMail::i18n_NeedFromEmailAddress()
{ return i18nc("@info/plain", "A 'From' email address must be configured in order to execute email alarms."); }
{ return i18nc("@info", "A 'From' email address must be configured in order to execute email alarms."); }
QString KAMail::i18n_sent_mail()
{ return i18nc("@info/plain KMail folder name: this should be translated the same as in kmail", "sent-mail"); }
{ return i18nc("@info KMail folder name: this should be translated the same as in kmail", "sent-mail"); }
KAMail* KAMail::mInstance = 0; // used only to enable signals/slots to work
QQueue<MailTransport::MessageQueueJob*> KAMail::mJobs;
......
......@@ -1149,7 +1149,7 @@ QString EmailPrefTab::validate()
if (mBccAddressChanged)
{
mBccAddressChanged = false;
return validateAddr(mBccAddressGroup, mEmailBccAddress, i18nc("@info/plain", "No valid 'Bcc' email address is specified."));
return validateAddr(mBccAddressGroup, mEmailBccAddress, i18nc("@info", "No valid 'Bcc' email address is specified."));
}
return QString();
}
......
......@@ -278,7 +278,7 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, QWidget* parent)
mRangeButtonGroup->addButton(mEndDateButton);
mEndDateEdit = new KDateComboBox(mRangeButtonBox);
mEndDateEdit->setOptions(mReadOnly ? KDateComboBox::Options(0) : KDateComboBox::EditDate | KDateComboBox::SelectDate | KDateComboBox::DatePicker);
static const QString tzText = i18nc("@info/plain", "This uses the same time zone as the start time.");
static const QString tzText = i18nc("@info", "This uses the same time zone as the start time.");
mEndDateEdit->setWhatsThis(xi18nc("@info:whatsthis",
"<para>Enter the last date to repeat the alarm.</para><para>%1</para>", tzText));
connect(mEndDateEdit, SIGNAL(dateEdited(QDate)), SIGNAL(contentsChanged()));
......
......@@ -584,22 +584,22 @@ void ResourceSelector::showInfo()
CalEvent::Types altypes = AkonadiModel::instance()->types(collection);
QStringList alarmTypes;
if (altypes & CalEvent::ACTIVE)
alarmTypes << i18nc("@info/plain", "Active alarms");
alarmTypes << i18nc("@info", "Active alarms");
if (altypes & CalEvent::ARCHIVED)
alarmTypes << i18nc("@info/plain", "Archived alarms");
alarmTypes << i18nc("@info", "Archived alarms");
if (altypes & CalEvent::TEMPLATE)
alarmTypes << i18nc("@info/plain", "Alarm templates");
QString alarmTypeString = alarmTypes.join(i18nc("@info/plain List separator", ", "));
alarmTypes << i18nc("@info", "Alarm templates");
QString alarmTypeString = alarmTypes.join(i18nc("@info List separator", ", "));
KACalendar::Compat compat;
QString perms = AkonadiModel::readOnlyTooltip(collection);
if (perms.isEmpty())
perms = i18nc("@info/plain", "Read-write");
perms = i18nc("@info", "Read-write");
QString enabled = CollectionControlModel::isEnabled(collection, alarmType)
? i18nc("@info/plain", "Enabled")
: i18nc("@info/plain", "Disabled");
? i18nc("@info", "Enabled")
: i18nc("@info", "Disabled");
QString std = CollectionControlModel::isStandard(collection, alarmType)
? i18nc("@info/plain Parameter in 'Default calendar: Yes/No'", "Yes")
: i18nc("@info/plain Parameter in 'Default calendar: Yes/No'", "No");
? i18nc("@info Parameter in 'Default calendar: Yes/No'", "Yes")
: i18nc("@info Parameter in 'Default calendar: Yes/No'", "No");
QString text = xi18nc("@info",
"<title>%1</title>"
"<para>ID: %2<nl/>"
......
......@@ -378,9 +378,9 @@ QString TrayWindow::tooltipAlarmText() const
minutes[0] = static_cast<char>((mins%60) / 10 + '0');
minutes[1] = static_cast<char>((mins%60) % 10 + '0');
if (Preferences::showTooltipAlarmTime())
item.text += i18nc("@info/plain prefix + hours:minutes", "(%1%2:%3)", prefix, mins/60, QLatin1String(minutes));
item.text += i18nc("@info prefix + hours:minutes", "(%1%2:%3)", prefix, mins/60, QLatin1String(minutes));
else
item.text += i18nc("@info/plain prefix + hours:minutes", "%1%2:%3", prefix, mins/60, QLatin1String(minutes));
item.text += i18nc("@info prefix + hours:minutes", "%1%2:%3", prefix, mins/60, QLatin1String(minutes));
item.text += QLatin1Char(' ');
}
item.text += AlarmText::summary(*event);
......
......@@ -400,12 +400,12 @@ bool Undo::undo(int i, Undo::Type type, QWidget* parent, const QString& action)
KAlarm::displayKOrgUpdateError(parent, errcode, UndoItem::mRestoreWarningKorg, UndoItem::mRestoreWarningCount);
return true;
}
case UndoItem::ERR_NOT_FOUND: err = i18nc("@info/plain", "Alarm not found"); break;
case UndoItem::ERR_CREATE: err = i18nc("@info/plain", "Error recreating alarm"); break;
case UndoItem::ERR_TEMPLATE: err = i18nc("@info/plain", "Error recreating alarm template"); break;
case UndoItem::ERR_ARCHIVED: err = i18nc("@info/plain", "Cannot reactivate archived alarm"); break;
case UndoItem::ERR_PROG: err = i18nc("@info/plain", "Program error"); break;
default: err = i18nc("@info/plain", "Unknown error"); break;
case UndoItem::ERR_NOT_FOUND: err = i18nc("@info", "Alarm not found"); break;
case UndoItem::ERR_CREATE: err = i18nc("@info", "Error recreating alarm"); break;
case UndoItem::ERR_TEMPLATE: err = i18nc("@info", "Error recreating alarm template"); break;
case UndoItem::ERR_ARCHIVED: err = i18nc("@info", "Cannot reactivate archived alarm"); break;
case UndoItem::ERR_PROG: err = i18nc("@info", "Program error"); break;
default: err = i18nc("@info", "Unknown error"); break;
}
KAMessageBox::sorry(parent, i18nc("@info Undo-action: message", "%1: %2", action, err));
return false;
......@@ -645,16 +645,16 @@ QString UndoItem::addDeleteActionText(CalEvent::Type calendar, bool add)
{
case CalEvent::ACTIVE:
if (add)
return i18nc("@info/plain Action to create a new alarm", "New alarm");
return i18nc("@info Action to create a new alarm", "New alarm");
else
return i18nc("@info/plain Action to delete an alarm", "Delete alarm");
return i18nc("@info Action to delete an alarm", "Delete alarm");
case CalEvent::TEMPLATE:
if (add)
return i18nc("@info/plain Action to create a new alarm template", "New template");
return i18nc("@info Action to create a new alarm template", "New template");
else
return i18nc("@info/plain Action to delete an alarm template", "Delete template");
return i18nc("@info Action to delete an alarm template", "Delete template");
case CalEvent::ARCHIVED:
return i18nc("@info/plain", "Delete archived alarm");
return i18nc("@info", "Delete archived alarm");
default:
break;
}
......@@ -870,7 +870,7 @@ UndoItem* UndoAdds::createRedo(Undo::List* undos)
*/
QString UndoAdds::defaultActionText() const
{
return i18nc("@info/plain", "Create multiple alarms");
return i18nc("@info", "Create multiple alarms");
}
......@@ -965,9 +965,9 @@ QString UndoEdit::defaultActionText() const
switch (calendar())
{
case CalEvent::ACTIVE:
return i18nc("@info/plain Action to edit an alarm", "Edit alarm");
return i18nc("@info Action to edit an alarm", "Edit alarm");
case CalEvent::TEMPLATE:
return i18nc("@info/plain Action to edit an alarm template", "Edit template");
return i18nc("@info Action to edit an alarm template", "Edit template");
default:
break;
}
......@@ -1132,16 +1132,16 @@ QString UndoDeletes::defaultActionText() const
switch ((*mUndos)[i]->calendar())
{
case CalEvent::ACTIVE:
return i18nc("@info/plain", "Delete multiple alarms");
return i18nc("@info", "Delete multiple alarms");
case CalEvent::TEMPLATE:
return i18nc("@info/plain", "Delete multiple templates");
return i18nc("@info", "Delete multiple templates");
case CalEvent::ARCHIVED:
break; // check if they are ALL archived
default:
return QString();
}
}
return i18nc("@info/plain", "Delete multiple archived alarms");
return i18nc("@info", "Delete multiple archived alarms");
}
......@@ -1184,7 +1184,7 @@ UndoItem* UndoReactivate::createRedo(const KAEvent& event, RESOURCE_PARAM_TYPE r
*/
QString UndoReactivate::defaultActionText() const
{
return i18nc("@info/plain", "Reactivate alarm");
return i18nc("@info", "Reactivate alarm");
}
......@@ -1228,7 +1228,7 @@ UndoItem* UndoDeactivate::createRedo(const KAEvent& event, RESOURCE_PARAM_TYPE r
*/
QString UndoDeactivate::defaultActionText() const
{
return i18nc("@info/plain", "Reactivate alarm");
return i18nc("@info", "Reactivate alarm");
}
......@@ -1251,7 +1251,7 @@ UndoItem* UndoReactivates::createRedo(Undo::List* undos)
*/
QString UndoReactivates::defaultActionText() const
{
return i18nc("@info/plain", "Reactivate multiple alarms");
return i18nc("@info", "Reactivate multiple alarms");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment