← 输入框|github.com|刷新
Skip to content
This repository was archived by the owner on Jan 30, 2019. It is now read-only.
This repository was archived by the owner on Jan 30, 2019. It is now read-only.

Add support for Traditional Chinese translations of UI labels #14

Open

Description

@glassfishrobot

Summary of Changes: Since the Constants_zh.java appears to have Simplified
Chinese translations, there is no way for the user to get Traditional Chinese
translations of the UI. Adding a Constants_zh_TW.java file gives the user that
option. Even though this file is all in English, giving a user that uses a
locale of "zh_TW" all English text is better than providing Simplified
Chinese. Others may translate this file if they like or I will update it if
our translation center comes back with changes of their own.

C:\JavaHelp\Open_Source\Subversion\Projects\JavaHelp\javahelp\jhMaster\JavaHelp
src\new\javax\help\resources>svn diff Constants_zh_TW.java
Index: Constants_zh_TW.java

— Constants_zh_TW.java (revision 0)
+++ Constants_zh_TW.java (revision 0)
@@ -0,0 +1,149 @@
+/*

    • @(#)Constants_zh_TW.java
    • Copyright (c) 2006 Sun Microsystems, Inc. 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. Sun designates this
    • particular file as subject to the "Classpath" exception as provided
    • by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    • CA 95054 USA or visit www.sun.com if you need additional information or
    • have any questions.
  • /
    +/
    • @(#) Constants_zh_TW.java - last change made 06/27/07
  • */

+package javax.help.resources;
+
+import java.util.ListResourceBundle;
+
+/**

    • Constants used for localizing JavaHelp.
    • These are in the form of key, value.
    • Translators take care to only translate the values.
  • */

+public class Constants_zh_TW extends ListResourceBundle {

  • /**
    • Overrides ListResourceBundle.
  • */
  • public Object[][] getContents() {
  • return new Object[][] {
  • // Constant strings and patterns
  • { "helpset.wrongPublicID",
  • "Unknown PublicID

{0}"},

  • { "helpset.wrongTitle",
  • "Attempting to set title to {0}

but already has value

{1}."},

  • { "helpset.wrongHomeID",
  • "Attempting to set homeID to {0} but already has value {1}

."},

  • { "helpset.subHelpSetTrouble",
  • "Trouble creating subhelpset:

{0}."},

  • { "helpset.malformedURL",
  • "Malformed URL: {0}

."},

  • { "helpset.incorrectURL",
  • "Incorrect URL:

{0}."},

  • { "helpset.wrongText",
  • "{0}

cannot contain text

{1}."},

  • { "helpset.wrongTopLevel",
  • "{0} cannot be a top level tag."},
  • { "helpset.wrongParent",
  • "The parent tag for {0} cannot be {1}

."},

  • { "helpset.unbalanced",
  • "Unbalanced tag

{0}."},

  • { "helpset.wrongLocale",
  • "Warning: xml:lang attribute {0}

conflicts with default

{1}

an
d with default

{2}

"},

  • { "helpset.unknownVersion",
  • "Unknown Version

{0}."},
+

  • // IndexView messages
  • { "index.invalidIndexFormat", + "Warning: Invalid Index format"},
  • { "index.unknownVersion",
  • "Unknown Version {0}

."},
+

  • // TOCView messages
  • { "toc.wrongPublicID",
  • "Unknown PublicID

{0}"},

  • { "toc.invalidTOCFormat", + "Warning: Invalid TOC format"},
  • { "toc.unknownVersion",
  • "Unknown Version {0}

."},
+

  • // FavoritesView messages

{ "favorites.invalidFavoritesFormat", + "Warning: Invalid Favorites format"}

,

  • { "favorites.unknownVersion",
  • "Unknown Version

{0}."},
+

  • // Map messages
  • { "map.wrongPublicID",
  • "Unknown PublicID {0}

"},
+

{ "map.invalidMapFormat", + "Warning: Invalid Map format"}

,

  • { "map.unknownVersion",
  • "Unknown Version

{0}

."},
+

  • // GUI components
  • // Labels

{ "index.findLabel", "Find: "}

,
+
+

{ "search.findLabel", "Find: "}

,
+

{ "search.hitDesc", "Number of occurances in document"}

,
+

{ "search.qualityDesc", "Lowest penality value in document" }

,
+

{ "search.high", "High"}

,
+

{ "search.midhigh", "Medium high"}

,
+

{ "search.mid", "Medium"}

,
+

{ "search.midlow", "Medium low"}

,
+

{ "search.low", "Low"}

,
+
+

{ "favorites.add", "Add"}

,
+

{ "favorites.remove", "Remove"}

,
+

{ "favorites.folder", "New Folder"}

,
+

{ "favorites.name", "Name"}

,
+

{ "favorites.cut", "Cut"}

,
+

{ "favorites.paste", "Paste"}

,
+

{ "favorites.copy" , "Copy"}

,
+
+

{ "history.homePage", "Home page"}

,
+

{ "history.unknownTitle", ""}

,
+

  • // ToolTips for Actions

{ "tooltip.BackAction", "Previous Page"}

,
+

{ "tooltip.ForwardAction", "Next Page"}

,
+

{ "tooltip.PrintAction", "Print"}

,
+

{ "tooltip.PrintSetupAction", "Page Setup"}

,
+

{ "tooltip.ReloadAction", "Reload"}

,
+

{ "tooltip.FavoritesAction", "Add to Favorites"}

,
+

{ "tooltip.HomeAction", "Go to home page"}

,
+

  • // Accessibility names

{ "access.BackAction", "Previous Button"}

,
+

{ "access.ForwardAction", "Next Button"}

,
+

{ "access.HistoryAction", "History Button"}

,
+

{ "access.PrintAction", "Print Button"}

,
+

{ "access.PrintSetupAction", "Page Setup Button"}

,
+

{ "access.ReloadAction", "Reload Button"}

,
+

{ "access.HomeAction", "Home Button"}

,
+

{ "access.FavoritesAction", "Add to Favorites Button"}

,
+

{ "access.contentViewer", "Content Viewer"}

  • };
  • }
    +}

Environment

Operating System: All
Platform: All

Affected Versions

[current]

Activity

  1. glassfishrobot commented on Jul 2, 2007

    @glassfishrobot
    ContributorAuthor

    Reported by dacagl

  2. glassfishrobot commented on Jul 2, 2007

    @glassfishrobot
    ContributorAuthor

    Was assigned to javahelp-issues

  3. glassfishrobot commented on Jul 17, 2007

    @glassfishrobot
    ContributorAuthor

    dacagl said:
    Please disregard the first svn diff, I have a fully translated
    Constants_zh_TW.java file I would like to include.

    C:\JavaHelp\Open_Source\Subversion\Projects\JavaHelp\javahelp\jhMaster\JavaHelp
    src\new\javax\help\resources>svn diff Constants_zh_TW.java
    Index: Constants_zh_TW.java

    — Constants_zh_TW.java (revision 0)
    +++ Constants_zh_TW.java (revision 0)
    @@ -0,0 +1,149 @@
    +/*

      • @(#)Constants_zh_TW.java
      • Copyright (c) 2006 Sun Microsystems, Inc. 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. Sun designates this
      • particular file as subject to the "Classpath" exception as provided
      • by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
      • CA 95054 USA or visit www.sun.com if you need additional information or
      • have any questions.
    • /
      +/
      • @(#) Constants_zh_TW.java - last change made 06/27/07
    • */

    +package javax.help.resources;
    +
    +import java.util.ListResourceBundle;
    +
    +/**

      • Constants used for localizing JavaHelp.
      • These are in the form of key, value.
      • Translators take care to only translate the values.
    • */

    +public class Constants_zh_TW extends ListResourceBundle {

    • /**
      • Overrides ListResourceBundle.
    • */
    • public Object[][] getContents() {
    • return new Object[][] {
    • // Constant strings and patterns
    • { "helpset.wrongPublicID",
    • "\u672a\u77e5\u7684 PublicID

    {0}"},

    • { "helpset.wrongTitle",
    • "\u5617\u8a66\u5c07\u6a19\u984c\u8a2d\u70ba {0}

    \uff0c\u4f46\u6
    62f\u6a19\u984c\u5df2\u6709\u503c

    {1}\u3002"},

    • { "helpset.wrongHomeID",
    • "\u5617\u8a66\u5c07 homeID \u8a2d\u70ba {0}\uff0c \u4f46\u662f
      homeID \u5df2\u6709\u503c {1}

    \u3002"},

    • { "helpset.subHelpSetTrouble",
    • "\u5efa\u7acb subhelpset \u6642\u767c\u751f\u932f\u8aa4:

    {0}\u
    3002"},

    • { "helpset.malformedURL",
    • "\u683c\u5f0f\u932f\u8aa4\u7684 URL: {0}

    \u3002"},

    • { "helpset.incorrectURL",
    • "\u4e0d\u6b63\u78ba\u7684 URL:

    {0}\u3002"},

    • { "helpset.wrongText",
    • "{0}

    \u4e0d\u80fd\u5305\u542b\u6587\u5b57

    {1}\u3002"},

    • { "helpset.wrongTopLevel",

    • "{0} \u4e0d\u80fd\u70ba\u6700\u4e0a\u5c64\u6a19\u7c64\u3002"},

    • { "helpset.wrongParent",

    • "{0} \u7684\u7236\u6a19\u7c64\u4e0d\u80fd\u70ba {1}

    \u3002"},

    • { "helpset.unbalanced",
    • "\u4e0d\u5e73\u8861\u7684\u6a19\u7c64

    {0}\u3002"},

    • { "helpset.wrongLocale",
    • "\u8b66\u544a: xml:lang \u5c6c\u6027 {0}

    \u548c\u9810\u8a2d\u5
    03c

    {1}

    \u53ca\u9810\u8a2d\u503c

    {2}

    \u885d\u7a81\u3002"},

    • { "helpset.unknownVersion",
    • "\u672a\u77e5\u7248\u672c

    {0}\u3002"},
    +

    • // IndexView messages
    • { "index.invalidIndexFormat", + "\u8b66\u544a: \u7121\u6548\u7684\u7d22\u5f15\u683c\u5f0f"},
    • { "index.unknownVersion",
    • "\u672a\u77e5\u7248\u672c {0}

    \u3002"},
    +

    • // TOCView messages
    • { "toc.wrongPublicID",
    • "\u672a\u77e5 PublicID

    {0}"},

    • { "toc.invalidTOCFormat", + "\u8b66\u544a: \u7121\u6548\u7684\u76ee\u9304\u683c\u5f0f"},
    • { "toc.unknownVersion",
    • "\u672a\u77e5\u7248\u672c {0}

    \u3002"},
    +

    • // FavoritesView messages

    { "favorites.invalidFavoritesFormat", + "\u8b66\u544a: \u7121\u6548\u7684\u6211\u7684\u6700\u611b\u683 c\u5f0f"}

    ,

    • { "favorites.unknownVersion",
    • "\u672a\u77e5\u7248\u672c

    {0}."},
    +

    • // Map messages
    • { "map.wrongPublicID",
    • "\u672a\u77e5 PublicID {0}

    "},
    +

    { "map.invalidMapFormat", + "\u8b66\u544a: \u7121\u6548\u7684\u5c0d\u61c9\u683c\u5f0f"}

    ,

    • { "map.unknownVersion",
    • "\u672a\u77e5\u7248\u672c

    {0}

    \u3002"},
    +

    • // GUI components
    • // Labels

    { "index.findLabel", "\u5c0b\u627e: "}

    ,
    +
    +

    { "search.findLabel", "\u5c0b\u627e: "}

    ,
    +

    { "search.hitDesc", "\u6587\u4ef6\u4e2d\u51fa\u73fe\u7684\u6b21\u657 8"}

    ,
    +

    { "search.qualityDesc", "\u6587\u4ef6\u4e2d\u7684\u6700\u4f4e\u511f\ u503c" }

    ,
    +

    { "search.high", "\u9ad8"}

    ,
    +

    { "search.midhigh", "\u4e2d\u9ad8"}

    ,
    +

    { "search.mid", "\u4e2d"}

    ,
    +

    { "search.midlow", "\u4e2d\u4f4e"}

    ,
    +

    { "search.low", "\u4f4e"}

    ,
    +
    +

    { "favorites.add", "\u589e\u52a0"}

    ,
    +

    { "favorites.remove", "\u79fb\u9664"}

    ,
    +

    { "favorites.folder", "\u65b0\u8cc7\u6599\u593e"}

    ,
    +

    { "favorites.name", "\u540d\u7a31"}

    ,
    +

    { "favorites.cut", "\u526a\u4e0b"}

    ,
    +

    { "favorites.paste", "\u8cbc\u4e0a"}

    ,
    +

    { "favorites.copy" , "\u8907\u88fd"}

    ,
    +
    +

    { "history.homePage", "\u9996\u9801"}

    ,
    +

    { "history.unknownTitle", "<\u9801\u9762\u6a19\u984c\u672a\u77e5>"}

    ,
    +

    • // ToolTips for Actions

    { "tooltip.BackAction", "\u4e0a\u4e00\u9801"}

    ,
    +

    { "tooltip.ForwardAction", "\u4e0b\u4e00\u9801"}

    ,
    +

    { "tooltip.PrintAction", "\u5217\u5370"}

    ,
    +

    { "tooltip.PrintSetupAction", "\u9801\u9762\u8a2d\u5b9a"}

    ,
    +

    { "tooltip.ReloadAction", "\u91cd\u65b0\u8f09\u5165"}

    ,
    +

    { "tooltip.FavoritesAction", "\u52a0\u5230\u6211\u7684\u6700\u611b"}

    ,
    +

    { "tooltip.HomeAction", "\u79fb\u81f3\u9996\u9801"}

    ,
    +

    • // Accessibility names

    { "access.BackAction", "\u4e0a\u4e00\u6309\u9215"}

    ,
    +

    { "access.ForwardAction", "\u4e0b\u4e00\u6309\u9215"}

    ,
    +

    { "access.HistoryAction", "\u6b77\u7a0b\u6309\u9215"}

    ,
    +

    { "access.PrintAction", "\u5217\u5370\u6309\u9215"}

    ,
    +

    { "access.PrintSetupAction", "\u9801\u9762\u8a2d\u5b9a\u6309\u9215"}

    ,
    +

    { "access.ReloadAction", "\u91cd\u65b0\u8f09\u5165\u6309\u9215"}

    ,
    +

    { "access.HomeAction", "\u9996\u9801\u6309\u9215"}

    ,
    +

    { "access.FavoritesAction", "\u52a0\u5230\u6211\u7684\u6700\u611b\u6309 \u9215"}

    ,
    +

    { "access.contentViewer", "\u5167\u5bb9\u6aa2\u8996\u7a0b\u5f0f"}

    • };
    • }
      +}
  4. glassfishrobot commented on Apr 26, 2017

    @glassfishrobot
    ContributorAuthor

    This issue was imported from java.net JIRA JAVAHELP-14

  5. added this to the milestone 1 milestone on Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions