Strata\I18n\i18n

Handles code localization using Gettext for PHP.

This requires a PHP installation that is compiled with extension=php_gettext.dll

    Synopsis

    class i18n {
    • // constants
    • const DOMAIN = "strata_i18n";
    }

    Constants

    Name Value
    DOMAIN "strata_i18n"

    Members

    protected

    • $currentLocale
      Locale @var Locale The locale that is currently active.
    • $locales — array

    Methods

    private

    protected

    • parseLocalesFromConfig() — Goes through the list of localization configurations values in Strata's configuration file.
    • registerHooks() — Registers the Wordpress hooks required by this class.

    public