Just wanted to let you know that ... We just fixed a bug in Tomboy where we didn't have a way to localize plugin names and descriptions. We now have that fixed and there are some new strings (see attached patch for specifics):
The fixed bug: http://bugzilla.gnome.org/show_bug.cgi?id=387579 Hope this helps! -Boyd
Index: Tomboy/PluginManager.cs =================================================================== --- Tomboy/PluginManager.cs (revision 911) +++ Tomboy/PluginManager.cs (working copy) @@ -40,6 +40,22 @@ string author; Type preferencesWidget; + + // The default constructor is, for some reason, needed or Tomboy will + // crash when attempting to read the plugin attributes. + public PluginInfoAttribute () + { + // Intentionally blank + } + + public PluginInfoAttribute (string name, string version, + string author, string description) + { + this.name = Catalog.GetString (name); + this.description = Catalog.GetString (description); + this.version = version; + this.author = author; + } public string Name { Index: Tomboy/Plugins/Backlinks.cs =================================================================== --- Tomboy/Plugins/Backlinks.cs (revision 911) +++ Tomboy/Plugins/Backlinks.cs (working copy) @@ -56,13 +56,9 @@ } [PluginInfo( - Name = "Backlinks Plugin", - Version = Defines.VERSION, - Author = "Boyd Timothy <[EMAIL PROTECTED]>", - Description = - "See which notes link to the one you're currently " + - "viewing.", - PreferencesWidget = null + "Backlinks Plugin", Defines.VERSION, + "Boyd Timothy <[EMAIL PROTECTED]>", + "See which notes link to the one you're currently viewing." )] public class BacklinksPlugin : NotePlugin Index: Tomboy/Plugins/Bugzilla.cs =================================================================== --- Tomboy/Plugins/Bugzilla.cs (revision 911) +++ Tomboy/Plugins/Bugzilla.cs (working copy) @@ -488,12 +488,11 @@ } [PluginInfo( - Name = "Bugzilla Plugin", Version = Defines.VERSION, - Author = "David Trowbridge <[EMAIL PROTECTED]>", - Description = - "Allows you to drag a Bugzilla URL from your browser " + - "directly into a tomboy note. The bug number is " + - "inserted as a link with a little bug icon next to it.", + "Bugzilla Plugin", Defines.VERSION, + "David Trowbridge <[EMAIL PROTECTED]>", + "Allows you to drag a Bugzilla URL from your browser " + + "directly into a tomboy note. The bug number is " + + "inserted as a link with a little bug icon next to it.", PreferencesWidget = typeof (BugzillaPreferences) )] Index: Tomboy/Plugins/Evolution.cs =================================================================== --- Tomboy/Plugins/Evolution.cs (revision 911) +++ Tomboy/Plugins/Evolution.cs (working copy) @@ -272,6 +272,12 @@ } } +[PluginInfo( + "Evolution Plugin", Defines.VERSION, + "Alex Gravely <[EMAIL PROTECTED]>", + "Allows you to drag an email from Evolution into a tomboy note. The " + + "message subject is added as a link in the note." + )] public class EvolutionPlugin : NotePlugin { // Used in the two-phase evolution drop handling. Index: Tomboy/Plugins/ExportToHTML.cs =================================================================== --- Tomboy/Plugins/ExportToHTML.cs (revision 911) +++ Tomboy/Plugins/ExportToHTML.cs (working copy) @@ -11,6 +11,11 @@ using Tomboy; +[PluginInfo( + "Export to HTML", Defines.VERSION, + "Alex Gravely <[EMAIL PROTECTED]>", + "Exports individual notes to HTML." + )] public class ExportToHTMLPlugin : NotePlugin { const string stylesheet_name = "ExportToHTML.xsl"; Index: Tomboy/Plugins/FixedWidth.cs =================================================================== --- Tomboy/Plugins/FixedWidth.cs (revision 911) +++ Tomboy/Plugins/FixedWidth.cs (working copy) @@ -67,6 +67,11 @@ } } +[PluginInfo( + "Fixed Width Plugin", Defines.VERSION, + "Ryan Lortie <[EMAIL PROTECTED]>", + "Adds fixed-width font style." + )] public class FixedWidthPlugin : NotePlugin { TextTag tag; Index: Tomboy/Plugins/GalagoPresence.cs =================================================================== --- Tomboy/Plugins/GalagoPresence.cs (revision 911) +++ Tomboy/Plugins/GalagoPresence.cs (working copy) @@ -255,6 +255,11 @@ } } +[PluginInfo( + "Galago Presence Plugin", Defines.VERSION, + "Alex Gravely <[EMAIL PROTECTED]>", + "See online presence of buddies mentioned in a note." + )] class GalagoPresencePlugin : NotePlugin { static GalagoManager galago; Index: Tomboy/Plugins/NoteOfTheDay.cs =================================================================== --- Tomboy/Plugins/NoteOfTheDay.cs (revision 911) +++ Tomboy/Plugins/NoteOfTheDay.cs (working copy) @@ -125,6 +125,12 @@ } } +[PluginInfo( + "Note of the Day", Defines.VERSION, + "Alex Gravely <[EMAIL PROTECTED]>", + "Automatically creates a \"Today\" note for easily jotting down " + + "daily thoughts." + )] public class NoteOfTheDayPlugin : NotePlugin { bool timeout_owner; Index: Tomboy/Plugins/PrintNotes.cs =================================================================== --- Tomboy/Plugins/PrintNotes.cs (revision 911) +++ Tomboy/Plugins/PrintNotes.cs (working copy) @@ -7,6 +7,11 @@ using Tomboy; +[PluginInfo( + "Print Plugin", Defines.VERSION, + "Alex Gravely <[EMAIL PROTECTED]>", + "Allows you to print a note." + )] public class PrintPlugin : NotePlugin { Gtk.ImageMenuItem item; Index: Tomboy/Plugins/StickyNoteImport.cs =================================================================== --- Tomboy/Plugins/StickyNoteImport.cs (revision 911) +++ Tomboy/Plugins/StickyNoteImport.cs (working copy) @@ -9,11 +9,9 @@ using Tomboy; [PluginInfo( - Name = "Sticky Notes Importer", - Author="Sandy Armstrong <[EMAIL PROTECTED]>", - Version="0.4.0", - Description="Import your notes from the Sticky Notes applet.", - PreferencesWidget = null + "Sticky Notes Importer", "0.4.0", + "Sandy Armstrong <[EMAIL PROTECTED]>", + "Import your notes from the Sticky Notes applet." )] public class StickyNoteImporter : NotePlugin { Index: configure.in =================================================================== --- configure.in (revision 911) +++ configure.in (working copy) @@ -173,6 +173,29 @@ AC_SUBST(NUNIT_LIBS) AC_PATH_PROG(NUNIT, nunit-console) +# +# Replace xgettext by our PluginInfo aware wrapper script +# +XGETTEXT_XCOMMENT=`echo 'Test("1")' |\ + xgettext -L C\# -k'Test:1,"XCOMMENT"' -o- - |\ + grep XCOMMENT` + +# Test to see if comments are supported in xgettext +# (known to work in 0.15 but not in 0.14.5) +if test "x#. XCOMMENT" = "x${XGETTEXT_XCOMMENT}"; then + XGETTEXT_PLUGIN_NAME=',"Plugin Name"' + XGETTEXT_PLUGIN_DESC=',"Plugin Description"' +else + XGETTEXT_PLUGIN_NAME= + XGETTEXT_PLUGIN_DESC= +fi + +AC_SUBST(XGETTEXT_PLUGIN_NAME) +AC_SUBST(XGETTEXT_PLUGIN_DESC) + +INTLTOOL_UPDATE="XGETTEXT=\$(top_builddir)/pot-update $INTLTOOL_UPDATE" +AC_CONFIG_FILES([pot-update], [chmod +x pot-update]) + AC_OUTPUT([ Makefile tomboy.spec Index: pot-update.in =================================================================== --- pot-update.in (revision 0) +++ pot-update.in (revision 0) @@ -0,0 +1,4 @@ +#!/bin/sh + [EMAIL PROTECTED]@ --keyword='PluginInfo:[EMAIL PROTECTED]@' "$@" [EMAIL PROTECTED]@ --keyword='PluginInfo:[EMAIL PROTECTED]@' "$@" --join-existing --sort-by-file
_______________________________________________ gnome-i18n mailing list gnome-i18n@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-i18n