Backend\Core\Installer\ModuleInstaller::getLocale PHP Method

getLocale() protected method

Get a locale item.
protected getLocale ( string $name, string $module = 'Core', string $language = 'en', string $type = 'lbl', string $application = 'Backend' ) : string
$name string
$module string
$language string The language abbreviation.
$type string The type of locale.
$application string
return string
    protected function getLocale($name, $module = 'Core', $language = 'en', $type = 'lbl', $application = 'Backend')
    {
        $translation = (string) $this->getDB()->getVar('SELECT value
             FROM locale
             WHERE name = ? AND module = ? AND language = ? AND type = ? AND application = ?', array((string) $name, (string) $module, (string) $language, (string) $type, (string) $application));
        return $translation != '' ? $translation : $name;
    }