[tomboy] Replace string concat with variable substitution to make translations possible.



commit 6fe31d2ffd0eb2b62b202a1178d49c1500caa84d
Author: Tommi Vainikainen <thv iki fi>
Date:   Tue Aug 30 23:14:52 2011 +0300

    Replace string concat with variable substitution to make translations possible.
    
    http://bugzilla.gnome.org/show_bug.cgi?id=654883

 Tomboy/ExportAllApplicationAddin.cs |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/Tomboy/ExportAllApplicationAddin.cs b/Tomboy/ExportAllApplicationAddin.cs
index f53acec..00623b9 100644
--- a/Tomboy/ExportAllApplicationAddin.cs
+++ b/Tomboy/ExportAllApplicationAddin.cs
@@ -50,13 +50,13 @@ namespace Tomboy
 
 				am.MainWindowActions.Add (new Gtk.ActionEntry [] {
 					new Gtk.ActionEntry ("NoteExportAll"+export_file_suffix+"Action", null,
-					Catalog.GetString ("Export All Notes to "+export_type_pretty_name), null,
-					Catalog.GetString ("Start exporting notes to "+export_type_pretty_name), null)
+					String.Format (Catalog.GetString ("Export All Notes to {0}"), export_type_pretty_name), null,
+					String.Format (Catalog.GetString ("Start exporting notes to {0}"), export_type_pretty_name), null)
 				});
 				am.MainWindowActions.Add (new Gtk.ActionEntry [] {
 					new Gtk.ActionEntry ("NoteExportNotebook"+export_file_suffix+"Action", null,
-					Catalog.GetString ("Export selected notebook to "+export_type_pretty_name), null,
-					Catalog.GetString ("Start exporting notebook to "+export_type_pretty_name), null)
+					String.Format (Catalog.GetString ("Export selected notebook to {0}"), export_type_pretty_name), null,
+					String.Format (Catalog.GetString ("Start exporting notebook to {0}"), export_type_pretty_name), null)
 				});
 
 				action_group = new Gtk.ActionGroup ("Export");
@@ -69,12 +69,12 @@ namespace Tomboy
 					Catalog.GetString ("Export your notes."), null),
 
 					new Gtk.ActionEntry ("ExportAllNotes"+export_file_suffix+"Action", null,
-						Catalog.GetString ("Export All Notes To "+export_type_pretty_name), null, null,
+						String.Format (Catalog.GetString ("Export All Notes To {0}"), export_type_pretty_name), null, null,
 						delegate {
 							am ["NoteExportAll"+export_file_suffix+"Action"].Activate ();
 					}),
 					new Gtk.ActionEntry ("ExportNotebook"+export_file_suffix+"Action", null,
-						Catalog.GetString ("Export Selected Notebook To "+export_type_pretty_name), null, null,
+						String.Format (Catalog.GetString ("Export Selected Notebook To {0}"), export_type_pretty_name), null, null,
 						delegate {
 							am ["NoteExportNotebook"+export_file_suffix+"Action"].Activate ();
 					})
@@ -150,7 +150,7 @@ namespace Tomboy
 
 			//Opens the folder selection dialog
 			ExportMultipleDialog dialog =
-			    new ExportMultipleDialog ("All Notes " + export_type_pretty_name +" Export", export_type_pretty_name);
+			    new ExportMultipleDialog (String.Format (Catalog.GetString ("All Notes {0} Export"), export_type_pretty_name), export_type_pretty_name);
 			int response = dialog.Run ();
 			if (response != (int) Gtk.ResponseType.Ok) {
 				Logger.Debug("User clicked cancel.");



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