Author: sflanigan
Date: 2009-05-25 00:43:26 -0400 (Mon, 25 May 2009)
New Revision: 15473
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/.settings/
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/.settings/org.eclipse.jdt.core.prefs
trunk/as/plugins/org.jboss.ide.eclipse.as.doc.user/.settings/
trunk/as/plugins/org.jboss.ide.eclipse.as.doc.user/.settings/org.eclipse.jdt.core.prefs
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIPlugin.java
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/DirectoryLibraryPage.java
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ejb3/JBossEJB3LibrariesPage.java
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ejb3/JBossSelectionPage.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3557 Externalise English Strings
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/.settings/org.eclipse.jdt.core.prefs 2009-05-25
04:43:26 UTC (rev 15473)
@@ -0,0 +1 @@
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIPlugin.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIPlugin.java 2009-05-25
04:42:59 UTC (rev 15472)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ClasspathUIPlugin.java 2009-05-25
04:43:26 UTC (rev 15473)
@@ -74,9 +74,9 @@
public static void alert(String string) {
MessageDialog dialog = new
MessageDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
- "EJB3 Tools - Alert",
Display.getDefault().getSystemImage(SWT.ICON_INFORMATION), string,
+ Messages.ClasspathUIPlugin_ALERT,
Display.getDefault().getSystemImage(SWT.ICON_INFORMATION), string,
MessageDialog.INFORMATION, new String[]
- {"OK",}, 0);
+ {Messages.ClasspathUIPlugin_OK,}, 0);
dialog.setBlockOnOpen(true);
dialog.open();
@@ -84,9 +84,9 @@
public static void error(String string) {
MessageDialog dialog = new
MessageDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
- "EJB3 Tools - Error", Display.getDefault().getSystemImage(SWT.ICON_ERROR),
string, MessageDialog.ERROR,
+ Messages.ClasspathUIPlugin_ERROR,
Display.getDefault().getSystemImage(SWT.ICON_ERROR), string, MessageDialog.ERROR,
new String[]
- {"OK",}, 0);
+ {Messages.ClasspathUIPlugin_OK,}, 0);
dialog.setBlockOnOpen(true);
dialog.open();
@@ -94,9 +94,9 @@
public static void warn(String string) {
MessageDialog dialog = new
MessageDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
- "EJB3 Tools - Warning",
Display.getDefault().getSystemImage(SWT.ICON_WARNING), string,
+ Messages.ClasspathUIPlugin_WARNING,
Display.getDefault().getSystemImage(SWT.ICON_WARNING), string,
MessageDialog.WARNING, new String[]
- {"OK",}, 0);
+ {Messages.ClasspathUIPlugin_OK,}, 0);
dialog.setBlockOnOpen(true);
dialog.open();
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/DirectoryLibraryPage.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/DirectoryLibraryPage.java 2009-05-25
04:42:59 UTC (rev 15472)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/DirectoryLibraryPage.java 2009-05-25
04:43:26 UTC (rev 15473)
@@ -26,8 +26,8 @@
public DirectoryLibraryPage() {
super("DirectoryLibrariesContainerPage"); //$NON-NLS-1$
- setTitle("Directory library");
- setDescription("A classpath container that automatically adds all .jar and .zip
files found in a directory to the classpath.");
+ setTitle(Messages.DirectoryLibraryPage_Title);
+ setDescription(Messages.DirectoryLibraryPage_Description);
}
public IClasspathEntry getSelection() {
@@ -61,7 +61,7 @@
composite.setLayout(new GridLayout(2, false));
final Label label = new Label(composite, SWT.NONE);
- label.setText("Project:");
+ label.setText(Messages.DirectoryLibraryPage_LabelProject);
final String[] webProjects = getWebProjects();
@@ -103,7 +103,7 @@
}
private static String[] getWebProjects() {
- return new String[] { "test" };
+ return new String[] { Messages.DirectoryLibraryPage_WebProjects };
}
private static int indexOf(final String[] array, final String str) {
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ejb3/JBossEJB3LibrariesPage.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ejb3/JBossEJB3LibrariesPage.java 2009-05-25
04:42:59 UTC (rev 15472)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ejb3/JBossEJB3LibrariesPage.java 2009-05-25
04:43:26 UTC (rev 15473)
@@ -21,6 +21,7 @@
*/
package org.jboss.ide.eclipse.as.classpath.ui.ejb3;
+import java.text.MessageFormat;
import org.eclipse.core.runtime.Path;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.JavaCore;
@@ -61,10 +62,10 @@
return true;
} else {
ClasspathUIPlugin
- .error("The selected configuration (\""
- + jbossServer.getServer().getName()
- + "\")"
- + " does not contain the expected EJB3 libraries. Please
install JBoss with EJB3 enabled, or try another configuration. ");
+ .error(MessageFormat
+ .format(
+ Messages.JBossEJB3LibrariesPage_ConfigurationDoesNotContainEJB3Libraries,
+ jbossServer.getServer().getName()));
}
}
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ejb3/JBossSelectionPage.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ejb3/JBossSelectionPage.java 2009-05-25
04:42:59 UTC (rev 15472)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/src/org/jboss/ide/eclipse/as/classpath/ui/ejb3/JBossSelectionPage.java 2009-05-25
04:43:26 UTC (rev 15473)
@@ -41,6 +41,7 @@
import org.eclipse.wst.server.core.ServerCore;
import org.eclipse.wst.server.ui.ServerUICore;
import org.eclipse.wst.server.ui.internal.actions.NewServerAction;
+import org.jboss.ide.eclipse.as.classpath.ui.Messages;
import org.jboss.ide.eclipse.as.core.server.internal.JBossServer;
import org.jboss.ide.eclipse.as.core.util.ServerConverter;
@@ -56,7 +57,7 @@
protected Button newServer;
public JBossSelectionPage() {
- super("JBoss Server Selection");
+ super(Messages.JBossSelectionPage_Name);
}
public void createControl(Composite parent) {
@@ -83,7 +84,7 @@
links.setLayout(new RowLayout());
newServer = new Button(links, SWT.NONE);
- newServer.setText("Create a JBoss Server");
+ newServer.setText(Messages.JBossSelectionPage_ButtonText);
newServer.addSelectionListener(new SelectionListener() {
public void widgetDefaultSelected(SelectionEvent e) {
widgetSelected(e);
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.doc.user/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.doc.user/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.doc.user/.settings/org.eclipse.jdt.core.prefs 2009-05-25
04:43:26 UTC (rev 15473)
@@ -0,0 +1 @@
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning