From: <oms...@us...> - 2007-03-27 16:16:26
|
Revision: 1414 http://svn.sourceforge.net/azsmrc/?rev=1414&view=rev Author: omschaub Date: 2007-03-27 09:16:24 -0700 (Tue, 27 Mar 2007) Log Message: ----------- I18N for DMS's menu.. only about 6000 more of these to go.. UGH! Modified Paths: -------------- trunk/azsmrc/lbms/azsmrc/remote/client/internat/default.lang trunk/azsmrc/lbms/azsmrc/remote/client/swtgui/DownloadManagerShell.java Modified: trunk/azsmrc/lbms/azsmrc/remote/client/internat/default.lang =================================================================== --- trunk/azsmrc/lbms/azsmrc/remote/client/internat/default.lang 2007-03-27 15:26:47 UTC (rev 1413) +++ trunk/azsmrc/lbms/azsmrc/remote/client/internat/default.lang 2007-03-27 16:16:24 UTC (rev 1414) @@ -242,6 +242,33 @@ dialog.updateprogressdialog.status.1=Status: Downloading dialog.updateprogressdialog.status.2=Status: Installing dialog.updateprogressdialog.status.3=Status: Finished +downloadmanagershell.menu.help=&Help +downloadmanagershell.menu.help.about=&About +downloadmanagershell.menu.main=&Main +downloadmanagershell.menu.main.connect=&Connect to Server +downloadmanagershell.menu.main.exit=E&xit +downloadmanagershell.menu.main.exit.messagebox.message=Are you sure you wish to exit AzSMRC entirely? +downloadmanagershell.menu.main.exit.messagebox.title=Confirm Exit +downloadmanagershell.menu.main.logout=&Disconnect from Server +downloadmanagershell.menu.main.quickconnect=&Quickconnect +downloadmanagershell.menu.main.quickconnect.inputshell.text1=Please enter password for\nUser: +downloadmanagershell.menu.main.quickconnect.inputshell.text2=\nServer: +downloadmanagershell.menu.main.quickconnect.inputshell.title=Enter Password +downloadmanagershell.menu.plugins=&Plugins +downloadmanagershell.menu.remote=&Remote +downloadmanagershell.menu.remote.addbyfile=Send Torrent &File to ServerSend Torrent &File to Server +downloadmanagershell.menu.remote.addbyurl=Send Torrent &URL to Server +downloadmanagershell.menu.remote.restartserver=&Restart Server +downloadmanagershell.menu.remote.restartserver.messagebox.message=Are you sure you wish to restart the server? +downloadmanagershell.menu.remote.restartserver.messagebox.title=Restart Azureus +downloadmanagershell.menu.remote.serverdetails=&Server Details +downloadmanagershell.menu.remote.serverupdates=&Check for Updates for Server +downloadmanagershell.menu.tools=&Tools +downloadmanagershell.menu.tools.console=&Console +downloadmanagershell.menu.tools.mytracker=&My Tracker +downloadmanagershell.menu.tools.preferences=&Preferences +downloadmanagershell.menu.tools.scrapetorrent=&Scrape a torrent file +downloadmanagershell.menu.tools.update=Check for &Updates global.accept=Accept global.cancel=Cancel global.clear=Clear Modified: trunk/azsmrc/lbms/azsmrc/remote/client/swtgui/DownloadManagerShell.java =================================================================== --- trunk/azsmrc/lbms/azsmrc/remote/client/swtgui/DownloadManagerShell.java 2007-03-27 15:26:47 UTC (rev 1413) +++ trunk/azsmrc/lbms/azsmrc/remote/client/swtgui/DownloadManagerShell.java 2007-03-27 16:16:24 UTC (rev 1414) @@ -49,6 +49,7 @@ import lbms.azsmrc.remote.client.swtgui.container.DownloadContainer; import lbms.azsmrc.remote.client.swtgui.container.SeedContainer; import lbms.azsmrc.remote.client.swtgui.dialogs.ConnectionDialog; +import lbms.azsmrc.remote.client.swtgui.dialogs.DeskBar; import lbms.azsmrc.remote.client.swtgui.dialogs.InputShell; import lbms.azsmrc.remote.client.swtgui.dialogs.MoveDataDialog; import lbms.azsmrc.remote.client.swtgui.dialogs.NormalUserDialog; @@ -123,6 +124,8 @@ public class DownloadManagerShell { + + private static final String PFX = "downloadmanagershell."; private static final long DONATION_INTERVAL = 24*60*60*1000; @@ -231,34 +234,34 @@ DOWNLOAD_MANAGER_SHELL.setMenuBar (menuBar); MenuItem fileItem = new MenuItem(menuBar,SWT.CASCADE); - fileItem.setText("&Main"); + fileItem.setText(I18N.translate(PFX + "menu.main")); Menu fileSubmenu = new Menu (DOWNLOAD_MANAGER_SHELL, SWT.DROP_DOWN); fileItem.setMenu (fileSubmenu); MenuItem remoteItem = new MenuItem(menuBar,SWT.CASCADE); - remoteItem.setText("&Remote"); + remoteItem.setText(I18N.translate(PFX + "menu.remote")); Menu remoteSubmenu = new Menu (DOWNLOAD_MANAGER_SHELL, SWT.DROP_DOWN); remoteItem.setMenu (remoteSubmenu); MenuItem toolItem = new MenuItem(menuBar,SWT.CASCADE); - toolItem.setText("&Tools"); + toolItem.setText(I18N.translate(PFX + "menu.tools")); Menu toolSubmenu = new Menu (DOWNLOAD_MANAGER_SHELL, SWT.DROP_DOWN); toolItem.setMenu (toolSubmenu); MenuItem pluginItem = new MenuItem(menuBar, SWT.CASCADE); - pluginItem.setText("&Plugins"); + pluginItem.setText(I18N.translate(PFX + "menu.plugins")); Menu pluginSubmenu = new Menu(DOWNLOAD_MANAGER_SHELL, SWT.DROP_DOWN); pluginItem.setMenu(pluginSubmenu); MenuItem helpItem = new MenuItem(menuBar,SWT.CASCADE); - helpItem.setText("&Help"); + helpItem.setText(I18N.translate(PFX + "menu.help")); Menu helpSubmenu = new Menu (DOWNLOAD_MANAGER_SHELL, SWT.DROP_DOWN); helpItem.setMenu (helpSubmenu); @@ -268,7 +271,7 @@ //Login menuLogin = new MenuItem(fileSubmenu,SWT.PUSH); - menuLogin.setText("&Connect to Server"); + menuLogin.setText(I18N.translate(PFX + "menu.main.connect")); menuLogin.addListener(SWT.Selection, new Listener(){ public void handleEvent (Event e){ ConnectionDialog.open(RCMain.getRCMain().getDisplay()); @@ -277,7 +280,7 @@ //QuickConnect menuQuickconnect = new MenuItem(fileSubmenu,SWT.PUSH); - menuQuickconnect.setText("&Quickconnect"); + menuQuickconnect.setText(I18N.translate(PFX + "menu.main.quickconnect")); menuQuickconnect.addListener(SWT.Selection, new Listener(){ public void handleEvent (Event e){ Properties properties = RCMain.getRCMain().getProperties(); @@ -288,9 +291,11 @@ RCMain.getRCMain().connect(true); initializeConnection(); } else if (login.hasUsername() && login.hasHost()){ - InputShell is = new InputShell("Enter Password", "Please enter password for\nUser: "+ + InputShell is = new InputShell(I18N.translate(PFX + "menu.main.quickconnect.inputshell.title"), + I18N.translate(PFX + "menu.main.quickconnect.inputshell.text1") + " " + login.getUsername() + - "\nServer: " +login.getHost()); + I18N.translate(PFX + "menu.main.quickconnect.inputshell.text2") + " " + + login.getHost()); is.setIsPassword(true); String pw = is.open(); if(pw != null){ @@ -310,7 +315,7 @@ //Logout menuLogout = new MenuItem(fileSubmenu,SWT.PUSH); - menuLogout.setText("&Disconnect from Server"); + menuLogout.setText(I18N.translate(PFX + "menu.main.logout")); menuLogout.addListener(SWT.Selection, new Listener(){ public void handleEvent (Event e){ RCMain.getRCMain().disconnect(); @@ -323,15 +328,15 @@ //Exit MenuItem exitItem = new MenuItem (fileSubmenu, SWT.PUSH); - exitItem.setText ("E&xit\tCtrl+Q"); + exitItem.setText (I18N.translate(PFX + "menu.main.exit") + "\tCtrl+Q"); exitItem.setAccelerator (SWT.CTRL + 'Q'); exitItem.addListener (SWT.Selection, new Listener () { public void handleEvent (Event e) { boolean confirmExit = RCMain.getRCMain().getProperties().getPropertyAsBoolean("confirm.exit"); if(confirmExit){ MessageBox messageBox = new MessageBox(DOWNLOAD_MANAGER_SHELL, SWT.ICON_QUESTION | SWT.OK | SWT.CANCEL); - messageBox.setText("Confirm Exit"); - messageBox.setMessage("Are you sure you wish to exit AzSMRC entirely?"); + messageBox.setText(I18N.translate(PFX + "menu.main.exit.messagebox.title")); + messageBox.setMessage(I18N.translate(PFX + "menu.main.exit.messagebox.message")); int response = messageBox.open(); switch (response){ case SWT.OK: @@ -350,7 +355,7 @@ //Add by file menuAddByFile = new MenuItem(remoteSubmenu,SWT.PUSH); - menuAddByFile.setText("Send Torrent &File to Server"); + menuAddByFile.setText(I18N.translate(PFX + "menu.remote.addbyfile")); menuAddByFile.addListener(SWT.Selection, new Listener(){ public void handleEvent(Event e){ OpenByFileDialog.open(); @@ -360,7 +365,7 @@ //Add by URL menuAddbyURL = new MenuItem(remoteSubmenu,SWT.PUSH); - menuAddbyURL.setText("Send Torrent &URL to Server"); + menuAddbyURL.setText(I18N.translate(PFX + "menu.remote.addbyurl")); menuAddbyURL.addListener(SWT.Selection, new Listener(){ public void handleEvent(Event e){ OpenByURLDialog.open(); @@ -372,14 +377,14 @@ //Server Details menuServerDetails = new MenuItem(remoteSubmenu, SWT.PUSH); - menuServerDetails.setText("&Server Details"); + menuServerDetails.setText(I18N.translate(PFX + "menu.remote.serverdetails")); menuServerDetails.addListener(SWT.Selection,new Listener(){ public void handleEvent(Event e){ ServerDetailsTab.open(tabFolder); } }); menuServerUpdate = new MenuItem(remoteSubmenu, SWT.PUSH); - menuServerUpdate.setText("&Check for Updates for Server"); + menuServerUpdate.setText(I18N.translate(PFX + "menu.remote.serverupdates")); menuServerUpdate.addListener(SWT.Selection,new Listener(){ public void handleEvent(Event e){ ServerUpdateDialog.open(); @@ -393,12 +398,12 @@ //Restart Server menuRestartAzureus = new MenuItem(remoteSubmenu,SWT.PUSH); - menuRestartAzureus.setText("&Restart Server"); + menuRestartAzureus.setText(I18N.translate(PFX + "menu.remote.restartserver")); menuRestartAzureus.addListener(SWT.Selection, new Listener(){ public void handleEvent(Event e){ MessageBox messageBox = new MessageBox(DOWNLOAD_MANAGER_SHELL, SWT.ICON_QUESTION | SWT.OK | SWT.CANCEL); - messageBox.setText("Restart Azureus"); - messageBox.setMessage("Are you sure?"); + messageBox.setText(I18N.translate(PFX + "menu.remote.restartserver.messagebox.title")); + messageBox.setMessage(I18N.translate(PFX + "menu.remote.restartserver.messagebox.message")); int response = messageBox.open(); switch (response){ case SWT.OK: @@ -414,7 +419,7 @@ //-----Tools Submenu menuMyShares = new MenuItem(toolSubmenu, SWT.PUSH); - menuMyShares.setText("&My Tracker"); + menuMyShares.setText(I18N.translate(PFX + "menu.tools.mytracker")); menuMyShares.addListener(SWT.Selection, new Listener(){ public void handleEvent(Event e){ MyTracker.open(tabFolder); @@ -424,7 +429,7 @@ MenuItem menuScraper = new MenuItem(toolSubmenu,SWT.PUSH); - menuScraper.setText("&Scrape a torrent file"); + menuScraper.setText(I18N.translate(PFX + "menu.tools.scrapetorrent")); menuScraper.addListener(SWT.Selection, new Listener(){ public void handleEvent(Event e){ ScrapeDialog.open(); @@ -433,7 +438,7 @@ MenuItem menuConsole = new MenuItem(toolSubmenu,SWT.PUSH); - menuConsole.setText("&Console\tCtrl+C"); + menuConsole.setText(I18N.translate(PFX + "menu.tools.console") + "\tCtrl+C"); menuConsole.setAccelerator(SWT.CTRL + 'C'); menuConsole.addListener(SWT.Selection, new Listener(){ public void handleEvent(Event e){ @@ -443,7 +448,7 @@ MenuItem menuPrefs = new MenuItem(toolSubmenu,SWT.PUSH); - menuPrefs.setText("&Preferences"); + menuPrefs.setText(I18N.translate(PFX + "menu.tools.preferences")); menuPrefs.addListener(SWT.Selection, new Listener(){ public void handleEvent(Event e) { PreferencesTab.open(tabFolder); @@ -454,7 +459,7 @@ new MenuItem(toolSubmenu,SWT.SEPARATOR); MenuItem menuUpdate = new MenuItem(toolSubmenu,SWT.PUSH); - menuUpdate.setText("Check for &Updates"); + menuUpdate.setText(I18N.translate(PFX + "menu.tools.update")); menuUpdate.addListener(SWT.Selection, new Listener(){ public void handleEvent(Event e) { RCMain.getRCMain().getUpdater().checkForUpdates(RCMain.getRCMain().getProperties().getPropertyAsBoolean("update.beta")); @@ -480,7 +485,7 @@ //-----Help Submenu MenuItem menuAbout = new MenuItem(helpSubmenu,SWT.PUSH); - menuAbout.setText("&About"); + menuAbout.setText(I18N.translate(PFX + "menu.help.about")); menuAbout.addListener(SWT.Selection, new Listener(){ public void handleEvent (Event e){ @@ -562,6 +567,8 @@ public void handleEvent (Event e){ if(RCMain.getRCMain().connected()) RCMain.getRCMain().getClient().getDownloadManager().update(true); + StartupWizard.open(); + } }); @@ -2685,7 +2692,7 @@ /** * Sets the Toolbar Icons for Queue Stop and Remove - * + * * @param bQueue true if Queue enabled * @param bStop true if Stop enabled * @param bRemove true if Remove enabled This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |