[tomboy] Update strings referencing ~/.tomboy* (bug #597139)



commit aa085d09b0c22bb98cc319abe777f10c9b446800
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date:   Sun Nov 15 22:59:48 2009 -0800

    Update strings referencing ~/.tomboy* (bug #597139)

 Tomboy/Note.cs              |   16 +++++++++++-----
 Tomboy/PreferencesDialog.cs |    8 ++++++--
 2 files changed, 17 insertions(+), 7 deletions(-)
---
diff --git a/Tomboy/Note.cs b/Tomboy/Note.cs
index 117d9cb..e936c2f 100644
--- a/Tomboy/Note.cs
+++ b/Tomboy/Note.cs
@@ -1488,6 +1488,16 @@ namespace Tomboy
 		
 		public static void ShowIOErrorDialog (Gtk.Window parent)
 		{
+			string errorMsg = Catalog.GetString ("An error occurred while saving your notes. " +
+			                                     "Please check that you have sufficient disk " +
+			                                     "space, and that you have appropriate rights " +
+			                                     "on {0}. Error details can be found in " +
+			                                     "{0}.");
+			string logPath = System.IO.Path.Combine (Services.NativeApplication.LogDirectory,
+			                                         "tomboy.log");
+			errorMsg = String.Format (errorMsg,
+			                          Services.NativeApplication.DataDirectory,
+			                          logPath);
 			HIGMessageDialog dialog =
 				new HIGMessageDialog (
 				                      parent,
@@ -1495,11 +1505,7 @@ namespace Tomboy
 				                      Gtk.MessageType.Error,
 				                      Gtk.ButtonsType.Ok,
 				                      Catalog.GetString ("Error saving note data."),
-				                      Catalog.GetString ("An error occurred while saving your notes. " +
-				                                         "Please check that you have sufficient disk " +
-				                                         "space, and that you have appropriate rights " +
-				                                         "on ~/.tomboy. Error details can be found in " +
-				                                         "~/.tomboy.log."));
+				                      errorMsg);
 			dialog.Run ();
 			dialog.Destroy ();
 		}
diff --git a/Tomboy/PreferencesDialog.cs b/Tomboy/PreferencesDialog.cs
index a0493b2..e2bd3a0 100644
--- a/Tomboy/PreferencesDialog.cs
+++ b/Tomboy/PreferencesDialog.cs
@@ -1183,11 +1183,15 @@ namespace Tomboy
 
 				// Give the user a visual letting them know that connecting
 				// was successful.
-				if (errorMsg == null)
+				if (errorMsg == null) {
 					errorMsg = Catalog.GetString ("Sorry, but something went wrong.  " +
 					                              "Please check your information and " +
-					                              "try again.  The ~/.tomboy.log might " +
+					                              "try again.  The {0} might " +
 					                              "be useful too.");
+					string logPath = System.IO.Path.Combine (Services.NativeApplication.LogDirectory,
+					                                         "tomboy.log");
+					errorMsg = String.Format (errorMsg, logPath);
+				}
 				dialog =
 				        new HIGMessageDialog (this,
 				                              Gtk.DialogFlags.Modal,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]