[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    [kdepimlibs] akonadi/calendar: Give context to the message strings "%1 creation", "%1 modification"
From:       Allen Winter <winter () kde ! org>
Date:       2013-04-14 23:50:53
Message-ID: 20130414235053.AD50DA605E () git ! kde ! org
[Download RAW message or body]

Git commit a70dafaef5550e352d753fc593b0c6762d80c1e2 by Allen Winter.
Committed on 15/04/2013 at 01:48.
Pushed by winterz into branch 'master'.

Give context to the message strings "%1 creation", "%1 modification"
and "%1 deletion".  In these cases, the %1 refers to the incidence type.

examples: "event modification" or "todo creation"

CCMAIL: kde-i18n-doc@kde.org

M  +6    -6    akonadi/calendar/history_p.cpp

http://commits.kde.org/kdepimlibs/a70dafaef5550e352d753fc593b0c6762d80c1e2

diff --git a/akonadi/calendar/history_p.cpp b/akonadi/calendar/history_p.cpp
index 7766325..c822cc3 100644
--- a/akonadi/calendar/history_p.cpp
+++ b/akonadi/calendar/history_p.cpp
@@ -89,8 +89,8 @@ CreationEntry::CreationEntry( const Akonadi::Item &item, const \
QString &descript  Q_ASSERT( mItems.count() == 1 );
   const Incidence::Ptr incidence = \
mItems.first().payload<KCalCore::Incidence::Ptr>();  if ( mDescription.isEmpty() ) {
-    mDescription = i18n( "%1 creation",
-                         KCalUtils::Stringify::incidenceType( incidence->type() ) );
+    mDescription = i18nc( "%1 is event, todo or journal", "%1 creation",
+                          KCalUtils::Stringify::incidenceType( incidence->type() ) \
);  }
   connect( mChanger, \
SIGNAL(createFinished(int,Akonadi::Item,Akonadi::IncidenceChanger::ResultCode,QString)),
                
             SLOT(onCreateFinished(int,Akonadi::Item,Akonadi::IncidenceChanger::ResultCode,QString)) \
); @@ -161,8 +161,8 @@ DeletionEntry::DeletionEntry( const Akonadi::Item::List \
&items, const QString &d  {
   const Incidence::Ptr incidence = \
items.first().payload<KCalCore::Incidence::Ptr>();  if ( mDescription.isEmpty() ) {
-    mDescription = i18n( "%1 deletion",
-                         KCalUtils::Stringify::incidenceType( incidence->type() ) );
+    mDescription = i18nc( "%1 is event, todo or journal", "%1 deletion",
+                          KCalUtils::Stringify::incidenceType( incidence->type() ) \
);  }
   connect( mChanger, \
SIGNAL(createFinished(int,Akonadi::Item,Akonadi::IncidenceChanger::ResultCode,QString)),
                
             SLOT(onCreateFinished(int,Akonadi::Item,Akonadi::IncidenceChanger::ResultCode,QString)) \
); @@ -246,8 +246,8 @@ ModificationEntry::ModificationEntry( const Akonadi::Item \
&item,  {
   const Incidence::Ptr incidence = \
mItems.first().payload<KCalCore::Incidence::Ptr>();  if ( mDescription.isEmpty() ) {
-    mDescription =  i18n( "%1 modification",
-                          KCalUtils::Stringify::incidenceType( incidence->type() ) \
); +    mDescription =  i18nc( "%1 is event, todo or journal", "%1 modification",
+                           KCalUtils::Stringify::incidenceType( incidence->type() ) \
);  }
 
   connect( mChanger, \
SIGNAL(modifyFinished(int,Akonadi::Item,Akonadi::IncidenceChanger::ResultCode,QString)),



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic