Give Sone its own menu name.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 27 Sep 2011 04:40:49 +0000 (06:40 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 27 Sep 2011 04:40:49 +0000 (06:40 +0200)
src/main/java/net/pterodactylus/sone/web/WebInterface.java
src/main/resources/i18n/sone.en.properties

index 283e156..7f53419 100644 (file)
@@ -681,11 +681,11 @@ public class WebInterface implements CoreListener {
                pageToadlets.add(pageToadletFactory.createPageToadlet(new MoveProfileFieldAjaxPage(this)));
 
                ToadletContainer toadletContainer = sonePlugin.pluginRespirator().getToadletContainer();
-               toadletContainer.getPageMaker().addNavigationCategory("/Sone/index.html", "Navigation.Menu.Name", "Navigation.Menu.Tooltip", sonePlugin);
+               toadletContainer.getPageMaker().addNavigationCategory("/Sone/index.html", "Navigation.Menu.Sone.Name", "Navigation.Menu.Sone.Tooltip", sonePlugin);
                for (PageToadlet toadlet : pageToadlets) {
                        String menuName = toadlet.getMenuName();
                        if (menuName != null) {
-                               toadletContainer.register(toadlet, "Navigation.Menu.Name", toadlet.path(), true, "Navigation.Menu.Item." + menuName + ".Name", "Navigation.Menu.Item." + menuName + ".Tooltip", false, toadlet);
+                               toadletContainer.register(toadlet, "Navigation.Menu.Sone.Name", toadlet.path(), true, "Navigation.Menu.Sone.Item." + menuName + ".Name", "Navigation.Menu.Sone.Item." + menuName + ".Tooltip", false, toadlet);
                        } else {
                                toadletContainer.register(toadlet, null, toadlet.path(), true, false);
                        }
@@ -700,7 +700,7 @@ public class WebInterface implements CoreListener {
                for (PageToadlet pageToadlet : pageToadlets) {
                        toadletContainer.unregister(pageToadlet);
                }
-               toadletContainer.getPageMaker().removeNavigationCategory("Navigation.Menu.Name");
+               toadletContainer.getPageMaker().removeNavigationCategory("Navigation.Menu.Sone.Name");
        }
 
        /**
index 75f9d41..4da0855 100644 (file)
@@ -1,29 +1,29 @@
-Navigation.Menu.Name=Sone
-Navigation.Menu.Tooltip=Freenet Social Network Plugin
-Navigation.Menu.Item.Login.Name=Login
-Navigation.Menu.Item.Login.Tooltip=Login to your Sone
-Navigation.Menu.Item.Index.Name=Your Sone
-Navigation.Menu.Item.Index.Tooltip=Show your Sone
-Navigation.Menu.Item.CreateSone.Name=Create Sone
-Navigation.Menu.Item.CreateSone.Tooltip=Create a new Sone
-Navigation.Menu.Item.KnownSones.Name=Known Sones
-Navigation.Menu.Item.KnownSones.Tooltip=Shows all known Sones
-Navigation.Menu.Item.Bookmarks.Name=Bookmarks
-Navigation.Menu.Item.Bookmarks.Tooltip=Show bookmarked posts
-Navigation.Menu.Item.EditProfile.Name=Edit Profile
-Navigation.Menu.Item.EditProfile.Tooltip=Edit the Profile of your Sone
-Navigation.Menu.Item.ImageBrowser.Name=Images
-Navigation.Menu.Item.ImageBrowser.Tooltip=Manages your Images
-Navigation.Menu.Item.DeleteSone.Name=Delete Sone
-Navigation.Menu.Item.DeleteSone.Tooltip=Deletes the current Sone
-Navigation.Menu.Item.Logout.Name=Logout
-Navigation.Menu.Item.Logout.Tooltip=Logs you out of the current Sone
-Navigation.Menu.Item.Options.Name=Options
-Navigation.Menu.Item.Options.Tooltip=Options for the Sone plugin
-Navigation.Menu.Item.Rescue.Name=Rescue
-Navigation.Menu.Item.Rescue.Tooltip=Rescue Sone
-Navigation.Menu.Item.About.Name=About
-Navigation.Menu.Item.About.Tooltip=Information about Sone
+Navigation.Menu.Sone.Name=Sone
+Navigation.Menu.Sone.Tooltip=Freenet Social Network Plugin
+Navigation.Menu.Sone.Item.Login.Name=Login
+Navigation.Menu.Sone.Item.Login.Tooltip=Login to your Sone
+Navigation.Menu.Sone.Item.Index.Name=Your Sone
+Navigation.Menu.Sone.Item.Index.Tooltip=Show your Sone
+Navigation.Menu.Sone.Item.CreateSone.Name=Create Sone
+Navigation.Menu.Sone.Item.CreateSone.Tooltip=Create a new Sone
+Navigation.Menu.Sone.Item.KnownSones.Name=Known Sones
+Navigation.Menu.Sone.Item.KnownSones.Tooltip=Shows all known Sones
+Navigation.Menu.Sone.Item.Bookmarks.Name=Bookmarks
+Navigation.Menu.Sone.Item.Bookmarks.Tooltip=Show bookmarked posts
+Navigation.Menu.Sone.Item.EditProfile.Name=Edit Profile
+Navigation.Menu.Sone.Item.EditProfile.Tooltip=Edit the Profile of your Sone
+Navigation.Menu.Sone.Item.ImageBrowser.Name=Images
+Navigation.Menu.Sone.Item.ImageBrowser.Tooltip=Manages your Images
+Navigation.Menu.Sone.Item.DeleteSone.Name=Delete Sone
+Navigation.Menu.Sone.Item.DeleteSone.Tooltip=Deletes the current Sone
+Navigation.Menu.Sone.Item.Logout.Name=Logout
+Navigation.Menu.Sone.Item.Logout.Tooltip=Logs you out of the current Sone
+Navigation.Menu.Sone.Item.Options.Name=Options
+Navigation.Menu.Sone.Item.Options.Tooltip=Options for the Sone plugin
+Navigation.Menu.Sone.Item.Rescue.Name=Rescue
+Navigation.Menu.Sone.Item.Rescue.Tooltip=Rescue Sone
+Navigation.Menu.Sone.Item.About.Name=About
+Navigation.Menu.Sone.Item.About.Tooltip=Information about Sone
 
 Page.About.Title=About - Sone
 Page.About.Page.Title=About