提交 e1ce4f9a 编写于 作者: B bpatel

7025314: NLS: translatability violation on standard.properties

Reviewed-by: jjg
上级 23e82539
/* /*
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -188,8 +188,8 @@ public class HtmlWriter extends PrintWriter { ...@@ -188,8 +188,8 @@ public class HtmlWriter extends PrintWriter {
nextclassLabel = getResource("doclet.Next_Class"); nextclassLabel = getResource("doclet.Next_Class");
summaryLabel = getResource("doclet.Summary"); summaryLabel = getResource("doclet.Summary");
detailLabel = getResource("doclet.Detail"); detailLabel = getResource("doclet.Detail");
framesLabel = getResource("doclet.FRAMES"); framesLabel = getResource("doclet.Frames");
noframesLabel = getResource("doclet.NO_FRAMES"); noframesLabel = getResource("doclet.No_Frames");
treeLabel = getResource("doclet.Tree"); treeLabel = getResource("doclet.Tree");
classLabel = getResource("doclet.Class"); classLabel = getResource("doclet.Class");
deprecatedLabel = getResource("doclet.navDeprecated"); deprecatedLabel = getResource("doclet.navDeprecated");
......
...@@ -11,54 +11,30 @@ doclet.Window_Class_Hierarchy=Class Hierarchy ...@@ -11,54 +11,30 @@ doclet.Window_Class_Hierarchy=Class Hierarchy
doclet.Interface_Hierarchy=Interface Hierarchy doclet.Interface_Hierarchy=Interface Hierarchy
doclet.Enum_Hierarchy=Enum Hierarchy doclet.Enum_Hierarchy=Enum Hierarchy
doclet.Annotation_Type_Hierarchy=Annotation Type Hierarchy doclet.Annotation_Type_Hierarchy=Annotation Type Hierarchy
# The following ALL CAPS words should be translated. It is used as "Previous" link on javadoc. doclet.Prev=Prev
doclet.Prev=PREV doclet.Next=Next
# The following ALL CAPS words should be translated. It is used as "Next" link on javadoc. doclet.Prev_Class=Prev Class
doclet.Next=NEXT doclet.Next_Class=Next Class
# The following ALL CAPS words should be translated. It is used as "Previous Class" link on javadoc. doclet.Prev_Package=Prev Package
doclet.Prev_Class=PREV CLASS doclet.Next_Package=Next Package
# The following ALL CAPS words should be translated. It is used as "Next Class" link on javadoc. doclet.Prev_Letter=Prev Letter
doclet.Next_Class=NEXT CLASS doclet.Next_Letter=Next Letter
# The following ALL CAPS words should be translated. It is used as "Previous Package" link on javadoc.
doclet.Prev_Package=PREV PACKAGE
# The following ALL CAPS words should be translated. It is used as "Next Package" link on javadoc.
doclet.Next_Package=NEXT PACKAGE
# The following ALL CAPS words should be translated. It is used as "Previous Letter" link on javadoc alphabetical index.
doclet.Prev_Letter=PREV LETTER
# The following ALL CAPS words should be translated. It is used as "Next Letter" link on javadoc alphabetical index.
doclet.Next_Letter=NEXT LETTER
# The following ALL CAPS words should be translated. It is used as "Show List" link on javadoc.
doclet.Show_Lists=SHOW LISTS
# The following ALL CAPS words should be translated. It is used as "Hide List" link on javadoc.
doclet.Hide_Lists=HIDE LISTS
doclet.Href_Class_Title=class in {0} doclet.Href_Class_Title=class in {0}
doclet.Href_Interface_Title=interface in {0} doclet.Href_Interface_Title=interface in {0}
doclet.Href_Annotation_Title=annotation in {0} doclet.Href_Annotation_Title=annotation in {0}
doclet.Href_Enum_Title=enum in {0} doclet.Href_Enum_Title=enum in {0}
doclet.Href_Type_Param_Title=type parameter in {0} doclet.Href_Type_Param_Title=type parameter in {0}
doclet.Href_Class_Or_Interface_Title=class or interface in {0} doclet.Href_Class_Or_Interface_Title=class or interface in {0}
# The following ALL CAPS words should be translated. It's used as SUMMARY: NESTED | FIELD | CONSTR | METHOD, meaning Nested Class Summary, Field Summary, Constructor Summary, or Method Summary. doclet.Summary=Summary:
doclet.Summary=SUMMARY: doclet.Detail=Detail:
# The following ALL CAPS words should be translated. It is used as DETAIL: FIELD | CONSTR | METHOD, meaning Field Detail, Constructor Detail, or Method Detail. doclet.navNested=Nested
doclet.Detail=DETAIL: doclet.navAnnotationTypeOptionalMember=Optional
# The following ALL CAPS words should be translated. It is used as "Nested" (Nested Class Summary) link on javadoc. doclet.navAnnotationTypeRequiredMember=Required
doclet.navNested=NESTED doclet.navAnnotationTypeMember=Element
# The following ALL CAPS words should be translated. It is used as "Optional" (Optional Element Summary) link on javadoc. doclet.navField=Field
doclet.navAnnotationTypeOptionalMember=OPTIONAL doclet.navEnum=Enum Constants
# The following ALL CAPS words should be translated. It is used as "Required" (Required Element Summary) link on javadoc. doclet.navConstructor=Constr
doclet.navAnnotationTypeRequiredMember=REQUIRED doclet.navMethod=Method
# The following ALL CAPS words should be translated. It is used as "Element" (Required Element Summary) link on javadoc.
doclet.navAnnotationTypeMember=ELEMENT
# The following ALL CAPS words should be translated. It is used as "Field" (Field Detail) link on javadoc.
doclet.navField=FIELD
# The following ALL CAPS words should be translated. It is used as "Enum Constants" link on javadoc.
doclet.navEnum=ENUM CONSTANTS
# The following ALL CAPS words should be translated. It is used as "Constructor" (Constructor Detail) link on javadoc.
doclet.navConstructor=CONSTR
# The following ALL CAPS words should be translated. It is used as "Method" (Method Detail) link on javadoc.
doclet.navMethod=METHOD
# The following resource does not seem to be used anymore.
doclet.navFactoryMethod=FACTORY
doclet.Index=Index doclet.Index=Index
doclet.Window_Single_Index=Index doclet.Window_Single_Index=Index
doclet.Window_Split_Index={0}-Index doclet.Window_Split_Index={0}-Index
...@@ -66,12 +42,6 @@ doclet.Help=Help ...@@ -66,12 +42,6 @@ doclet.Help=Help
doclet.Skip_navigation_links=Skip navigation links doclet.Skip_navigation_links=Skip navigation links
doclet.New_Page=NewPage doclet.New_Page=NewPage
doclet.None=None doclet.None=None
# The following resource does not seem to be used anymore
doclet.CLASSES=CLASSES
# The following resource does not seem to be used anymore
doclet.MEMBERS=MEMBERS
# The following resource does not seem to be used anymore
doclet.NONE=NONE
doclet.Factory_Method_Detail=Static Factory Method Detail doclet.Factory_Method_Detail=Static Factory Method Detail
doclet.navDeprecated=Deprecated doclet.navDeprecated=Deprecated
doclet.Deprecated_List=Deprecated List doclet.Deprecated_List=Deprecated List
...@@ -136,10 +106,7 @@ doclet.also=also ...@@ -136,10 +106,7 @@ doclet.also=also
doclet.Option=Option doclet.Option=Option
doclet.Or=Or doclet.Or=Or
doclet.Frames=Frames doclet.Frames=Frames
# The following ALL CAPS words should be translated. It is used as "FRAMES" javadoc navigation link to indicate displaying the page with HTML frames. doclet.No_Frames=No Frames
doclet.FRAMES=FRAMES
# The following ALL CAPS words should be translated. It is used as "NO FRAMES" javadoc navigation link to indicate displaying the page without HTML frames.
doclet.NO_FRAMES=NO FRAMES
doclet.Package_Hierarchies=Package Hierarchies: doclet.Package_Hierarchies=Package Hierarchies:
doclet.Hierarchy_For_Package=Hierarchy For Package {0} doclet.Hierarchy_For_Package=Hierarchy For Package {0}
doclet.Source_Code=Source Code: doclet.Source_Code=Source Code:
......
...@@ -142,19 +142,19 @@ ul.navList li.navBarCell1Rev { ...@@ -142,19 +142,19 @@ ul.navList li.navBarCell1Rev {
.subNav ul.navList { .subNav ul.navList {
float:left; float:left;
margin:0; margin:0;
font-size:0.7em; font-size:0.8em;
width:350px; width:350px;
} }
ul.subNavList { ul.subNavList {
float:left; float:left;
margin:0; margin:0;
font-size:0.7em; font-size:0.8em;
width:350px; width:350px;
} }
ul.subNavList li{ ul.subNavList li{
list-style:none; list-style:none;
float:left; float:left;
font-size:90%; font-size:98%;
} }
/* /*
Page header and footer styles Page header and footer styles
......
/* /*
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
/* /*
* @test * @test
* @bug 4665566 4855876 * @bug 4665566 4855876 7025314
* @summary Verify that the output has the right javascript. * @summary Verify that the output has the right javascript.
* @author jamieh * @author jamieh
* @library ../lib/ * @library ../lib/
...@@ -45,9 +45,9 @@ public class TestJavascript extends JavadocTester { ...@@ -45,9 +45,9 @@ public class TestJavascript extends JavadocTester {
//Input for string search tests. //Input for string search tests.
private static final String[][] TEST = { private static final String[][] TEST = {
{BUG_ID + FS + "pkg" + FS + "C.html", {BUG_ID + FS + "pkg" + FS + "C.html",
"<a href=\"../index.html?pkg/C.html\" target=\"_top\">FRAMES</a>"}, "<a href=\"../index.html?pkg/C.html\" target=\"_top\">Frames</a>"},
{BUG_ID + FS + "TestJavascript.html", {BUG_ID + FS + "TestJavascript.html",
"<a href=\"index.html?TestJavascript.html\" target=\"_top\">FRAMES</a>"}, "<a href=\"index.html?TestJavascript.html\" target=\"_top\">Frames</a>"},
{BUG_ID + FS + "index.html", {BUG_ID + FS + "index.html",
"<script type=\"text/javascript\">" + NL + "<script type=\"text/javascript\">" + NL +
" targetPage = \"\" + window.location.search;" + NL + " targetPage = \"\" + window.location.search;" + NL +
......
/* /*
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
/* /*
* @test * @test
* @bug 4131628 4664607 * @bug 4131628 4664607 7025314
* @summary Make sure the Next/Prev Class links iterate through all types. * @summary Make sure the Next/Prev Class links iterate through all types.
* Make sure the navagation is 2 columns, not 3. * Make sure the navagation is 2 columns, not 3.
* @author jamieh * @author jamieh
...@@ -45,20 +45,20 @@ public class TestNavagation extends JavadocTester { ...@@ -45,20 +45,20 @@ public class TestNavagation extends JavadocTester {
//Input for string search tests. //Input for string search tests.
private static final String[][] TEST = { private static final String[][] TEST = {
{BUG_ID + FS + "pkg" + FS + "A.html", "<li>PREV CLASS</li>"}, {BUG_ID + FS + "pkg" + FS + "A.html", "<li>Prev Class</li>"},
{BUG_ID + FS + "pkg" + FS + "A.html", {BUG_ID + FS + "pkg" + FS + "A.html",
"<a href=\"../pkg/C.html\" title=\"class in pkg\"><span class=\"strong\">NEXT CLASS</span></a>"}, "<a href=\"../pkg/C.html\" title=\"class in pkg\"><span class=\"strong\">Next Class</span></a>"},
{BUG_ID + FS + "pkg" + FS + "C.html", {BUG_ID + FS + "pkg" + FS + "C.html",
"<a href=\"../pkg/A.html\" title=\"annotation in pkg\"><span class=\"strong\">PREV CLASS</span></a>"}, "<a href=\"../pkg/A.html\" title=\"annotation in pkg\"><span class=\"strong\">Prev Class</span></a>"},
{BUG_ID + FS + "pkg" + FS + "C.html", {BUG_ID + FS + "pkg" + FS + "C.html",
"<a href=\"../pkg/E.html\" title=\"enum in pkg\"><span class=\"strong\">NEXT CLASS</span></a>"}, "<a href=\"../pkg/E.html\" title=\"enum in pkg\"><span class=\"strong\">Next Class</span></a>"},
{BUG_ID + FS + "pkg" + FS + "E.html", {BUG_ID + FS + "pkg" + FS + "E.html",
"<a href=\"../pkg/C.html\" title=\"class in pkg\"><span class=\"strong\">PREV CLASS</span></a>"}, "<a href=\"../pkg/C.html\" title=\"class in pkg\"><span class=\"strong\">Prev Class</span></a>"},
{BUG_ID + FS + "pkg" + FS + "E.html", {BUG_ID + FS + "pkg" + FS + "E.html",
"<a href=\"../pkg/I.html\" title=\"interface in pkg\"><span class=\"strong\">NEXT CLASS</span></a>"}, "<a href=\"../pkg/I.html\" title=\"interface in pkg\"><span class=\"strong\">Next Class</span></a>"},
{BUG_ID + FS + "pkg" + FS + "I.html", {BUG_ID + FS + "pkg" + FS + "I.html",
"<a href=\"../pkg/E.html\" title=\"enum in pkg\"><span class=\"strong\">PREV CLASS</span></a>"}, "<a href=\"../pkg/E.html\" title=\"enum in pkg\"><span class=\"strong\">Prev Class</span></a>"},
{BUG_ID + FS + "pkg" + FS + "I.html", "<li>NEXT CLASS</li>"}, {BUG_ID + FS + "pkg" + FS + "I.html", "<li>Next Class</li>"},
// Test for 4664607 // Test for 4664607
{BUG_ID + FS + "pkg" + FS + "I.html", {BUG_ID + FS + "pkg" + FS + "I.html",
"<a href=\"#skip-navbar_top\" title=\"Skip navigation links\"></a><a name=\"navbar_top_firstrow\">" + NL + "<a href=\"#skip-navbar_top\" title=\"Skip navigation links\"></a><a name=\"navbar_top_firstrow\">" + NL +
......
/* /*
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
/* /*
* @test * @test
* @bug 4789689 4905985 4927164 4827184 4993906 5004549 * @bug 4789689 4905985 4927164 4827184 4993906 5004549 7025314
* @summary Run Javadoc on a set of source files that demonstrate new * @summary Run Javadoc on a set of source files that demonstrate new
* language features. Check the output to ensure that the new * language features. Check the output to ensure that the new
* language features are properly documented. * language features are properly documented.
...@@ -155,14 +155,14 @@ public class TestNewLanguageFeatures extends JavadocTester { ...@@ -155,14 +155,14 @@ public class TestNewLanguageFeatures extends JavadocTester {
//================================= //=================================
//Make sure the summary links are correct. //Make sure the summary links are correct.
{BUG_ID + FS + "pkg" + FS + "AnnotationType.html", {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
"<li>SUMMARY:&nbsp;</li>" + NL + "<li>Summary:&nbsp;</li>" + NL +
"<li><a href=\"#annotation_type_required_element_summary\">" + "<li><a href=\"#annotation_type_required_element_summary\">" +
"REQUIRED</a>&nbsp;|&nbsp;</li>" + NL + "<li>" + "Required</a>&nbsp;|&nbsp;</li>" + NL + "<li>" +
"<a href=\"#annotation_type_optional_element_summary\">OPTIONAL</a></li>"}, "<a href=\"#annotation_type_optional_element_summary\">Optional</a></li>"},
//Make sure the detail links are correct. //Make sure the detail links are correct.
{BUG_ID + FS + "pkg" + FS + "AnnotationType.html", {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
"<li>DETAIL:&nbsp;</li>" + NL + "<li>Detail:&nbsp;</li>" + NL +
"<li><a href=\"#annotation_type_element_detail\">ELEMENT</a></li>"}, "<li><a href=\"#annotation_type_element_detail\">Element</a></li>"},
//Make sure the heading is correct. //Make sure the heading is correct.
{BUG_ID + FS + "pkg" + FS + "AnnotationType.html", {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
"Annotation Type AnnotationType</h2>"}, "Annotation Type AnnotationType</h2>"},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册