Commit 739dc945 authored by Bertjan Broeksema's avatar Bertjan Broeksema

krazy2 - i18n fixes

svn path=/branches/work/kdepim_kcalcore/incidenceeditors/incidenceeditor-ng/; revision=1158291
parent 3c094a46
......@@ -383,7 +383,7 @@ EditorFreeBusy::EditorFreeBusy( int spacing, QWidget *parent )
connect( splitter, SIGNAL( splitterMoved(int,int) ), SLOT( splitterMoved() ) );
mLeftView = new QTreeWidget;
mLeftView->setHeader( new GanttHeaderView );
mLeftView->setHeaderLabel( i18n("Attendee") );
mLeftView->setHeaderLabel( i18nc( "@label:listbox A list showing attendees", "Attendee") );
mLeftView->setRootIsDecorated( false );
mLeftView->setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
mLeftView->setContextMenuPolicy( Qt::CustomContextMenu );
......
......@@ -193,9 +193,10 @@ void EventOrTodoDialogPrivate::handleAlarmCountChange( int newCount )
{
QString tabText;
if ( newCount > 0 ) {
tabText = i18n( "Reminder (%1)", newCount );
tabText = i18nc( "@title:tab Tab to configure the reminders of an event or todo",
"Reminder (%1)", newCount );
} else {
tabText = i18n( "Reminder" );
tabText = i18nc( "@title:tab Tab to configure the reminders of an event or todo", "Reminder" );
}
mUi->mTabWidget->setTabText( 2, tabText );
......@@ -203,7 +204,8 @@ void EventOrTodoDialogPrivate::handleAlarmCountChange( int newCount )
void EventOrTodoDialogPrivate::handleRecurrenceChange( int type )
{
QString tabText = i18n( "Rec&urrence" );
QString tabText = i18nc( "@title:tab Tab to configure the recurrence of an event or todo",
"Rec&urrence" );
// Keep this numbers in sync with the items in mUi->mRecurrenceTypeCombo. I
// tried adding an enum to IncidenceRecurrence but for whatever reason I could
......@@ -213,16 +215,16 @@ void EventOrTodoDialogPrivate::handleRecurrenceChange( int type )
case 0: // None
break;
case 1: // Daily
tabText += i18nc( "Daily recurring event, capital first letter only", " (D)" );
tabText += i18nc( "@title:tab Daily recurring event, capital first letter only", " (D)" );
break;
case 2: // Weekly
tabText += i18nc( "Weekly recurring event, capital first letter only", " (W)" );
tabText += i18nc( "@title:tab Weekly recurring event, capital first letter only", " (W)" );
break;
case 3: // Monthly
tabText += i18nc( "Monthly recurring event, capital first letter only", " (M)" );
tabText += i18nc( "@title:tab Monthly recurring event, capital first letter only", " (M)" );
break;
case 4: // Yearly
tabText += i18nc( "Yearly recurring event, capital first letter only", " (Y)" );
tabText += i18nc( "@title:tab Yearly recurring event, capital first letter only", " (Y)" );
break;
}
......@@ -305,18 +307,18 @@ void EventOrTodoDialogPrivate::storeTemplatesInConfig( const QStringList &templa
void EventOrTodoDialogPrivate::updateAttachmentCount( int newCount )
{
if ( newCount > 0 ) {
mUi->mTabWidget->setTabText( 4, i18n( "Attac&hments (%1)", newCount ) );
mUi->mTabWidget->setTabText( 4, i18nc( "@title:tab Tab to modify attachements of an event or todo", "Attac&hments (%1)", newCount ) );
} else {
mUi->mTabWidget->setTabText( 4, i18n( "Attac&hments" ) );
mUi->mTabWidget->setTabText( 4, i18nc( "@title:tab Tab to modify attachements of an event or todo", "Attac&hments" ) );
}
}
void EventOrTodoDialogPrivate::updateAttendeeCount( int newCount )
{
if ( newCount > 0 ) {
mUi->mTabWidget->setTabText( 1, i18n( "&Attendees (%1)", newCount ) );
mUi->mTabWidget->setTabText( 1, i18nc( "@title:tab Tab to modify attendees of an event or todo", "&Attendees (%1)", newCount ) );
} else {
mUi->mTabWidget->setTabText( 1, i18n( "&Attendees" ) );
mUi->mTabWidget->setTabText( 1, i18nc( "@title:tab Tab to modify attendees of an event or todo", "&Attendees" ) );
}
}
......@@ -338,7 +340,7 @@ void EventOrTodoDialogPrivate::handleItemSaveFail( Akonadi::EditorItemManager::S
{
Q_Q( EventOrTodoDialog );
const QString message = i18n( "Unable to store the incidence in the calendar. Try again?\n\n Reason: %1", errorMessage );
const QString message = i18nc( "@info", "Unable to store the incidence in the calendar. Try again?\n\n Reason: %1", errorMessage );
if ( KMessageBox::warningYesNo( q, message ) == KMessageBox::Yes ) {
mItemManager->save();
} else {
......
......@@ -134,7 +134,7 @@ QString FreePeriodModel::day(int index) const
KCalCore::Period period = mPeriodList.at( index );
const KCalendarSystem *calSys = KGlobal::locale()->calendar();
const QDate startDate = period.start().date();
return ki18nc( "Day of the week name, example: Monday,", "%1," ).subs( calSys->weekDayName( startDate.dayOfWeek(), KCalendarSystem::LongDayName ) ).toString();
return ki18nc( "@label Day of the week name, example: Monday,", "%1," ).subs( calSys->weekDayName( startDate.dayOfWeek(), KCalendarSystem::LongDayName ) ).toString();
}
QString FreePeriodModel::date(int index) const
......@@ -146,7 +146,7 @@ QString FreePeriodModel::date(int index) const
const QString startTime = KGlobal::locale()->formatTime( period.start().time() );
const QString endTime = KGlobal::locale()->formatTime( period.end().time() );
const QString longMonthName = calSys->monthName( startDate );
return ki18nc( "A time period duration. It is preceded/followed (based on the orientation) by the name of the week, see the message above. example: 12 June, 8:00am to 9:30am",
return ki18nc( "@label A time period duration. It is preceded/followed (based on the orientation) by the name of the week, see the message above. example: 12 June, 8:00am to 9:30am",
"%1 %2, %3 to %4").subs( startDate.day() )
.subs( longMonthName )
.subs( startTime )
......@@ -165,7 +165,7 @@ QString FreePeriodModel::stringify( int index ) const
const QString longMonthName = calSys->monthName( startDate );
const QString dayofWeek = calSys->weekDayName( startDate.dayOfWeek(), KCalendarSystem::LongDayName );
// TODO i18n, ping chusslove
return ki18nc( "A time period duration. KLocale is used to format the components. example: Monday, 12 June, 8:00am to 9:30am",
return ki18nc( "@label A time period duration. KLocale is used to format the components. example: Monday, 12 June, 8:00am to 9:30am",
"%1, %2 %3, %4 to %5").subs( dayofWeek )
.subs( startDate.day() )
.subs( longMonthName )
......
......@@ -347,11 +347,14 @@ void IncidenceAttendee::slotUpdateConflictLabel( int count )
{
if( count > 0 ) {
mUi->mSolveButton->setEnabled( true );
QString label( i18np( "%1 scheduling conflict", "%1 scheduling conflicts", count ) );
QString label( i18ncp( "@label Shows the number of scheduling conflicts",
"%1 scheduling conflict",
"%1 scheduling conflicts", count ) );
mUi->mConflictsLabel->setText( label );
} else {
mUi->mSolveButton->setEnabled( false );
QString label( i18n( "No scheduling conflicts" ) );
QString label( i18nc( "@label There are no scheduling conflicts.",
"No scheduling conflicts" ) );
mUi->mConflictsLabel->setText( label );
}
}
......
......@@ -56,7 +56,7 @@ void IncidenceCompletionPriority::Private::sliderValueChanged( int value )
mOrigPercentCompleted = -1;
}
mUi->mCompletedLabel->setText( i18n( "%1% completed", value ) );
mUi->mCompletedLabel->setText( i18nc( "@label:slider Sets the current completion percentage of a task","%1% completed", value ) );
slotSetDirty();
}
......
......@@ -182,7 +182,7 @@ void SchedulingDialog::slotRowSelectionChanged( const QModelIndex& current, cons
const QDate startDate = period.start().date();
const KCalendarSystem *calSys = KGlobal::locale()->calendar();
const QString dayLabel = ki18nc( "Day of week followed by day of the month, then the month. example: Monday, 12 June",
const QString dayLabel = ki18nc( "@label Day of week followed by day of the month, then the month. example: Monday, 12 June",
"%1, %2 %3" )
.subs( calSys->weekDayName( startDate.dayOfWeek(), KCalendarSystem::LongDayName ) )
.subs( startDate.day() )
......@@ -200,7 +200,7 @@ void SchedulingDialog::slotRowSelectionChanged( const QModelIndex& current, cons
void SchedulingDialog::slotSetEndTimeLabel( const QTime& startTime )
{
const QTime endTime = startTime.addSecs( mDuration );
const QString endTimeLabel = ki18nc( "This is a suffix following a time selecting widget. Example: [timeedit] to 10:00am",
const QString endTimeLabel = ki18nc( "@label This is a suffix following a time selecting widget. Example: [timeedit] to 10:00am",
"to %1" )
.subs( KGlobal::locale()->formatTime( endTime ) ).toString();
mMoveEndTimeLabel->setText( endTimeLabel );
......
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