}
- private String fromProperties( Properties properties )
+ private String fromProperties( final Properties properties )
{
StringBuilder output = new StringBuilder();
return output.toString();
}
- private void loadResource( Properties properties, String resourceName )
+ private void loadResource( final Properties finalProperties, String resourceName )
throws IOException
{
InputStream is = null;
-
+ Properties properties = new Properties();
try
{
is = Thread.currentThread().getContextClassLoader().getResourceAsStream( resourceName.toString() );
if ( is != null )
{
properties.load( is );
+ finalProperties.putAll( properties );
+ }
+ else
+ {
+ log.info( "cannot load resource {}", resourceName );
}
}
finally
$.log("use browserLang:"+browserLang);
// -- archiva
// load default
- loadAndParseFile("restServices/archivaServices/commonServices/getAllI18nResources", {cache:false, mode: 'map',encoding:'utf-8'});
- if (browserLang!='en'){
- loadAndParseFile("restServices/archivaServices/commonServices/getAllI18nResources?locale="+browserLang, {cache:false, mode: 'map',encoding:'utf-8'});
- }
+ //loadAndParseFile("restServices/archivaServices/commonServices/getAllI18nResources", {cache:false, mode: 'map',encoding:'utf-8'});
+ //if (browserLang!='en'){
+ loadAndParseFile("restServices/archivaServices/commonServices/getAllI18nResources?locale="+browserLang, {cache:false, mode: 'map',encoding:'utf-8'});
+ //}
});
\ No newline at end of file