United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7024963 : Notepad demo: remove non-translatable resources from Notepad.properties file

Details
Type:
Bug
Submit Date:
2011-03-06
Status:
Closed
Updated Date:
2013-07-01
Project Name:
JDK
Resolved Date:
2012-05-22
Component:
client-libs
OS:
generic
Sub-Component:
demo
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
There are some non-translatable resources in jdk/src/share/demo/jfc/Notepad/resources/Notepad.properties file. 
When translated, they cause NPE.

+# The following string should NOT be translated: ViewportBackingStore
+# The following string should NOT be translated: menubar
+# The following string should NOT be translated: file
+# The following string should NOT be translated: edit
+# The following string should NOT be translated: cutAction
+# The following string should NOT be translated: copyAction
+# The following string should NOT be translated: pasteAction
+# The following string should NOT be translated: undoAction
+# The following string should NOT be translated: redoAction
+# The following string should NOT be translated: debug
+# The following string should NOT be translated: dumpAction
+# The following string should NOT be translated: toolbar

                                    

Comments
EVALUATION

This is a bug I don't understand - 

Notepad.properties contains some resources that can be translated
like fileLabel, pasteTooltip etc...

and some which can't be translated 
like ViewportBackingStore=false
which controls the Notepad application behavior

why should they be removed?
                                     
2012-03-06
EVALUATION

We are requested to extract non-translatable resources to a new property file.
                                     
2012-03-07
EVALUATION

The non-translatable properties like ViewportBackingStore are moved to the system.properties file under the Notepad/resources directory.
                                     
2012-05-04
Checked in b96 ws.
                                     
2013-07-01



Hardware and Software, Engineered to Work Together