directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1432061 - in /directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui: CommonUIUtils.java filesystem/PathEditorInput.java messages.properties messages_de.properties messages_fr.properties
Date Fri, 11 Jan 2013 14:28:23 GMT
Author: pamarcelot
Date: Fri Jan 11 14:28:22 2013
New Revision: 1432061

URL: http://svn.apache.org/viewvc?rev=1432061&view=rev
Log:
Externalized and translated strings.

Modified:
    directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIUtils.java
    directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/PathEditorInput.java
    directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/messages.properties
    directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/messages_de.properties
    directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/messages_fr.properties

Modified: directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIUtils.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIUtils.java?rev=1432061&r1=1432060&r2=1432061&view=diff
==============================================================================
--- directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIUtils.java
(original)
+++ directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIUtils.java
Fri Jan 11 14:28:22 2013
@@ -44,7 +44,7 @@ public class CommonUIUtils
      */
     public static void openErrorDialog( String message )
     {
-        openErrorDialog( "Error!", message );
+        openErrorDialog( Messages.getString("CommonUIUtils.Error"), message ); //$NON-NLS-1$
     }
 
 
@@ -73,7 +73,7 @@ public class CommonUIUtils
      */
     public static void openInformationDialog( String message )
     {
-        openInformationDialog( "Information", message );
+        openInformationDialog( Messages.getString("CommonUIUtils.Information"), message );
//$NON-NLS-1$
     }
 
 
@@ -102,7 +102,7 @@ public class CommonUIUtils
      */
     public static void openWarningDialog( String message )
     {
-        openWarningDialog( "Information", message );
+        openWarningDialog( Messages.getString("CommonUIUtils.Warning"), message ); //$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/PathEditorInput.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/PathEditorInput.java?rev=1432061&r1=1432060&r2=1432061&view=diff
==============================================================================
--- directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/PathEditorInput.java
(original)
+++ directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/filesystem/PathEditorInput.java
Fri Jan 11 14:28:22 2013
@@ -99,7 +99,7 @@ public class PathEditorInput implements 
             return path.toFile().getName();
         }
 
-        return "";
+        return ""; //$NON-NLS-1$
     }
 
 
@@ -150,7 +150,7 @@ public class PathEditorInput implements 
             return path.makeRelative().toOSString();
         }
 
-        return "";
+        return ""; //$NON-NLS-1$
     }
 
 

Modified: directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/messages.properties?rev=1432061&r1=1432060&r2=1432061&view=diff
==============================================================================
--- directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/messages.properties
(original)
+++ directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/messages.properties
Fri Jan 11 14:28:22 2013
@@ -17,5 +17,9 @@
 
 CommonUIPlugin.UnableGetPluginProperties=Unable to get the plugin properties.
 
+CommonUIUtils.Error=Error\!
+CommonUIUtils.Information=Information
+CommonUIUtils.Warning=Warning
+
 StudioPreferencePage.Description=Expand the tree to edit preferences for a specific feature.
 StudioPreferencePage.Title=Apache Directory Studio

Modified: directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/messages_de.properties?rev=1432061&r1=1432060&r2=1432061&view=diff
==============================================================================
--- directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/messages_de.properties
(original)
+++ directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/messages_de.properties
Fri Jan 11 14:28:22 2013
@@ -14,4 +14,11 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
+
+CommonUIPlugin.UnableGetPluginProperties=Die Plugin Eigenschaften k\u00F6nnen nicht geladen
werden.
+
+CommonUIUtils.Error=Fehler\!
+CommonUIUtils.Information=Information
+CommonUIUtils.Warning=Warnung
+
 StudioPreferencePage.Description=Men\u00FC aufklappen, um Benutzervorgaben f\u00FCr weitere
Funktionen zu bearbeiten.

Modified: directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/messages_fr.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/messages_fr.properties?rev=1432061&r1=1432060&r2=1432061&view=diff
==============================================================================
--- directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/messages_fr.properties
(original)
+++ directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/messages_fr.properties
Fri Jan 11 14:28:22 2013
@@ -14,4 +14,11 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
+
+CommonUIPlugin.UnableGetPluginProperties=Unable to get the plugin properties.
+
+CommonUIUtils.Error=Erreur \!
+CommonUIUtils.Information=Information
+CommonUIUtils.Warning=Attention
+
 StudioPreferencePage.Description=D\u00E9plier l'arbre pour modifier les pr\u00E9f\u00E9rences
d'une fonctionnalit\u00E9 particuli\u00E8re.



Mime
View raw message