提交 474fe695 编写于 作者: K kohsuke

i18n

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20877 71c3de6d-444a-0410-be80-ed276b4c234a
上级 22cf46c0
......@@ -93,21 +93,19 @@ public class WindowsSlaveInstaller implements Callable<Void,RuntimeException>, A
*/
public void actionPerformed(ActionEvent e) {
int r = JOptionPane.showConfirmDialog(dialog,
"This will install a slave agent as a Windows service,\n" +
"so that this slave will connect to Hudson as soon as the machine boots.\n" +
"Do you want to proceed with installation?",
Messages.WindowsSlaveInstaller_ConfirmInstallation(),
Messages.WindowsInstallerLink_DisplayName(), OK_CANCEL_OPTION);
if(r!=JOptionPane.OK_OPTION) return;
if(!DotNet.isInstalled(2,0)) {
JOptionPane.showMessageDialog(dialog,".NET Framework 2.0 or later is required for this feature",
JOptionPane.showMessageDialog(dialog,Messages.WindowsSlaveInstaller_DotNetRequired(),
Messages.WindowsInstallerLink_DisplayName(), ERROR_MESSAGE);
return;
}
final File dir = new File(rootDir);
if (!dir.exists()) {
JOptionPane.showMessageDialog(dialog,"Slave root directory '"+rootDir+"' doesn't exist",
JOptionPane.showMessageDialog(dialog,Messages.WindowsSlaveInstaller_RootFsDoesntExist(rootDir),
Messages.WindowsInstallerLink_DisplayName(), ERROR_MESSAGE);
return;
}
......@@ -139,8 +137,7 @@ public class WindowsSlaveInstaller implements Callable<Void,RuntimeException>, A
}
r = JOptionPane.showConfirmDialog(dialog,
"Installation was successful. Would you like to\n" +
"Stop this slave agent and start the newly installed service?",
Messages.WindowsSlaveInstaller_InstallationSuccessful(),
Messages.WindowsInstallerLink_DisplayName(), OK_CANCEL_OPTION);
if(r!=JOptionPane.OK_OPTION) return;
......@@ -162,8 +159,7 @@ public class WindowsSlaveInstaller implements Callable<Void,RuntimeException>, A
} catch (Exception t) {
StringWriter sw = new StringWriter();
t.printStackTrace(new PrintWriter(sw));
JOptionPane.showMessageDialog(
dialog,sw.toString(),"Error", ERROR_MESSAGE);
JOptionPane.showMessageDialog(dialog,sw.toString(),"Error", ERROR_MESSAGE);
}
}
......
......@@ -21,4 +21,8 @@
# THE SOFTWARE.
WindowsInstallerLink.DisplayName=Install as Windows Service
WindowsInstallerLink.Description=Installs Hudson as a Windows service to this system, so that Hudson starts automatically when the machine boots.
\ No newline at end of file
WindowsInstallerLink.Description=Installs Hudson as a Windows service to this system, so that Hudson starts automatically when the machine boots.
WindowsSlaveInstaller.ConfirmInstallation=This will install a slave agent as a Windows service,
WindowsSlaveInstaller.DotNetRequired=.NET Framework 2.0 or later is required for this feature
WindowsSlaveInstaller.InstallationSuccessful=Installation was successful. Would you like to
WindowsSlaveInstaller.RootFsDoesntExist=Slave root directory ''{0}'' doesn''t exist
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册