Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Tray.java: Added localization for french tray icon command - although this can probably also done better than with if statements. (preferably also from the locales file)
mikeworksdb65ada467ef
diff --git a/source/de/anomic/yacy/Tray.java b/source/de/anomic/yacy/Tray.javaindex 43c066d53..16367fb34 100644--- a/source/de/anomic/yacy/Tray.java+++ b/source/de/anomic/yacy/Tray.java@@ -52,6 +52,7 @@ public final class Tray {private static boolean isIntegrated; // browser integrationprivate static boolean isShown = false;final private static boolean deutsch = System.getProperty("user.language","").equals("de");+ final private static boolean french = System.getProperty("user.language","").equals("fr");public static String trayLabel;@@ -96,8 +97,12 @@ public final class Tray {if(isIntegrated) return menu;// YaCy Search- if(deutsch) label = "YaCy Suche";- else label = "YaCy Search";+ if (deutsch)+ label = "YaCy Suche";+ else if (french)+ label = "YaCy Recherche";+ else+ label = "YaCy Search";menuItem = new MenuItem(label);menuItem.addActionListener(new ActionListener() {public void actionPerformed(final ActionEvent e) {@@ -107,8 +112,12 @@ public final class Tray {menu.add(menuItem);// Compare YaCy- if(deutsch) label = "Vergleichs-Suche";- else label = "Compare YaCy";+ if (deutsch)+ label = "Vergleichs-Suche";+ else if (french)+ label = "Comparer YaCy";+ else+ label = "Compare YaCy";menuItem = new MenuItem(label);menuItem.addActionListener(new ActionListener() {public void actionPerformed(final ActionEvent e) {@@ -118,8 +127,12 @@ public final class Tray {menu.add(menuItem);// Peer Administration- if(deutsch) label = "Peer Administration";- else label = "Peer Administration";+ if (deutsch)+ label = "Peer Administration";+ else if (french)+ label = "Peer Administration";+ else+ label = "Peer Administration";menuItem = new MenuItem(label);menuItem.addActionListener(new ActionListener() {public void actionPerformed(final ActionEvent e) {@@ -132,8 +145,12 @@ public final class Tray {menu.addSeparator();// Quit- if(deutsch) label = "Beenden";- else label = "Shutdown";+ if(deutsch)+ label = "YaCy Beenden";+ else if(french)+ label = "Arr�t YaCy";+ else+ label = "Shutdown YaCy";menuItem = new MenuItem(label);menuItem.addActionListener(new ActionListener() {public void actionPerformed(final ActionEvent e) {@@ -148,8 +165,12 @@ public final class Tray {protected static void trayClickAction(){ //doubleclickif (lockBrowserPopup) {String label;- if(deutsch) label = "Bitte warten bis YaCy gestartet ist.";- else label = "Please wait until YaCy is started.";+ if (deutsch)+ label = "Bitte warten bis YaCy gestartet ist.";+ else if (french)+ label = "S'il vous pla�t attendre jusqu'� YaCy est d�marr�.";+ else+ label = "Please wait until YaCy is started.";ti.displayBalloonMessage("YaCy",label);} else {openBrowser("");