PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
sitepress-multilingual-cms
/
classes
/
xliff
<?php class WPML_TM_String_Xliff_Reader extends WPML_TM_Xliff_Reader { /** * Retrieve the string translations from a XLIFF * * @param string $content The XLIFF representing a set of strings * * @return WP_Error|array The string translation representation or WP_Error * on failure */ public function get_data( $content ) { $xliff = $this->load_xliff( $content ); $data = array(); if ( $xliff && ! $xliff instanceof WP_Error ) { /** @var SimpleXMLElement $node */ foreach ( $xliff->{'file'}->{'body'}->children() as $node ) { $target = $this->get_xliff_node_target( $node ); if ( ! $target && $target !== '0' ) { return $this->invalid_xliff_error(); } $target = $this->replace_xliff_new_line_tag_with_new_line( $target ); $attr = $node->attributes(); $data[ (string) $attr['id'] ] = $target; } } return $data; } }
[-] class-wpml-tm-validate-html.php
[edit]
[-] class-wpml-tm-xliff-translator-notes.php
[edit]
[-] wpml-tm-xliff.php
[edit]
[-] classs-wpml-tm-xliff-phase.php
[edit]
[-] class-wpml-tm-general-xliff-reader.php
[edit]
[-] class-wpml-tm-xliff-reader.php
[edit]
[-] class-wpml-tm-xliff-shared.php
[edit]
[-] class-wpml-tm-xliff-writer.php
[edit]
[-] class-wpml-tm-general-xliff-import.php
[edit]
[-] class-wpml-tm-xliff-reader-factory.php
[edit]
[-] class-wpml-tm-xliff-shortcodes.php
[edit]
[-] class-wpml-tm-string-xliff-reader.php
[edit]
[-] class-wpml-tm-xliff-factory.php
[edit]
[+]
..
[-] class-wpml-tm-xliff-post-type.php
[edit]
[-] class-wpml-tm-xliff-frontend.php
[edit]