[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: make_it_cool: kdeedu/kig/kig
From: Dominique Devriese <devriese () kde ! org>
Date: 2003-03-02 16:36:30
[Download RAW message or body]
CVS commit by domi:
fix the i18n issues in the RemoveObjectsCommand and AddObjectsCommand by having it no \
longer use Object::baseTypeName()
M +7 -7 kig_commands.cpp 1.7.2.3
--- kdeedu/kig/kig/kig_commands.cpp #1.7.2.2:1.7.2.3
@@ -26,9 +25,10 @@
#include "../modes/mode.h"
+#include "../objects/object_imp.h"
AddObjectsCommand::AddObjectsCommand(KigDocument* inDoc, const Objects& inOs)
: KigCommand( inDoc,
inOs.size() == 1 ?
- i18n("Add a %1").arg(inOs.front()->translatedBaseTypeName()) :
+ ObjectImp::addAStatement( inOs.front()->imp()->id() ) :
i18n( "Add %1 objects" ).arg( os.size() ) ),
undone(true),
@@ -38,5 +38,5 @@ AddObjectsCommand::AddObjectsCommand(Kig
AddObjectsCommand::AddObjectsCommand( KigDocument* inDoc, Object* o )
- : KigCommand ( inDoc, i18n( "Add a %1" ).arg( o->translatedBaseTypeName() ) ),
+ : KigCommand ( inDoc, ObjectImp::addAStatement( o->imp()->id() ) ),
undone( true )
{
@@ -77,5 +77,5 @@ RemoveObjectsCommand::RemoveObjectsComma
: KigCommand(inDoc,
inOs.size() == 1 ?
- i18n("Remove a %1").arg(inOs.front()->translatedBaseTypeName()) :
+ ObjectImp::removeAStatement( inOs.front()->imp()->id() ) :
i18n( "Remove %1 objects" ).arg( inOs.size()) ),
undone( false ),
@@ -90,5 +90,5 @@ RemoveObjectsCommand::RemoveObjectsComma
RemoveObjectsCommand::RemoveObjectsCommand( KigDocument* inDoc, Object* o)
- : KigCommand( inDoc, i18n("Remove a %1").arg(o->translatedBaseTypeName()) ),
+ : KigCommand( inDoc, ObjectImp::removeAStatement( o->imp()->id() ) ),
undone( false )
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic