original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Returns requested tag translations
  
  @static
  
  @param array $args
  
  @return array
docstring_tokens: Returns requested tag translations