[rkward-cvs] rkward/rkward/core rkmodificationtracker.cpp,1.5,1.6

Thomas Friedrichsmeier tfry at users.sourceforge.net
Mon Feb 27 17:25:44 UTC 2006


Update of /cvsroot/rkward/rkward/rkward/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22135/rkward/core

Modified Files:
	rkmodificationtracker.cpp 
Log Message:
Use .arg instead of concatenated strings in i18n

Index: rkmodificationtracker.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/core/rkmodificationtracker.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** rkmodificationtracker.cpp	17 Nov 2004 20:31:50 -0000	1.5
--- rkmodificationtracker.cpp	27 Feb 2006 17:25:42 -0000	1.6
***************
*** 45,49 ****
  	if (removed_in_workspace) {
  		if (ed) {
! 			if (KMessageBox::questionYesNo (0, i18n ("The object '") + object->getFullName () + i18n ("' was removed from workspace, but is currently opened for editing. Do you want to restore it?"), i18n ("Restore object?")) == KMessageBox::Yes) {
  				if (removed_in_workspace) ed->restoreObject (object);
  				return;
--- 45,49 ----
  	if (removed_in_workspace) {
  		if (ed) {
! 			if (KMessageBox::questionYesNo (0, i18n ("The object '%1' was removed from workspace, but is currently opened for editing. Do you want to restore it?").arg (object->getFullName ()), i18n ("Restore object?")) == KMessageBox::Yes) {
  				if (removed_in_workspace) ed->restoreObject (object);
  				return;
***************
*** 52,61 ****
  	} else {
  		if (editor || ed) {
! 			if (KMessageBox::questionYesNo (0, i18n ("Do you really want to remove the object '") + object->getFullName () + i18n ("'? The object is currently opened for editing, it will be removed in the editor, too. There's no way to get it back."), i18n ("Remove object?")) != KMessageBox::Yes) {
  				return;
  			}
  		} else {
  			// TODO: check for other editors editing this object
! 			if (KMessageBox::questionYesNo (0, i18n ("Do you really want to remove the object '") + object->getFullName () + i18n ("'? There's no way to get it back."), i18n ("Remove object?")) != KMessageBox::Yes) {
  				return;
  			}
--- 52,61 ----
  	} else {
  		if (editor || ed) {
! 			if (KMessageBox::questionYesNo (0, i18n ("Do you really want to remove the object '%1'? The object is currently opened for editing, it will be removed in the editor, too. There's no way to get it back.").arg (object->getFullName ()), i18n ("Remove object?")) != KMessageBox::Yes) {
  				return;
  			}
  		} else {
  			// TODO: check for other editors editing this object
! 			if (KMessageBox::questionYesNo (0, i18n ("Do you really want to remove the object '%1'? There's no way to get it back.").arg (object->getFullName ()), i18n ("Remove object?")) != KMessageBox::Yes) {
  				return;
  			}





More information about the rkward-tracker mailing list