public static void addBundle(@NotNull PathsList classPath,@NotNull String bundlePath,@NotNull Class<?> contextClass){
  String pathToUse=bundlePath.replace('.','/');
  if (!pathToUse.endsWith(".properties")) {
    pathToUse+=".properties";
  }
  if (!pathToUse.startsWith("/")) {
    pathToUse='/' + pathToUse;
  }
  String root=PathManager.getResourceRoot(contextClass,pathToUse);
  if (root != null) {
    classPath.add(root);
  }
}

public static void addBundle ( @ NotNull PathsList classPath , @ NotNull String bundlePath , @ NotNull Class < ? > contextClass ) { String pathToUse = bundlePath . replace ( '.' , '/' ) ; if ( ! pathToUse . endsWith ( ".properties" ) ) { pathToUse += ".properties" ; } if ( ! pathToUse . startsWith ( "/" ) ) { pathToUse = '/' + pathToUse ; } String root = PathManager . getResourceRoot ( contextClass , pathToUse ) ; if ( root != null ) { classPath . add ( root ) ; } }
configures given classpath to reference target i18n bundle file ( s ) .
