You have to instruct maven or whatever other build tool to include things
on resources... Also you can place a file MyApplication.properties next to
your application class and fetch localization from there. I tend to use
this last approach and only use APanel.properties or APage.properties if
those components are part of a library.


On Thu, Apr 9, 2015 at 3:28 PM, Hasan Çelik <[email protected]> wrote:

> Hi,
>
> Before I created  properties class for every class, for example,
>
> HomePage.html
> HomePage.java
> HomePage.properties
> HomePage_tr.properties
> SecondPage.html
> SecondPage.java
> SecondPage.properties
> SecondPage_tr.properties
>
> In this way, It caused visual pollution and takes a few times while
> loading... after that I decided to create one properties file instead of
> above..And I located it into the /resource directory...
>
> When I run the program, I am getting an error... As I understand program
> doesn't find the properties file in the /resource directory...I think I
> should refer it in somewhere??
>
> My question is; Is there a way to create one properties file like that for
> Internationalization ?
>



-- 
Regards - Ernesto Reinaldo Barreiro

Reply via email to