[rkward-cvs] rkward/rkward/agents rksaveagent.cpp,1.4,1.5

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


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

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

Index: rksaveagent.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/agents/rksaveagent.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** rksaveagent.cpp	29 Sep 2005 16:02:50 -0000	1.4
--- rksaveagent.cpp	27 Feb 2006 17:25:42 -0000	1.5
***************
*** 68,72 ****
  		if (when_done != DoNothing) {
  			int res;
! 			res = KMessageBox::warningYesNoCancel (0, i18n ("Saving to file '") + save_url.path () + i18n ("' failed. What do you want to do?"), i18n ("Save failed"), KGuiItem (i18n ("Try saving with a different filename")), KGuiItem (i18n ("Saving failed")));
  			if (res == KMessageBox::Yes) {
  				if (askURL ()) RKGlobals::rInterface ()->issueCommand (new RCommand ("save.image (\"" + save_url.path () + "\")", RCommand::App, QString::null, this), save_chain);
--- 68,72 ----
  		if (when_done != DoNothing) {
  			int res;
! 			res = KMessageBox::warningYesNoCancel (0, i18n ("Saving to file '%1' failed. What do you want to do?").arg (save_url.path ()), i18n ("Save failed"), KGuiItem (i18n ("Try saving with a different filename")), KGuiItem (i18n ("Saving failed")));
  			if (res == KMessageBox::Yes) {
  				if (askURL ()) RKGlobals::rInterface ()->issueCommand (new RCommand ("save.image (\"" + save_url.path () + "\")", RCommand::App, QString::null, this), save_chain);
***************
*** 81,85 ****
  			}
  		} else {
! 			if (KMessageBox::warningYesNo (0, i18n ("Saving to file '") + save_url.path () + i18n ("' failed. Do you want to try saving to a different filename?")) == KMessageBox::Yes) {
  				if (askURL ()) RKGlobals::rInterface ()->issueCommand (new RCommand ("save.image (\"" + save_url.path () + "\")", RCommand::App, QString::null, this), save_chain);
  				return;
--- 81,85 ----
  			}
  		} else {
! 			if (KMessageBox::warningYesNo (0, i18n ("Saving to file '%1' failed. Do you want to try saving to a different filename?").arg (save_url.path ())) == KMessageBox::Yes) {
  				if (askURL ()) RKGlobals::rInterface ()->issueCommand (new RCommand ("save.image (\"" + save_url.path () + "\")", RCommand::App, QString::null, this), save_chain);
  				return;





More information about the rkward-tracker mailing list