private void updateLocaleVariants ( ResourceBrowser rsBrowser , String path , Set < String > localeVariants ) { Set < String > skinPaths = rsBrowser . getResourceNames ( path ) ; for ( Iterator < String > itSkinPath = skinPaths . iterator ( ) ; itSkinPath . hasNext ( ) ; ) { String skinPath = path + itSkinPath . next ( ) ; if ( rsBrowser . isDirectory ( skinPath ) ) { String skinDirName = PathNormalizer . getPathName ( skinPath ) ; if ( LocaleUtils . LOCALE_SUFFIXES . contains ( skinDirName ) ) { localeVariants . add ( skinDirName ) ; } } } }
Update the locale variants from the directory path given in parameter