Multiple Message.java

Problem

When using externalized strings from more than one Messages.java files, then the externalize string tool do not work.

mt-externalize-strings-from-other-locations

 

Solution

Extract strings from the 2nd and further Messages.java  into constants and put them at the top of the file (to find them easier).

mt-externalize-strings-from-other-locations

 

When the externalize string tool should be run, then

  • First comment out these constants, this causes an error!
  • Run the externalize string tool
  • Revert the comments, errors will disappear!

 

 

 

 

 

This page is updated for version 21.3