From f0adfb2b4c364810c91b8c87799adfe7ba224d83 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 11 Feb 2008 23:52:21 +0000
Subject: [PATCH] Fix for issue 2130 (i18n CLI usage placeholders)

---
 opendj-sdk/opends/src/server/org/opends/server/util/Base64.java |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/util/Base64.java b/opendj-sdk/opends/src/server/org/opends/server/util/Base64.java
index 98cc7a1..5da9ed5 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/util/Base64.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/util/Base64.java
@@ -52,6 +52,7 @@
 import org.opends.server.util.args.SubCommandArgumentParser;
 
 import static org.opends.messages.UtilityMessages.*;
+import static org.opends.messages.ToolMessages.*;
 import static org.opends.server.util.StaticUtils.*;
 import static org.opends.server.util.Validator.*;
 
@@ -442,37 +443,43 @@
 
 
       encodedData = new StringArgument("encodeddata", 'd', "encodedData", false,
-                             false, true, "{data}", null, null,
+                             false, true, INFO_DATA_PLACEHOLDER.get(), null,
+                             null,
                              INFO_BASE64_ENCODED_DATA_DESCRIPTION.get());
       decodeSubCommand.addArgument(encodedData);
 
 
       encodedFile = new StringArgument("encodedfile", 'f', "encodedDataFile",
-                             false, false, true, "{path}", null, null,
+                             false, false, true, INFO_PATH_PLACEHOLDER.get(),
+                             null, null,
                              INFO_BASE64_ENCODED_FILE_DESCRIPTION.get());
       decodeSubCommand.addArgument(encodedFile);
 
 
       toRawFile = new StringArgument("torawfile", 'o', "toRawFile", false,
-                                     false, true, "{path}", null, null,
+                                     false, true, INFO_PATH_PLACEHOLDER.get(),
+                                     null, null,
                                      INFO_BASE64_TO_RAW_FILE_DESCRIPTION.get());
       decodeSubCommand.addArgument(toRawFile);
 
 
       rawData = new StringArgument("rawdata", 'd', "rawData", false, false,
-                                   true, "{data}", null, null,
+                                   true, INFO_DATA_PLACEHOLDER.get(), null,
+                                   null,
                                    INFO_BASE64_RAW_DATA_DESCRIPTION.get());
       encodeSubCommand.addArgument(rawData);
 
 
       rawFile = new StringArgument("rawfile", 'f', "rawDataFile", false, false,
-                                   true, "{path}", null, null,
+                                   true, INFO_PATH_PLACEHOLDER.get(), null,
+                                   null,
                                    INFO_BASE64_RAW_FILE_DESCRIPTION.get());
       encodeSubCommand.addArgument(rawFile);
 
 
       toEncodedFile = new StringArgument("toencodedfile", 'o', "toEncodedFile",
-                               false, false, true, "{path}", null, null,
+                               false, false, true, INFO_PATH_PLACEHOLDER.get(),
+                               null, null,
                                INFO_BASE64_TO_ENCODED_FILE_DESCRIPTION.get());
       encodeSubCommand.addArgument(toEncodedFile);
 
@@ -500,7 +507,8 @@
     }
     catch (ArgumentException ae)
     {
-      System.err.println(ERR_CANNOT_PARSE_ARGS.get(ae.getMessage()).toString());
+      System.err.println(
+          ERR_ERROR_PARSING_ARGS.get(ae.getMessage()).toString());
       System.exit(1);
     }
 

--
Gitblit v1.10.0