[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: [calligra] plan/libs/models: Change "qtundo-format" to
From: Alexander Potashev <aspotashev () gmail ! com>
Date: 2011-12-22 20:09:19
Message-ID: 20111222200919.93C3DA60A6 () git ! kde ! org
[Download RAW message or body]
Git commit 3ad31f5e9b87671c315a51c317632b04e95559ff by Alexander Potashev.
Committed on 22/12/2011 at 21:08.
Pushed by aspotashev into branch 'master'.
Change "qtundo-format" to "(qtundo-format)" in context strings
CCMAIL: kde-i18n-doc@kde.org
CCMAIL: danders@get2net.dk
M +2 -2 plan/libs/models/kptaccountsmodel.cpp
M +12 -12 plan/libs/models/kptresourcemodel.cpp
http://commits.kde.org/calligra/3ad31f5e9b87671c315a51c317632b04e95559ff
diff --git a/plan/libs/models/kptaccountsmodel.cpp \
b/plan/libs/models/kptaccountsmodel.cpp index e338aef..1a78533 100644
--- a/plan/libs/models/kptaccountsmodel.cpp
+++ b/plan/libs/models/kptaccountsmodel.cpp
@@ -327,7 +327,7 @@ bool AccountItemModel::setName( Account *a, const QVariant \
&value, int role ) switch ( role ) {
case Qt::EditRole:
if ( value.toString() != a->name() ) {
- emit executeCommand( new RenameAccountCmd( a, value.toString(), \
i18nc( "qtundo-format", "Modify account name" ) ) ); + emit \
executeCommand( new RenameAccountCmd( a, value.toString(), i18nc( "(qtundo-format)", \
"Modify account name" ) ) ); }
return true;
case Qt::CheckStateRole: {
@@ -357,7 +357,7 @@ bool AccountItemModel::setDescription( Account *a, const QVariant \
&value, int ro switch ( role ) {
case Qt::EditRole:
if ( value.toString() != a->description() ) {
- emit executeCommand( new ModifyAccountDescriptionCmd( a, \
value.toString(), i18nc( "qtundo-format", "Modify account description" ) ) ); + \
emit executeCommand( new ModifyAccountDescriptionCmd( a, value.toString(), i18nc( \
"(qtundo-format)", "Modify account description" ) ) ); }
return true;
}
diff --git a/plan/libs/models/kptresourcemodel.cpp \
b/plan/libs/models/kptresourcemodel.cpp index 989f4e8..148fcf1 100644
--- a/plan/libs/models/kptresourcemodel.cpp
+++ b/plan/libs/models/kptresourcemodel.cpp
@@ -806,7 +806,7 @@ bool ResourceItemModel::setName( Resource *res, const QVariant \
&value, int role if ( value.toString() == res->name() ) {
return false;
}
- emit executeCommand( new ModifyResourceNameCmd( res, value.toString(), \
i18nc( "qtundo-format", "Modify resource name" ) ) ); + emit \
executeCommand( new ModifyResourceNameCmd( res, value.toString(), i18nc( \
"(qtundo-format)", "Modify resource name" ) ) ); return true;
}
return false;
@@ -819,7 +819,7 @@ bool ResourceItemModel::setName( ResourceGroup *res, const \
QVariant &value, int if ( value.toString() == res->name() ) {
return false;
}
- emit executeCommand( new ModifyResourceGroupNameCmd( res, \
value.toString(), i18nc( "qtundo-format", "Modify resourcegroup name" ) ) ); + \
emit executeCommand( new ModifyResourceGroupNameCmd( res, value.toString(), i18nc( \
"(qtundo-format)", "Modify resourcegroup name" ) ) ); return true;
}
return false;
@@ -860,7 +860,7 @@ bool ResourceItemModel::setType( Resource *res, const QVariant \
&value, int role if ( v == res->type() ) {
return false;
}
- emit executeCommand( new ModifyResourceTypeCmd( res, v, i18nc( \
"qtundo-format", "Modify resource type" ) ) ); + emit executeCommand( new \
ModifyResourceTypeCmd( res, v, i18nc( "(qtundo-format)", "Modify resource type" ) ) \
); return true;
}
}
@@ -881,7 +881,7 @@ bool ResourceItemModel::setType( ResourceGroup *res, const \
QVariant &value, int if ( v == res->type() ) {
return false;
}
- emit executeCommand( new ModifyResourceGroupTypeCmd( res, v, i18nc( \
"qtundo-format", "Modify resourcegroup type" ) ) ); + emit executeCommand( \
new ModifyResourceGroupTypeCmd( res, v, i18nc( "(qtundo-format)", "Modify \
resourcegroup type" ) ) ); return true;
}
}
@@ -895,7 +895,7 @@ bool ResourceItemModel::setInitials( Resource *res, const \
QVariant &value, int r if ( value.toString() == res->initials() ) {
return false;
}
- emit executeCommand( new ModifyResourceInitialsCmd( res, \
value.toString(), i18nc( "qtundo-format", "Modify resource initials" ) ) ); + \
emit executeCommand( new ModifyResourceInitialsCmd( res, value.toString(), i18nc( \
"(qtundo-format)", "Modify resource initials" ) ) ); return true;
}
return false;
@@ -908,7 +908,7 @@ bool ResourceItemModel::setEmail( Resource *res, const QVariant \
&value, int role if ( value.toString() == res->email() ) {
return false;
}
- emit executeCommand( new ModifyResourceEmailCmd( res, value.toString(), \
i18nc( "qtundo-format", "Modify resource email" ) ) ); + emit \
executeCommand( new ModifyResourceEmailCmd( res, value.toString(), i18nc( \
"(qtundo-format)", "Modify resource email" ) ) ); return true;
}
return false;
@@ -929,7 +929,7 @@ bool ResourceItemModel::setCalendar( Resource *res, const \
QVariant &value, int r if ( c == res->calendar( true ) ) {
return false;
}
- emit executeCommand( new ModifyResourceCalendarCmd( res, c, i18nc( \
"qtundo-format", "Modify resource calendar" ) ) ); + emit executeCommand( \
new ModifyResourceCalendarCmd( res, c, i18nc( "(qtundo-format)", "Modify resource \
calendar" ) ) ); return true;
}
}
@@ -944,7 +944,7 @@ bool ResourceItemModel::setUnits( Resource *res, const QVariant \
&value, int role if ( value.toInt() == res->units() ) {
return false;
}
- emit executeCommand( new ModifyResourceUnitsCmd( res, value.toInt(), \
i18nc( "qtundo-format", "Modify resource available units" ) ) ); + emit \
executeCommand( new ModifyResourceUnitsCmd( res, value.toInt(), i18nc( \
"(qtundo-format)", "Modify resource available units" ) ) ); return true;
}
return false;
@@ -957,7 +957,7 @@ bool ResourceItemModel::setAvailableFrom( Resource *res, const \
QVariant &value, if ( value.toDateTime() == res->availableFrom() ) {
return false;
}
- emit executeCommand( new ModifyResourceAvailableFromCmd( res, \
value.toDateTime(), i18nc( "qtundo-format", "Modify resource available from" ) ) ); + \
emit executeCommand( new ModifyResourceAvailableFromCmd( res, value.toDateTime(), \
i18nc( "(qtundo-format)", "Modify resource available from" ) ) ); return true;
}
return false;
@@ -970,7 +970,7 @@ bool ResourceItemModel::setAvailableUntil( Resource *res, const \
QVariant &value, if ( value.toDateTime() == res->availableUntil() ) {
return false;
}
- emit executeCommand( new ModifyResourceAvailableUntilCmd( res, \
value.toDateTime(), i18nc( "qtundo-format", "Modify resource available until" ) ) ); \
+ emit executeCommand( new ModifyResourceAvailableUntilCmd( res, \
value.toDateTime(), i18nc( "(qtundo-format)", "Modify resource available until" ) ) \
); return true;
}
return false;
@@ -983,7 +983,7 @@ bool ResourceItemModel::setNormalRate( Resource *res, const \
QVariant &value, int if ( value.toDouble() == res->normalRate() ) {
return false;
}
- emit executeCommand( new ModifyResourceNormalRateCmd( res, \
value.toDouble(), i18nc( "qtundo-format", "Modify resource normal rate" ) ) ); + \
emit executeCommand( new ModifyResourceNormalRateCmd( res, value.toDouble(), i18nc( \
"(qtundo-format)", "Modify resource normal rate" ) ) ); return true;
}
return false;
@@ -996,7 +996,7 @@ bool ResourceItemModel::setOvertimeRate( Resource *res, const \
QVariant &value, i if ( value.toDouble() == res->overtimeRate() ) {
return false;
}
- emit executeCommand( new ModifyResourceOvertimeRateCmd( res, \
value.toDouble(), i18nc( "qtundo-format", "Modify resource overtime rate" ) ) ); + \
emit executeCommand( new ModifyResourceOvertimeRateCmd( res, value.toDouble(), i18nc( \
"(qtundo-format)", "Modify resource overtime rate" ) ) ); return true;
}
return false;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic