October\Rain\Translation\FileLoader

Extends:

  • Illuminate\Translation\FileLoader

Implements:

  • Illuminate\Contracts\Translation\Loader

FileLoader specifies a custom location for overriding translations

Protected properties

There are no protected properties in the class.

Show inherited protected properties

Inherited protected properties

  • protected Illuminate\Filesystem\Filesystem $files - defined in Illuminate\Translation\FileLoader. The filesystem instance.
  • protected string $path - defined in Illuminate\Translation\FileLoader. The default path for the loader.
  • protected array $jsonPaths - defined in Illuminate\Translation\FileLoader. All of the registered paths to JSON translation files.
  • protected array $hints - defined in Illuminate\Translation\FileLoader. All of the namespace hints.

Public methods

Show inherited public methods

Inherited public methods

  • public void __construct(Illuminate\Filesystem\Filesystem $files, string $path) - defined in Illuminate\Translation\FileLoader. Create a new file loader instance.
  • public void addJsonPath(string $path) - defined in Illuminate\Translation\FileLoader. Add a new JSON path to the loader.
  • public void addNamespace(string $namespace, string $hint) - defined in Illuminate\Translation\FileLoader. Add a new namespace to the loader.
  • public array load(string $locale, string $group, string|null $namespace=NULL) - defined in Illuminate\Translation\FileLoader. Load the messages for the given locale.
  • public array namespaces() - defined in Illuminate\Translation\FileLoader. Get an array of all the registered namespaces.

Protected methods

protected void loadNamespaceOverrides($lines, $locale, $group, $namespace)

loadNamespaceOverrides loads a local namespaced translation group for overrides

Parameters
  • $lines
  • $locale
  • $group
  • $namespace

Show inherited protected methods

Inherited protected methods

  • protected array loadJsonPaths(string $locale) - defined in Illuminate\Translation\FileLoader. Load a locale from the given JSON file path.
  • protected array loadNamespaced(string $locale, string $group, string $namespace) - defined in Illuminate\Translation\FileLoader. Load a namespaced translation group.
  • protected array loadPath(string $path, string $locale, string $group) - defined in Illuminate\Translation\FileLoader. Load a locale from a given path.