I am trying to develop a new application which supports multiple languages by just a click of a button. Starting from scratch seems really easy and fun. After all, it is a new application and you get to decide how to go about doing it.
Now the problem arise because I have an existing application, and it is very huge in size (about 200 JSP forms and 100 JAVA files), which needs to implement this multiple languages feature as well.
Say I have a screen which shows a list of animal names in English and when the user clicks on Dutch, the list will be presented in Dutch accordingly.
Assuming I have a function called “getAnimalNames()” which previously does not require any parameter. In order to implement the multi language feature I need to know what language does the user wants it to appear as. Probably I should change it to “getAnimalNames(LanguageType)”.
What would be the easiest way to implement this without having to run through 200 pages of JSPs and 100 JAVA one by one just to introduce an extra parameter to each and every of the functions/methods?