Greetings,
I am interested in how to use the TranslationSource interface when getting a translation file instead of the File class, since loadTranslations(File filename) is getting deprecated.
The former code went like this in the context listener for example:
// Loads the URL for a file named "translations.xml" from
// your application's classpath.
URL url = YourApplication.class.getClassLoader().getResource(
"translations.xml");
// Create a file instance using the URL
File file = new File(url.getPath());
// Instruct the InternationalizationServlet to load into memory any
// translations found in the file
InternationalizationServlet.loadTranslations(file);
now i need to replace the loadTranslations(file) with loadTranslations(TranslationSource source) and i am wondering how to do that?
Thanks for any replies,
Adam