[tomboy/xdg-migration2: 14/16] Actual content for migration note.
- From: Sanford Armstrong <sharm src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tomboy/xdg-migration2: 14/16] Actual content for migration note.
- Date: Mon, 24 Aug 2009 02:01:51 +0000 (UTC)
commit f1964a50b8d63507a1c23721803fb6834bfef56b
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date: Sun Aug 23 09:13:50 2009 -0700
Actual content for migration note.
Tomboy/NoteManager.cs | 42 ++++++++++++++++++++++++------------------
1 files changed, 24 insertions(+), 18 deletions(-)
---
diff --git a/Tomboy/NoteManager.cs b/Tomboy/NoteManager.cs
index bbd9d7e..91c5dc5 100644
--- a/Tomboy/NoteManager.cs
+++ b/Tomboy/NoteManager.cs
@@ -108,25 +108,31 @@ public NoteManager (string directory) :
if (migration_needed) {
// Create migration notification note
// TODO: Finish content, perform duplicate title check...
+ // Translators: {0}, {1}, {2}, and {3} are replaced by directory paths and should not be changed
+ string migration_note_content_template = Catalog.GetString (
+@"<note-content version=""0.1"">Your Notes Have Moved!
+
+In the latest version of Tomboy, your note files have moved. You have probably never cared where your notes are stored, and if you still don't care, please go ahead and <bold>delete this note</bold>. :-)
+
+Your old note directory is still safe and sound at <link:url>{0}</link:url> . If you go back to an older version of Tomboy, it will look for notes there.
+
+But we've copied your notes and configuration info into two new directories, which will be used from now on:
+
+<list><list-item dir=""ltr"">Notes can now be found at <link:url>{1}</link:url>
+</list-item><list-item dir=""ltr"">Configuration is at <link:url>{2}</link:url>
+</list-item><list-item dir=""ltr"">You can install add-ins at <link:url>{3}</link:url>
+</list-item><list-item dir=""ltr"">Log files can be found at <link:url>{4}</link:url></list-item></list>
+
+Ciao!</note-content>");
string migration_note_content =
- Catalog.GetString ("<note-content>" +
- "Your Notes Have Moved\n\n" +
- "<bold>Welcome to Tomboy!</bold>\n\n" +
- "Use this \"Start Here\" note to begin organizing " +
- "your ideas and thoughts.\n\n" +
- "You can create new notes to hold your ideas by " +
- "selecting the \"Create New Note\" item from the " +
- "Tomboy Notes menu in your GNOME Panel. " +
- "Your note will be saved automatically.\n\n" +
- "Then organize the notes you create by linking " +
- "related notes and ideas together!\n\n" +
- "We've created a note called " +
- "<link:internal>Using Links in Tomboy</link:internal>. " +
- "Notice how each time we type <link:internal>Using " +
- "Links in Tomboy</link:internal> it automatically " +
- "gets underlined? Click on the link to open the note." +
- "</note-content>");
- Note migration_note = Create (Catalog.GetString ("Your Notes Have Moved"),
+ Catalog.GetString (string.Format (migration_note_content_template,
+ old_notes_dir + Path.DirectorySeparatorChar,
+ notes_dir + Path.DirectorySeparatorChar,
+ conf_dir + Path.DirectorySeparatorChar,
+ Path.Combine (conf_dir, "addins") + Path.DirectorySeparatorChar,
+ Services.NativeApplication.LogDirectory + Path.DirectorySeparatorChar));
+ // Translators: This string must match the first line of the migration note template string above
+ Note migration_note = Create (Catalog.GetString ("Your Notes Have Moved!"),
migration_note_content);
migration_note.QueueSave (ChangeType.ContentChanged);
migration_note.Window.Show ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]