← 输入框|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 Italian translations of UI labels #13

Open

Description

@glassfishrobot

Summary of Additions: Add support for Italian translation of UI labels and
tooltips

More translated text could be added in the future. I will update the issue if
I get any additions/changes from our translation center. Thank you!

This enhancement is briefly mentioned in BugId: 6298389 -
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6298389

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

— Constants_it.java (revision 0)
+++ Constants_it.java (revision 0)
@@ -0,0 +1,148 @@
+/*

    • @(#)Constants_it.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_it.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_it 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", "Trova: "}

,
+

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

,
+

{ "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", "Precedente"}

,
+

{ "tooltip.ForwardAction", "Successivo"}

,
+

{ "tooltip.PrintAction", "Stampa"}

,
+

{ "tooltip.PrintSetupAction", "Imposta pagina"}

,
+

{ "tooltip.ReloadAction", "Ricarica"}

,
+

{ "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 18, 2007

    @glassfishrobot
    ContributorAuthor

    dacagl said:
    Please disregard the first svn diff, I have a completely translated
    Constants_it.java file.

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

    — Constants_it.java (revision 0)
    +++ Constants_it.java (revision 0)
    @@ -0,0 +1,148 @@
    +/*

      • @(#)Constants_it.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_it.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_it extends ListResourceBundle {

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

    {0} sconosciuto"},

    • { "helpset.wrongTitle",
    • "Tentativo di impostare il titolo a {0}

    , ma il titolo ha gi\u0
    0e0 il valore

    {1}."},

    • { "helpset.wrongHomeID",
    • "Tentativo di impostare homeID a {0}, ma homeID ha gi\u00e0 il
      valore {1}

    ."},

    • { "helpset.subHelpSetTrouble",
    • "Problema durante la creazione del subhelpset:

    {0}."},

    • { "helpset.malformedURL",
    • "URL non valido: {0}

    ."},

    • { "helpset.incorrectURL",
    • "URL non corretto:

    {0}."},

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

    non pu\u00f2 contenere il testo

    {1}."},

    • { "helpset.wrongTopLevel",
    • "{0} non pu\u00f2 essere un tag di livello principale."},
    • { "helpset.wrongParent",
    • "Il tag padre per {0} non pu\u00f2 essere {1}

    ."},

    • { "helpset.unbalanced",
    • "Tag

    {0} non bilanciato."},

    • { "helpset.wrongLocale",
    • "Avvertimento: attributo xml:lang {0}

    in conflitto con

    {1}

    pre
    definito e con

    {2}

    predefinito"},

    • { "helpset.unknownVersion",
    • "Versione

    {0} sconosciuta."},
    +

    • // IndexView messages
    • { "index.invalidIndexFormat", + "Avvertimento: formato indice non valido"},
    • { "index.unknownVersion",
    • "Versione {0}

    sconosciuta."},
    +

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

    {0} sconosciuto"},

    • { "toc.invalidTOCFormat", + "Avvertimento: formato Sommario non valido"},
    • { "toc.unknownVersion",
    • "Versione {0}

    sconosciuta."},
    +

    • // FavoritesView messages

    { "favorites.invalidFavoritesFormat", + "Avvertimento: formato Preferiti non valido"}

    ,

    • { "favorites.unknownVersion",
    • "Versione

    {0} sconosciuta."},
    +

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

    sconosciuto"},
    +

    { "map.invalidMapFormat", + "Avvertimento: formato mappa non valido"}

    ,

    • { "map.unknownVersion",
    • "Versione

    {0}

    sconosciuta."},
    +

    • // GUI components
    • // Labels

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

    ,
    +

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

    ,
    +

    { "search.hitDesc", "Numero di occorrenze nel documento"}

    ,
    +

    { "search.qualityDesc", "Valore di penalit\u00e0 minimo nel document o" }

    ,
    +

    { "search.high", "Alto"}

    ,
    +

    { "search.midhigh", "Medio alto"}

    ,
    +

    { "search.mid", "Medio"}

    ,
    +

    { "search.midlow", "Medio basso"}

    ,
    +

    { "search.low", "Basso"}

    ,
    +
    +

    { "favorites.add", "Aggiungi"}

    ,
    +

    { "favorites.remove", "Rimuovi"}

    ,
    +

    { "favorites.folder", "Nuova cartella"}

    ,
    +

    { "favorites.name", "Nome"}

    ,
    +

    { "favorites.cut", "Taglia"}

    ,
    +

    { "favorites.paste", "Incolla"}

    ,
    +

    { "favorites.copy" , "Copia"}

    ,
    +
    +

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

    ,
    +

    { "history.unknownTitle", ""}

    ,
    +

    • // ToolTips for Actions

    { "tooltip.BackAction", "Pagina precedente"}

    ,
    +

    { "tooltip.ForwardAction", "Pagina successiva"}

    ,
    +

    { "tooltip.PrintAction", "Stampa"}

    ,
    +

    { "tooltip.PrintSetupAction", "Imposta pagina"}

    ,
    +

    { "tooltip.ReloadAction", "Ricarica"}

    ,
    +

    { "tooltip.FavoritesAction", "Aggiungi a Preferiti"}

    ,
    +

    { "tooltip.HomeAction", "Vai alla home page"}

    ,
    +

    • // Accessibility names

    { "access.BackAction", "Pulsante Precedente"}

    ,
    +

    { "access.ForwardAction", "Pulsante Successivo"}

    ,
    +

    { "access.HistoryAction", "Pulsante Cronologia"}

    ,
    +

    { "access.PrintAction", "Pulsante Stampa"}

    ,
    +

    { "access.PrintSetupAction", "Pulsante Imposta pagina"}

    ,
    +

    { "access.ReloadAction", "Pulsante Ricarica"}

    ,
    +

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

    ,
    +

    { "access.FavoritesAction", "Pulsante Aggiungi a Preferiti"}

    ,
    +

    { "access.contentViewer", "Visualizzatore del contenuto"}

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

    @glassfishrobot
    ContributorAuthor

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

  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