public function availble()
    {
        $locales = [];
        $d       = dir(self::$i18n);
        while (false !== ($entry   = $d->read())) {
            if (($entry[0] != '.') && file_exists(self::$i18n.'/'.$entry.'/LC_MESSAGES/'.self::$textDomain.'.mo')) {
                $locales[$entry] = _(self::$alllngs[$entry]);
            }
        }
        $d->close();
        return $locales;
    }
public function availble()
    {
        $locales = [];
        $d       = dir(self::$i18n);
        while (false !== ($entry   = $d->read())) {
            if (($entry[0] != '.') && file_exists(self::$i18n.'/'.$entry.'/LC_MESSAGES/'.self::$textDomain.'.mo')) {
                $locales[$entry] = _(self::$alllngs[$entry]);
            }
        }
        $d->close();
        return $locales;
    }
public function availble ( ) { $ locales = [ ] ; $ d = dir ( self :: $ i18n ) ; while ( false !== ( $ entry = $ d -> read ( ) ) ) { if ( ( $ entry [ 0 ] != '.' ) && file_exists ( self :: $ i18n . '/' . $ entry . '/LC_MESSAGES/' . self :: $ textDomain . '.mo' ) ) { $ locales [ $ entry ] = _ ( self :: $ alllngs [ $ entry ] ) ; } } $ d -> close ( ) ; return $ locales ; }
List of availble locales

@return array locales availble
List of availble locales