directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r748626 - in /directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio: ./ actions/
Date Fri, 27 Feb 2009 18:20:22 GMT
Author: seelmann
Date: Fri Feb 27 18:20:21 2009
New Revision: 748626

URL: http://svn.apache.org/viewvc?rev=748626&view=rev
Log:
Translation of main menu

Modified:
    directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/Activator.java
    directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/ApplicationActionBarAdvisor.java
    directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchAdvisor.java
    directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/PluginConstants.java
    directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/actions/OpenFileAction.java
    directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/messages.properties
    directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/messages_de.properties
    directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/messages_fr.properties

Modified: directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/Activator.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/Activator.java?rev=748626&r1=748625&r2=748626&view=diff
==============================================================================
--- directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/Activator.java (original)
+++ directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/Activator.java Fri
Feb 27 18:20:21 2009
@@ -113,15 +113,15 @@
             try
             {
                 properties = new PropertyResourceBundle( FileLocator.openStream( this.getBundle(),
new Path(
-                    "plugin.properties" ), false ) );
+                    "plugin.properties" ), false ) ); //$NON-NLS-1$
             }
             catch ( IOException e )
             {
                 // We can't use the PLUGIN_ID constant since loading the plugin.properties
file has failed,
                 // So we're using a default plugin id.
                 getLog().log(
-                    new Status( Status.ERROR, "org.apache.directory.studio.rcp", Status.OK,
-                        "Unable to get the plugin properties.", e ) );
+                    new Status( Status.ERROR, "org.apache.directory.studio.rcp", Status.OK,
//$NON-NLS-1$
+                        "Unable to get the plugin properties.", e ) ); //$NON-NLS-1$
             }
         }
 

Modified: directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/ApplicationActionBarAdvisor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/ApplicationActionBarAdvisor.java?rev=748626&r1=748625&r2=748626&view=diff
==============================================================================
--- directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/ApplicationActionBarAdvisor.java
(original)
+++ directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/ApplicationActionBarAdvisor.java
Fri Feb 27 18:20:21 2009
@@ -58,7 +58,7 @@
  */
 public class ApplicationActionBarAdvisor extends ActionBarAdvisor
 {
-    private static final String OS_MACOSX = "macosx";
+    private static final String OS_MACOSX = "macosx"; //$NON-NLS-1$
     private OpenFileAction openFileAction;
     private IWorkbenchAction closeAction;
     private IWorkbenchAction closeAllAction;
@@ -131,7 +131,7 @@
 
         newAction = ActionFactory.NEW.create( window );
         register( newAction );
-        newAction.setText( "New..." );
+        newAction.setText( Messages.getString("ApplicationActionBarAdvisor.new") ); //$NON-NLS-1$
 
         newDropDownAction = new NewWizardDropDownAction( window );
         //        new NavigationHistoryAction( window, false );
@@ -272,11 +272,11 @@
         String os = Platform.getOS();
 
         // Creating menus
-        MenuManager fileMenu = new MenuManager( "&File", IWorkbenchActionConstants.M_FILE
); //$NON-NLS-1$
-        MenuManager editMenu = new MenuManager( "&Edit", IWorkbenchActionConstants.M_EDIT
); //$NON-NLS-1$
-        MenuManager navigateMenu = new MenuManager( "&Navigate", IWorkbenchActionConstants.M_NAVIGATE
); //$NON-NLS-1$
-        MenuManager windowMenu = new MenuManager( "&Window", IWorkbenchActionConstants.M_WINDOW
); //$NON-NLS-1$
-        MenuManager helpMenu = new MenuManager( "&Help", IWorkbenchActionConstants.M_HELP
); //$NON-NLS-1$
+        MenuManager fileMenu = new MenuManager( Messages.getString("ApplicationActionBarAdvisor.file"),
IWorkbenchActionConstants.M_FILE ); //$NON-NLS-1$
+        MenuManager editMenu = new MenuManager( Messages.getString("ApplicationActionBarAdvisor.edit"),
IWorkbenchActionConstants.M_EDIT ); //$NON-NLS-1$
+        MenuManager navigateMenu = new MenuManager( Messages.getString("ApplicationActionBarAdvisor.navigate"),
IWorkbenchActionConstants.M_NAVIGATE ); //$NON-NLS-1$
+        MenuManager windowMenu = new MenuManager( Messages.getString("ApplicationActionBarAdvisor.windows"),
IWorkbenchActionConstants.M_WINDOW ); //$NON-NLS-1$
+        MenuManager helpMenu = new MenuManager( Messages.getString("ApplicationActionBarAdvisor.help"),
IWorkbenchActionConstants.M_HELP ); //$NON-NLS-1$
         MenuManager hiddenMenu = new MenuManager( "Hidden", IWorkbenchActionConstants.M_HELP
); //$NON-NLS-1$
         hiddenMenu.setVisible( false );
 
@@ -346,10 +346,10 @@
         navigateMenu.add( forwardHistoryAction );
 
         // Window 
-        MenuManager perspectiveMenu = new MenuManager( "Open Perspective", "openPerspective"
);
+        MenuManager perspectiveMenu = new MenuManager( Messages.getString("ApplicationActionBarAdvisor.openPerspective"),
"openPerspective" ); //$NON-NLS-1$ //$NON-NLS-2$
         perspectiveMenu.add( perspectivesList );
         windowMenu.add( perspectiveMenu );
-        MenuManager viewMenu = new MenuManager( "Show View" );
+        MenuManager viewMenu = new MenuManager( Messages.getString("ApplicationActionBarAdvisor.showView")
); //$NON-NLS-1$
         viewMenu.add( viewsList );
         windowMenu.add( viewMenu );
         windowMenu.add( new Separator() );

Modified: directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchAdvisor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchAdvisor.java?rev=748626&r1=748625&r2=748626&view=diff
==============================================================================
--- directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchAdvisor.java
(original)
+++ directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchAdvisor.java
Fri Feb 27 18:20:21 2009
@@ -72,7 +72,7 @@
         TrayDialog.setDialogHelpAvailable( true );
         ImageRegistry reg = JFaceResources.getImageRegistry();
         ImageDescriptor helpImage = PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(
-            "IMGS_LCL_LINKTO_HELP" );
+            "IMGS_LCL_LINKTO_HELP" ); //$NON-NLS-1$
         reg.put( Dialog.DLG_IMG_HELP, helpImage );
     }
 
@@ -102,7 +102,7 @@
      */
     public String getInitialWindowPerspectiveId()
     {
-        return "org.apache.directory.studio.ldapbrowser.ui.perspective.BrowserPerspective";
+        return "org.apache.directory.studio.ldapbrowser.ui.perspective.BrowserPerspective";
//$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/PluginConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/PluginConstants.java?rev=748626&r1=748625&r2=748626&view=diff
==============================================================================
--- directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/PluginConstants.java
(original)
+++ directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/PluginConstants.java
Fri Feb 27 18:20:21 2009
@@ -31,22 +31,22 @@
 
     /** The Add Extension Action ID */
     public static final String ACTION_ADD_EXTENSION_ID = Activator.getDefault().getPluginProperties().getString(
-        "Action_AddExtension_id" );
+        "Action_AddExtension_id" ); //$NON-NLS-1$
 
     /** The Manage Configuration Action ID */
     public static final String ACTION_MANAGE_CONFIGURATION_ID = Activator.getDefault().getPluginProperties().getString(
-        "Action_ManageConfiguration_id" );
+        "Action_ManageConfiguration_id" ); //$NON-NLS-1$
 
     /** The Open File Action ID */
     public static final String ACTION_OPEN_FILE_ID = Activator.getDefault().getPluginProperties().getString(
-        "Action_OpenFile_id" );
+        "Action_OpenFile_id" ); //$NON-NLS-1$
 
     /** The Report A Bug Action ID */
     public static final String ACTION_REPORT_A_BUG_ID = Activator.getDefault().getPluginProperties().getString(
-        "Action_ReportABug_id" );
+        "Action_ReportABug_id" ); //$NON-NLS-1$
 
     /** The Update ActionID */
     public static final String ACTION_UPDATE_ID = Activator.getDefault().getPluginProperties().getString(
-        "Action_Update_id" );
+        "Action_Update_id" ); //$NON-NLS-1$
 
 }

Modified: directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/actions/OpenFileAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/actions/OpenFileAction.java?rev=748626&r1=748625&r2=748626&view=diff
==============================================================================
--- directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/actions/OpenFileAction.java
(original)
+++ directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/actions/OpenFileAction.java
Fri Feb 27 18:20:21 2009
@@ -122,7 +122,7 @@
     public void run()
     {
         FileDialog dialog = new FileDialog( window.getShell(), SWT.OPEN | SWT.MULTI );
-        dialog.setText( Messages.getString( "OpenFileAction.Open_File" ) );
+        dialog.setText( Messages.getString( "OpenFileAction.Open_File" ) ); //$NON-NLS-1$
         dialog.setFilterPath( filterPath );
         dialog.open();
         String[] names = dialog.getFileNames();
@@ -146,7 +146,7 @@
                     }
                     catch ( PartInitException e )
                     {
-                        MessageDialog.openError( window.getShell(), Messages.getString( "OpenFileAction.Error"
), e
+                        MessageDialog.openError( window.getShell(), Messages.getString( "OpenFileAction.Error"
), e //$NON-NLS-1$
                             .getMessage() );
                     }
                 }
@@ -163,10 +163,10 @@
             if ( numberOfFilesNotFound > 0 )
             {
                 String msg = MessageFormat.format( numberOfFilesNotFound == 1 ? Messages
-                    .getString( "OpenFileAction.File_not_found" ) : Messages
-                    .getString( "OpenFileAction.Files_not_found" ), new Object[]
+                    .getString( "OpenFileAction.File_not_found" ) : Messages //$NON-NLS-1$
+                    .getString( "OpenFileAction.Files_not_found" ), new Object[] //$NON-NLS-1$
                     { notFound.toString() } );
-                MessageDialog.openError( window.getShell(), Messages.getString( "OpenFileAction.Error"
), msg );
+                MessageDialog.openError( window.getShell(), Messages.getString( "OpenFileAction.Error"
), msg ); //$NON-NLS-1$
             }
         }
     }

Modified: directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/messages.properties?rev=748626&r1=748625&r2=748626&view=diff
==============================================================================
--- directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/messages.properties
(original)
+++ directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/messages.properties
Fri Feb 27 18:20:21 2009
@@ -23,6 +23,14 @@
 # Strings used by ApplicationActionBarAdvisor Class
 ApplicationActionBarAdvisor.Quit_LDAP_Studio=Quit Apache Directory Studio
 ApplicationActionBarAdvisor.Software_Updates=Software Updates
+ApplicationActionBarAdvisor.edit=&Edit
+ApplicationActionBarAdvisor.showView=Show View
+ApplicationActionBarAdvisor.windows=&Window
+ApplicationActionBarAdvisor.file=&File
+ApplicationActionBarAdvisor.help=&Help
+ApplicationActionBarAdvisor.navigate=&Navigate
+ApplicationActionBarAdvisor.new=New...
+ApplicationActionBarAdvisor.openPerspective=Open Perspective
 
 # Strings used by AddExtensionAction Class
 AddExtensionAction.Add_Extensions=Add Extensions

Modified: directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/messages_de.properties?rev=748626&r1=748625&r2=748626&view=diff
==============================================================================
--- directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/messages_de.properties
(original)
+++ directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/messages_de.properties
Fri Feb 27 18:20:21 2009
@@ -23,6 +23,14 @@
 # Strings used by ApplicationActionBarAdvisor Class
 ApplicationActionBarAdvisor.Quit_LDAP_Studio=Apache Directory Studio schliessen
 ApplicationActionBarAdvisor.Software_Updates=Software Updates
+ApplicationActionBarAdvisor.edit=&Bearbeiten
+ApplicationActionBarAdvisor.showView=Zeige Ansicht
+ApplicationActionBarAdvisor.windows=&Fenster
+ApplicationActionBarAdvisor.file=&Datei
+ApplicationActionBarAdvisor.help=&Hilfe
+ApplicationActionBarAdvisor.navigate=&Navigieren
+ApplicationActionBarAdvisor.new=Neu...
+ApplicationActionBarAdvisor.openPerspective=Öffne Perspektive
 
 # Strings used by AddExtensionAction Class
 AddExtensionAction.Add_Extensions=Erweiterungen hinzuf\u00FCgen

Modified: directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/messages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/messages_fr.properties?rev=748626&r1=748625&r2=748626&view=diff
==============================================================================
--- directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/messages_fr.properties
(original)
+++ directory/studio/trunk/rcp/src/main/java/org/apache/directory/studio/messages_fr.properties
Fri Feb 27 18:20:21 2009
@@ -23,6 +23,14 @@
 # Strings used by ApplicationActionBarAdvisor Class
 ApplicationActionBarAdvisor.Quit_LDAP_Studio=Quitter Apache Directory Studio
 ApplicationActionBarAdvisor.Software_Updates=Mises \u00E0 jour
+ApplicationActionBarAdvisor.edit=&Edit
+ApplicationActionBarAdvisor.showView=Show View
+ApplicationActionBarAdvisor.windows=&Window
+ApplicationActionBarAdvisor.file=&File
+ApplicationActionBarAdvisor.help=&Help
+ApplicationActionBarAdvisor.navigate=&Navigate
+ApplicationActionBarAdvisor.new=New...
+ApplicationActionBarAdvisor.openPerspective=Open Perspective
 
 # Strings used by AddExtensionAction Class
 AddExtensionAction.Add_Extensions=Ajoute des extensions



Mime
View raw message