-J-Dorg.openide.util.NbBundle.DEBUG=true is useful
for finding (1) unlocalized text strings, (2)
where a given localized text string visible in the
GUI came from.
Suggest that this flag also turn on a mode where
all localized image lookups
(NbBundle.getLocalizedFile, nbresloc:) also
display the image origin - this is useful e.g.
when figuring out what to brand. It may also be
useful for figuring out which unlocalized images
ought to be localized.
With the switch on, when a GIF/PNG/JPEG image were
loaded via a localized lookup, NbBundle would (1)
print the physical URL (typically a jar: URL) to
console together with a sequence number (decimal
or hexadecimal); (2) draw the sequence number over
the image and supply an fake image file URL (use
URL constructor with URLStreamHandler param?) with
the modified content (must make sure this works
with alpha channels). To draw the sequence number,
can use Java2D perhaps, or just hardcode bitmaps
for [0123456789ABCDEF]. Suggest they be in 8x8
blocks with 1-pixel internal margins, so a typical
16x16 icon could fit a 4-digit number. For
reliable visibility, may want to draw sequence
number in black with yellow trim.
Would provide a quick way to determine which images are already
localized, as requested in issue #22156.