src/wcmf/lib/model/NodeUtil.php
public static function translateValues(&$nodes, $language=null, $itemDelim=", ") {
    // translate the node values
    for($i=0; $i<sizeof($nodes); $i++) {
      $iter = new NodeValueIterator($nodes[$i], false);
      for($iter->rewind(); $iter->valid(); $iter->next()) {
        self::translateValue($iter->currentNode(), $iter->key(), $language, $itemDelim);
      }
    }
  }
public static function translateValues(&$nodes, $language=null, $itemDelim=", ") {
    // translate the node values
    for($i=0; $i<sizeof($nodes); $i++) {
      $iter = new NodeValueIterator($nodes[$i], false);
      for($iter->rewind(); $iter->valid(); $iter->next()) {
        self::translateValue($iter->currentNode(), $iter->key(), $language, $itemDelim);
      }
    }
  }
public static function translateValues ( & $ nodes , $ language = null , $ itemDelim = ", " ) { // translate the node values for ( $ i = 0 ; $ i < sizeof ( $ nodes ) ; $ i ++ ) { $ iter = new NodeValueIterator ( $ nodes [ $ i ] , false ) ; for ( $ iter -> rewind ( ) ; $ iter -> valid ( ) ; $ iter -> next ( ) ) { self :: translateValue ( $ iter -> currentNode ( ) , $ iter -> key ( ) , $ language , $ itemDelim ) ; } } }
Translate all list values in a list of Nodes.
@note Translation in this case refers to mapping list values from the key to the value
and should not be confused with localization, although values maybe localized using the
language parameter.
@param $nodes A reference to the array of Node instances
@param $language The language code, if the translated values should be localized.
Optional, default is Localizat$objectgetDefaultLanguage()
@param $itemDelim Delimiter string for array values (optional, default: ", ")
Translate all list values in a list of Nodes .