Ping?

I have migrated the patch to JDK 9, so this may be easier to review. This patch also fixes JDK-6568430 and some formatting.

Please review. Thanks!

Regards,
Jacob

On 03/09/2015 09:12 PM, Jacob Wisor wrote:
Hello there!

I have added de and pl localizations to the native2ascii tool. And, I have
migrated the other existing localizations to property file resource bundles,
just like in the other tools.

Please review this patch.

Regards,

Jacob
diff --git a/src/jdk.dev/share/classes/sun/tools/native2ascii/Main.java b/src/jdk.dev/share/classes/sun/tools/native2ascii/Main.java
--- a/src/jdk.dev/share/classes/sun/tools/native2ascii/Main.java
+++ b/src/jdk.dev/share/classes/sun/tools/native2ascii/Main.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -138,7 +138,8 @@
             if (createOutputFile) {
                 outputFile = new File(outputFileName);
                 if (outputFile.exists() && !outputFile.canWrite()) {
-                    throw new Exception(formatMsg("err.cannot.write", outputFileName));
+                    throw new Exception(formatMsg("err.cannot.write",
+                                                   outputFileName));
                 }
             }
 
@@ -188,55 +189,54 @@
         return true;
     }
 
-    private void error(String msg){
-        System.out.println(msg);
+    private void error(String msg) {
+        System.err.println(msg);
     }
 
-    private void usage(){
+    private void usage() {
         System.out.println(getMsg("usage"));
     }
 
-
     private BufferedReader getN2AInput(String inFile) throws Exception {
 
         InputStream forwardIn;
-        if (inFile == null)
+        if (inFile == null) {
             forwardIn = System.in;
-        else {
+        } else {
             File f = new File(inFile);
-            if (!f.canRead()){
+            if (!f.canRead()) {
                 throw new Exception(formatMsg("err.cannot.read", f.getName()));
             }
 
             try {
-                 forwardIn = new FileInputStream(inFile);
+                forwardIn = new FileInputStream(inFile);
             } catch (IOException e) {
-               throw new Exception(formatMsg("err.cannot.read", f.getName()));
+                throw new Exception(formatMsg("err.cannot.read", f.getName()));
             }
         }
 
         BufferedReader r = (encodingString != null) ?
             new BufferedReader(new InputStreamReader(forwardIn,
-                                                     encodingString)) :
+                                                      encodingString)) :
             new BufferedReader(new InputStreamReader(forwardIn));
         return r;
     }
 
-
     private BufferedWriter getN2AOutput(String outFile) throws Exception {
         Writer output;
         BufferedWriter n2aOut;
 
-        if (outFile == null)
+        if (outFile == null) {
             output = new OutputStreamWriter(System.out,"US-ASCII");
-
+        }
         else {
             File f = new File(outFile);
 
             File tempDir = f.getParentFile();
 
-            if (tempDir == null)
+            if (tempDir == null) {
                 tempDir = new File(System.getProperty("user.dir"));
+            }
 
             tempFile = File.createTempFile("_N2A",
                                            ".TMP",
@@ -245,8 +245,9 @@
 
             try {
                 output = new FileWriter(tempFile);
-            } catch (IOException e){
-                throw new Exception(formatMsg("err.cannot.write", tempFile.getName()));
+            } catch (IOException e) {
+                throw new Exception(formatMsg("err.cannot.write",
+                                               tempFile.getName()));
             }
         }
 
@@ -258,11 +259,11 @@
         Reader in;
         BufferedReader reader;
 
-        if (inFile == null)
+        if (inFile == null) {
             in = new InputStreamReader(System.in, "US-ASCII");
-        else {
+        } else {
             File f = new File(inFile);
-            if (!f.canRead()){
+            if (!f.canRead()) {
                 throw new Exception(formatMsg("err.cannot.read", f.getName()));
             }
 
@@ -282,14 +283,15 @@
         OutputStreamWriter w = null;
         OutputStream output = null;
 
-        if (outFile == null)
+        if (outFile == null) {
             output = System.out;
-        else {
+        } else {
             File f = new File(outFile);
 
             File tempDir = f.getParentFile();
-            if (tempDir == null)
+            if (tempDir == null) {
                 tempDir = new File(System.getProperty("user.dir"));
+            }
             tempFile =  File.createTempFile("_N2A",
                                             ".TMP",
                                             tempDir);
@@ -298,7 +300,8 @@
             try {
                 output = new FileOutputStream(tempFile);
             } catch (IOException e){
-                throw new Exception(formatMsg("err.cannot.write", tempFile.getName()));
+                throw new Exception(formatMsg("err.cannot.write",
+                                               tempFile.getName()));
             }
         }
 
@@ -332,7 +335,7 @@
                 lookupCharset(defaultEncoding):
                 lookupCharset(encodingString);
 
-            encoder =  (cs != null) ?
+            encoder = (cs != null) ?
                 cs.newEncoder() :
                 null;
         } catch (IllegalCharsetNameException e) {
@@ -345,7 +348,7 @@
     static {
         try {
             rsrc = ResourceBundle.getBundle(
-                     "sun.tools.native2ascii.resources.MsgNative2ascii");
+                     "sun.tools.native2ascii.resources.native2ascii");
         } catch (MissingResourceException e) {
             throw new Error("Missing message file.");
         }
@@ -364,11 +367,10 @@
         return MessageFormat.format(msg, arg);
     }
 
-
     /**
      * Main program
      */
-    public static void main(String argv[]){
+    public static void main(String argv[]) {
         Main converter = new Main();
         System.exit(converter.convert(argv) ? 0 : 1);
     }
diff --git a/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/MsgNative2ascii.java b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/MsgNative2ascii.java
deleted file mode 100644
--- a/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/MsgNative2ascii.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-package sun.tools.native2ascii.resources;
-
-import java.util.ListResourceBundle;
-
-public class MsgNative2ascii extends ListResourceBundle {
-
-    public Object[][] getContents() {
-        Object[][] temp = new Object[][] {
-        {"err.bad.arg", "-encoding requires argument"},
-        {"err.cannot.read",  "{0} could not be read."},
-        {"err.cannot.write", "{0} could not be written."},
-        {"usage", "Usage: native2ascii" +
-         " [-reverse] [-encoding encoding] [inputfile [outputfile]]"},
-        };
-
-        return temp;
-    }
-}
diff --git a/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/MsgNative2ascii_ja.java b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/MsgNative2ascii_ja.java
deleted file mode 100644
--- a/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/MsgNative2ascii_ja.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-package sun.tools.native2ascii.resources;
-
-import java.util.ListResourceBundle;
-
-public class MsgNative2ascii_ja extends ListResourceBundle {
-
-    public Object[][] getContents() {
-        Object[][] temp = new Object[][] {
-        {"err.bad.arg", "-encoding\u306B\u306F\u5F15\u6570\u304C\u5FC5\u8981\u3067\u3059"},
-        {"err.cannot.read",  "{0}\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002"},
-        {"err.cannot.write", "{0}\u3092\u66F8\u304D\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002"},
-        {"usage", "\u4F7F\u7528\u65B9\u6CD5: native2ascii [-reverse] [-encoding encoding] [inputfile [outputfile]]"},
-        };
-
-        return temp;
-    }
-}
diff --git a/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/MsgNative2ascii_zh_CN.java b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/MsgNative2ascii_zh_CN.java
deleted file mode 100644
--- a/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/MsgNative2ascii_zh_CN.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-package sun.tools.native2ascii.resources;
-
-import java.util.ListResourceBundle;
-
-public class MsgNative2ascii_zh_CN extends ListResourceBundle {
-
-    public Object[][] getContents() {
-        Object[][] temp = new Object[][] {
-        {"err.bad.arg", "-encoding \u9700\u8981\u53C2\u6570"},
-        {"err.cannot.read",  "\u65E0\u6CD5\u8BFB\u53D6{0}\u3002"},
-        {"err.cannot.write", "\u65E0\u6CD5\u5199\u5165{0}\u3002"},
-        {"usage", "\u7528\u6CD5: native2ascii [-reverse] [-encoding encoding] [inputfile [outputfile]]"},
-        };
-
-        return temp;
-    }
-}
diff --git a/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii.properties b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii.properties
new file mode 100644
--- /dev/null
+++ b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii.properties
@@ -0,0 +1,27 @@
+# Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# This code is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License version 2 only, as
+# published by the Free Software Foundation.  Oracle designates this
+# particular file as subject to the "Classpath" exception as provided
+# by Oracle in the LICENSE file that accompanied this code.
+#
+# This code is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+# version 2 for more details (a copy is included in the LICENSE file that
+# accompanied this code).
+#
+# You should have received a copy of the GNU General Public License version
+# 2 along with this work; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+# or visit www.oracle.com if you need additional information or have any
+# questions.
+
+err.bad.arg=-encoding requires argument
+err.cannot.read={0} could not be read.
+err.cannot.write={0} could not be written.
+usage=Usage: native2ascii [-reverse] [-encoding encoding] [inputfile [outputfile]]
\ No newline at end of file
diff --git a/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_de.properties b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_de.properties
new file mode 100644
--- /dev/null
+++ b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_de.properties
@@ -0,0 +1,27 @@
+# Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# This code is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License version 2 only, as
+# published by the Free Software Foundation.  Oracle designates this
+# particular file as subject to the "Classpath" exception as provided
+# by Oracle in the LICENSE file that accompanied this code.
+#
+# This code is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+# version 2 for more details (a copy is included in the LICENSE file that
+# accompanied this code).
+#
+# You should have received a copy of the GNU General Public License version
+# 2 along with this work; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+# or visit www.oracle.com if you need additional information or have any
+# questions.
+
+err.bad.arg=-encoding ben\u00f6tigt einen Parameter
+err.cannot.read=\u201e{0}\u201c konnte nicht gelesen werden.
+err.cannot.write=\u201e{0}\u201c konnte nicht geschrieben werden
+usage=Verwendung: native2ascii [-reverse] [-encoding Zeichenkodierung] [Eingabedatei [Ausgabedatei]]
diff --git a/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_de.utf-8.properties b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_de.utf-8.properties
new file mode 100644
--- /dev/null
+++ b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_de.utf-8.properties
@@ -0,0 +1,27 @@
+# Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# This code is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License version 2 only, as
+# published by the Free Software Foundation.  Oracle designates this
+# particular file as subject to the "Classpath" exception as provided
+# by Oracle in the LICENSE file that accompanied this code.
+#
+# This code is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+# version 2 for more details (a copy is included in the LICENSE file that
+# accompanied this code).
+#
+# You should have received a copy of the GNU General Public License version
+# 2 along with this work; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+# or visit www.oracle.com if you need additional information or have any
+# questions.
+
+err.bad.arg=-encoding benötigt einen Parameter
+err.cannot.read=„{0}“ konnte nicht gelesen werden.
+err.cannot.write=„{0}“ konnte nicht geschrieben werden
+usage=Verwendung: native2ascii [-reverse] [-encoding Zeichenkodierung] [Eingabedatei [Ausgabedatei]]
\ No newline at end of file
diff --git a/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_ja.properties b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_ja.properties
new file mode 100644
--- /dev/null
+++ b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_ja.properties
@@ -0,0 +1,27 @@
+# Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# This code is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License version 2 only, as
+# published by the Free Software Foundation.  Oracle designates this
+# particular file as subject to the "Classpath" exception as provided
+# by Oracle in the LICENSE file that accompanied this code.
+#
+# This code is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+# version 2 for more details (a copy is included in the LICENSE file that
+# accompanied this code).
+#
+# You should have received a copy of the GNU General Public License version
+# 2 along with this work; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+# or visit www.oracle.com if you need additional information or have any
+# questions.
+
+err.bad.arg=-encoding\u306B\u306F\u5F15\u6570\u304C\u5FC5\u8981\u3067\u3059
+err.cannot.read={0}\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002"
+err.cannot.write={0}\u3092\u66F8\u304D\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002"
+usage=\u4F7F\u7528\u65B9\u6CD5: native2ascii [-reverse] [-encoding encoding] [inputfile [outputfile]]
\ No newline at end of file
diff --git a/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_pl.properties b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_pl.properties
new file mode 100644
--- /dev/null
+++ b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_pl.properties
@@ -0,0 +1,27 @@
+# Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# This code is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License version 2 only, as
+# published by the Free Software Foundation.  Oracle designates this
+# particular file as subject to the "Classpath" exception as provided
+# by Oracle in the LICENSE file that accompanied this code.
+#
+# This code is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+# version 2 for more details (a copy is included in the LICENSE file that
+# accompanied this code).
+#
+# You should have received a copy of the GNU General Public License version
+# 2 along with this work; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+# or visit www.oracle.com if you need additional information or have any
+# questions.
+
+err.bad.arg=-encoding wymaga argument.
+err.cannot.read=Nie mo\u017cna wczyta\u0107 \u201e{0}\u201d.
+err.cannot.write=Nie mo\u017cna zapisa\u0107 \u201e{0}\u201c.
+usage=Verwendung: native2ascii [-reverse] [-encoding kod-znaku] [plik-wej\u015bciowy [plik-wyj\u015bciowy]]
diff --git a/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_pl.utf-8.properties b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_pl.utf-8.properties
new file mode 100644
--- /dev/null
+++ b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_pl.utf-8.properties
@@ -0,0 +1,27 @@
+# Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# This code is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License version 2 only, as
+# published by the Free Software Foundation.  Oracle designates this
+# particular file as subject to the "Classpath" exception as provided
+# by Oracle in the LICENSE file that accompanied this code.
+#
+# This code is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+# version 2 for more details (a copy is included in the LICENSE file that
+# accompanied this code).
+#
+# You should have received a copy of the GNU General Public License version
+# 2 along with this work; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+# or visit www.oracle.com if you need additional information or have any
+# questions.
+
+err.bad.arg=-encoding wymaga argument.
+err.cannot.read=Nie można wczytać „{0}”.
+err.cannot.write=Nie można zapisać „{0}“.
+usage=Verwendung: native2ascii [-reverse] [-encoding kod-znaku] [plik-wejściowy [plik-wyjściowy]]
\ No newline at end of file
diff --git a/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_zh_CN.properties b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_zh_CN.properties
new file mode 100644
--- /dev/null
+++ b/src/jdk.dev/share/classes/sun/tools/native2ascii/resources/native2ascii_zh_CN.properties
@@ -0,0 +1,27 @@
+# Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# This code is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License version 2 only, as
+# published by the Free Software Foundation.  Oracle designates this
+# particular file as subject to the "Classpath" exception as provided
+# by Oracle in the LICENSE file that accompanied this code.
+#
+# This code is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+# version 2 for more details (a copy is included in the LICENSE file that
+# accompanied this code).
+#
+# You should have received a copy of the GNU General Public License version
+# 2 along with this work; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+# or visit www.oracle.com if you need additional information or have any
+# questions.
+
+err.bad.arg=-encoding \u9700\u8981\u53C2\u6570
+err.cannot.read=\u65E0\u6CD5\u8BFB\u53D6{0}\u3002
+err.cannot.write=\u65E0\u6CD5\u5199\u5165{0}\u3002
+usage=\u7528\u6CD5: native2ascii [-reverse] [-encoding encoding] [inputfile [outputfile]]
\ No newline at end of file

Reply via email to