Several times now I have encountered Strings in uDig that indicated that they are externalized (they have //$NON-NLS-1$ after them) but infact they are not (and they should be! they appear in the UI!).

Because this is very problematic (and will prevent us from ever fully internationalizing the GUI, I have added a warning to the Project Guide, under Eclipse Preferences.

http://udig.refractions.net/confluence/display/UDIG/Eclipse+Preferences

The problem is that it that this method of internationalization is problematic. It is easy in Eclipse to hit ctrl-1 and enter to make the warning go away. If the String is moved at some later point, the comment doesn't automatically follow it. (I can't imagine what would happen if we Jalopy'd the code!)

So, to developers: PLEASE disable this warning if you do not intend to externalize your strings. (No one will complain if you don't - someone will just come along and do it for you when it comes time to internationalize)

:)

Richard
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to