concrete/src/Permission/Key/Key.php
public static function exportTranslations()
    {
        $translations = new Translations();
        $categories = PermissionKeyCategory::getList();
        foreach ($categories as $cat) {
            $permissions = static::getList($cat->getPermissionKeyCategoryHandle());
            foreach ($permissions as $p) {
                $translations->insert('PermissionKeyName', $p->getPermissionKeyName());
                if ($p->getPermissionKeyDescription()) {
                    $translations->insert('PermissionKeyDescription', $p->getPermissionKeyDescription());
                }
            }
        }

        return $translations;
    }
public static function exportTranslations()
    {
        $translations = new Translations();
        $categories = PermissionKeyCategory::getList();
        foreach ($categories as $cat) {
            $permissions = static::getList($cat->getPermissionKeyCategoryHandle());
            foreach ($permissions as $p) {
                $translations->insert('PermissionKeyName', $p->getPermissionKeyName());
                if ($p->getPermissionKeyDescription()) {
                    $translations->insert('PermissionKeyDescription', $p->getPermissionKeyDescription());
                }
            }
        }

        return $translations;
    }
public static function exportTranslations ( ) { $ translations = new Translations ( ) ; $ categories = PermissionKeyCategory :: getList ( ) ; foreach ( $ categories as $ cat ) { $ permissions = static :: getList ( $ cat -> getPermissionKeyCategoryHandle ( ) ) ; foreach ( $ permissions as $ p ) { $ translations -> insert ( 'PermissionKeyName' , $ p -> getPermissionKeyName ( ) ) ; if ( $ p -> getPermissionKeyDescription ( ) ) { $ translations -> insert ( 'PermissionKeyDescription' , $ p -> getPermissionKeyDescription ( ) ) ; } } } return $ translations ; }
Export the strings that should be translated.

@return \Gettext\Translations
Export the strings that should be translated .