class_docstr: A ResourceBundle manages internationalization of string resources
docstr: Initialize a ResourceBundle
  
  :param str bundle_name:
      The base name of the ResourceBundle
  :param str | None bundle_locale:
      The specific locale consisting of a ISO 639-1 language code,
      a script code, an ISO 3166-1 alpha-2 country code and a variant code
      separated by underscores.
      The format for a locale therefore is 'language_script_country_variant'
      like 'en_Latn_US_WINDOWS' or parts of it like 'en_US'
  :param str | PathLike | None path:
      The path to the ResourceBundle .properties files
      (default: current working directory)
docstr_tok: ["Initialize","a","ResourceBundle",":","param","str","bundle_name",":","The","base","name","of","the","ResourceBundle",":","param","str","|","None","bundle_locale",":","The","specific","locale","consisting","of","a","ISO","639-1","language","code",",","a","script","code",",","an","ISO","3166-1","alpha-2","country","code","and","a","variant","code","separated","by","underscores",".","The","format","for","a","locale","therefore","is","'language_script_country_variant'","like","'en_Latn_US_WINDOWS","'","or","parts","of","it","like","'en_US'",":","param","str","|","PathLike","|","None","path",":","The","path","to","the","ResourceBundle",".properties","files","(","default",":","current","working","directory",")"]
code: def __init__(
      self,
      bundle_name: str,
      bundle_locale: str | None,
      *,
      path: str | PathLike = None,
  ) -> None:
      """
      Initialize a ResourceBundle
  
      :param str bundle_name:
          The base name of the ResourceBundle
      :param str | None bundle_locale:
          The specific locale consisting of a ISO 639-1 language code,
          a script code, an ISO 3166-1 alpha-2 country code and a variant code
          separated by underscores.
          The format for a locale therefore is 'language_script_country_variant'
          like 'en_Latn_US_WINDOWS' or parts of it like 'en_US'
      :param str | PathLike | None path:
          The path to the ResourceBundle .properties files
          (default: current working directory)
      """
      self._name: str = bundle_name
      self._locale: str | None = bundle_locale
      self._path: Path = self._ensure_path(path)
      self._parent: ResourceBundle | None = self._get_parent_bundle()
      self._mapping: dict[str, str] = self._map()
      # Save self in cache
      self.__cached_bundles[self.name] = self
  
imports: from __future__ import annotations
  import codecs
  import os
  import re
  from os import PathLike
  from pathlib import Path
  from typing import KeysView, Sequence
  from .exceptions import MalformedResourceBundleError, NotInResourceBundleError
label_desc: Use image node_id 1 to create a new ResourceBundle object from inherited base classes: object with example: obj = ResourceBundle(bundle_name, bundle_locale)