JDK-7024963 : Notepad demo: remove non-translatable resources from Notepad.properties file
  • Type: Bug
  • Component: client-libs
  • Sub-Component: demo
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-03-06
  • Updated: 2014-10-13
  • Resolved: 2012-05-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u6Fixed 8 b40Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
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
Checked in b96 ws.
01-07-2013

EVALUATION The non-translatable properties like ViewportBackingStore are moved to the system.properties file under the Notepad/resources directory.
04-05-2012

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

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?
06-03-2012