throws IOException
{
// load default
- loadResource( properties, new StringBuilder( resourceName ).append( ".properties" ).toString() );
+ loadResource( properties, new StringBuilder( resourceName ).append( ".properties" ).toString(), locale );
// if locale override with locale content
if ( StringUtils.isNotEmpty( locale ) )
{
loadResource( properties,
- new StringBuilder( resourceName ).append( "_" + locale ).append( ".properties" ).toString() );
+ new StringBuilder( resourceName ).append( "_" + locale ).append( ".properties" ).toString(),
+ locale );
}
}
return output.toString();
}
- private void loadResource( final Properties finalProperties, String resourceName )
+ private void loadResource( final Properties finalProperties, String resourceName, String locale )
throws IOException
{
InputStream is = null;
}
else
{
- log.info( "cannot load resource {}", resourceName );
+ if ( !StringUtils.equalsIgnoreCase( locale, "en" ) )
+ {
+ log.info( "cannot load resource {}", resourceName );
+ }
}
}
finally