public static void translateAndCache ( PmiModuleConfig cfg , Locale l ) { PmiModuleConfig aCfg = getConfig ( l , cfg . getUID ( ) ) ; if ( aCfg == null ) { aCfg = cfg . copy ( ) ; // create a copy before translating // filter sub-module entry if ( aCfg != null ) { PmiDataInfo [ ] data = aCfg . listData ( null ) ; for ( int k = data . length - 1 ; k >= 0 ; k -- ) { if ( data [ k ] . getType ( ) == PmiConstants . TYPE_SUBMODULE ) aCfg . removeData ( data [ k ] ) ; } } aCfg = translate ( aCfg , l ) ; //getNLS (l, cfg.getResourceBundle())); getConfigMap ( l ) . put ( aCfg . getUID ( ) , aCfg ) ; } }
called by PmiRegistry .