static public function tagtranslations( $args )
    {
        $returnArray = array(
            'status' => 'success',
            'message' => '',
            'translations' => false
        );

        $http = eZHTTPTool::instance();

        $tagID = (int) $http->postVariable( 'tag_id', 0 );
        $tag = eZTagsObject::fetchWithMainTranslation( $tagID );
        if ( !$tag instanceof eZTagsObject )
            return $returnArray;

        $returnArray['translations'] = array();

        /** @var eZTagsKeyword[] $tagTranslations */
        $tagTranslations = $tag->getTranslations();
        if ( !is_array( $tagTranslations ) || empty( $tagTranslations ) )
            return $returnArray;

        foreach ( $tagTranslations as $translation )
        {
            $returnArray['translations'][] = array(
                'locale'      => $translation->attribute( 'locale' ),
                'translation' => $translation->attribute( 'keyword' )
            );
        }

        return $returnArray;
    }
static public function tagtranslations( $args )
    {
        $returnArray = array(
            'status' => 'success',
            'message' => '',
            'translations' => false
        );

        $http = eZHTTPTool::instance();

        $tagID = (int) $http->postVariable( 'tag_id', 0 );
        $tag = eZTagsObject::fetchWithMainTranslation( $tagID );
        if ( !$tag instanceof eZTagsObject )
            return $returnArray;

        $returnArray['translations'] = array();

        /** @var eZTagsKeyword[] $tagTranslations */
        $tagTranslations = $tag->getTranslations();
        if ( !is_array( $tagTranslations ) || empty( $tagTranslations ) )
            return $returnArray;

        foreach ( $tagTranslations as $translation )
        {
            $returnArray['translations'][] = array(
                'locale'      => $translation->attribute( 'locale' ),
                'translation' => $translation->attribute( 'keyword' )
            );
        }

        return $returnArray;
    }
static public function tagtranslations ( $ args ) { $ returnArray = array ( 'status' => 'success' , 'message' => '' , 'translations' => false ) ; $ http = eZHTTPTool :: instance ( ) ; $ tagID = ( int ) $ http -> postVariable ( 'tag_id' , 0 ) ; $ tag = eZTagsObject :: fetchWithMainTranslation ( $ tagID ) ; if ( ! $ tag instanceof eZTagsObject ) return $ returnArray ; $ returnArray [ 'translations' ] = array ( ) ; /** @var eZTagsKeyword[] $tagTranslations */ $ tagTranslations = $ tag -> getTranslations ( ) ; if ( ! is_array ( $ tagTranslations ) || empty ( $ tagTranslations ) ) return $ returnArray ; foreach ( $ tagTranslations as $ translation ) { $ returnArray [ 'translations' ] [ ] = array ( 'locale' => $ translation -> attribute ( 'locale' ) , 'translation' => $ translation -> attribute ( 'keyword' ) ) ; } return $ returnArray ; }
Returns requested tag translations

@static

@param array $args

@return array
Returns requested tag translations