geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r416553 - in /geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main: java/org/apache/geronimo/gshell/commands/scripting/ resources/org/ resources/org/apache/ resources/org/apache/geronimo/ resources/org/apache/ger...
Date Fri, 23 Jun 2006 03:55:55 GMT
Author: jdillon
Date: Thu Jun 22 20:55:54 2006
New Revision: 416553

URL: http://svn.apache.org/viewvc?rev=416553&view=rev
Log:
Externalize strings

Added:
    geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/org/
    geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/org/apache/
    geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/org/apache/geronimo/
    geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/org/apache/geronimo/gshell/
    geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/org/apache/geronimo/gshell/commands/
    geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/org/apache/geronimo/gshell/commands/scripting/
    geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/org/apache/geronimo/gshell/commands/scripting/ScriptCommandMessages.properties
  (with props)
Modified:
    geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/java/org/apache/geronimo/gshell/commands/scripting/ScriptCommand.java

Modified: geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/java/org/apache/geronimo/gshell/commands/scripting/ScriptCommand.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/java/org/apache/geronimo/gshell/commands/scripting/ScriptCommand.java?rev=416553&r1=416552&r2=416553&view=diff
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/java/org/apache/geronimo/gshell/commands/scripting/ScriptCommand.java
(original)
+++ geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/java/org/apache/geronimo/gshell/commands/scripting/ScriptCommand.java
Thu Jun 22 20:55:54 2006
@@ -25,6 +25,7 @@
 
 import org.apache.geronimo.gshell.command.Command;
 import org.apache.geronimo.gshell.command.CommandSupport;
+import org.apache.geronimo.gshell.command.MessageSource;
 import org.apache.geronimo.gshell.console.IO;
 import org.apache.geronimo.gshell.console.JLineConsole;
 
@@ -52,6 +53,8 @@
     protected int doExecute(final String[] args) throws Exception {
         assert args != null;
 
+        MessageSource messages = getMessageSource();
+
         //
         // TODO: Optimize, move common code to CommandSupport
         //
@@ -61,28 +64,30 @@
         Options options = new Options();
 
         options.addOption(OptionBuilder.withLongOpt("help")
-            .withDescription("Display this help message")
+            .withDescription(messages.getMessage("cli.option.help"))
             .create('h'));
 
-        options.addOption(OptionBuilder.withLongOpt("lang")
-            .withDescription("Specify the scripting language")
+        options.addOption(OptionBuilder.withLongOpt("language")
+            .withDescription(messages.getMessage("cli.option.language"))
             .hasArg()
             .create('l'));
 
         options.addOption(OptionBuilder.withLongOpt("expression")
-            .withDescription("Evaluate the given expression")
+            .withDescription(messages.getMessage("cli.option.expression"))
             .hasArg()
             .create('e'));
 
         options.addOption(OptionBuilder.withLongOpt("interactive")
-            .withDescription("Run interactive mode")
+            .withDescription(messages.getMessage("cli.option.interactive"))
             .create('i'));
 
         CommandLineParser parser = new PosixParser();
         CommandLine line = parser.parse(options, args);
 
         if (line.hasOption('h')) {
-            io.out.println(getName() + " -- scripting language integration");
+            io.out.print(getName());
+            io.out.print(" -- ");
+            io.out.println(messages.getMessage("cli.usage.description"));
             io.out.println();
 
             HelpFormatter formatter = new HelpFormatter();

Added: geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/org/apache/geronimo/gshell/commands/scripting/ScriptCommandMessages.properties
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/org/apache/geronimo/gshell/commands/scripting/ScriptCommandMessages.properties?rev=416553&view=auto
==============================================================================
--- geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/org/apache/geronimo/gshell/commands/scripting/ScriptCommandMessages.properties
(added)
+++ geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/org/apache/geronimo/gshell/commands/scripting/ScriptCommandMessages.properties
Thu Jun 22 20:55:54 2006
@@ -0,0 +1,29 @@
+##
+## $Id$
+##
+
+##
+## Option descriptions
+##
+
+cli.option.help=Display this help message
+
+cli.option.language=Specify the scripting language
+
+cli.option.expression=Evaluate the given expression
+
+cli.option.interactive=Run interactive mode
+
+##
+## Option usage (help)
+##
+
+cli.usage.description=Scripting language integration
+
+cli.usage.footer=
+
+##
+## Information messages
+##
+
+info.listening=Listening for connections on port: %s
\ No newline at end of file

Propchange: geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/org/apache/geronimo/gshell/commands/scripting/ScriptCommandMessages.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/org/apache/geronimo/gshell/commands/scripting/ScriptCommandMessages.properties
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: geronimo/sandbox/gshell/trunk/gshell-commands/gshell-scripting-commands/src/main/resources/org/apache/geronimo/gshell/commands/scripting/ScriptCommandMessages.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message