From 9bac24da0f304b9a3561b016af374018653cfc2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 27 Sep 2011 06:40:49 +0200 Subject: [PATCH] Give Sone its own menu name. --- .../net/pterodactylus/sone/web/WebInterface.java | 6 +-- src/main/resources/i18n/sone.en.properties | 52 +++++++++++----------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 283e156..7f53419 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -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"); } /** diff --git a/src/main/resources/i18n/sone.en.properties b/src/main/resources/i18n/sone.en.properties index 75f9d41..4da0855 100644 --- a/src/main/resources/i18n/sone.en.properties +++ b/src/main/resources/i18n/sone.en.properties @@ -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 -- 2.7.4