$rootSlug
$rootSlug :
Package localization for `real-product-manager-wp-client` package.
For non-utils packages you need to extend from this class and properly fill the constructor.
instance(string $rootSlug,string $packageDir): \MatthiasWeb\Utils\PackageLocalization
New instance.
string | $rootSlug | |
string | $packageDir |
override_load_textdomain(boolean $plugin_override,string $domain,string $mofile)
Cache the results of the `MO` parser in a file in `wp-content/languages/mo-cache` because it is extremely slow on some WordPress installations.
boolean | $plugin_override | |
string | $domain | |
string | $mofile |
getPackageInfo(string $type): array<mixed,string>
Get the directory where the languages folder exists.
The returned string array should look like this: [0] = Full path to the "languages" folder [1] = Used textdomain [2]? = Use different prefix domain in filename
string | $type |