BUG 5932: SOLVED, Now routing rule with evaluation have 'End of process' option

This commit is contained in:
erik
2011-03-16 17:53:00 -04:00
committed by Alexandre Rosenfeld
parent 94571aaef8
commit 0651e049c6
3 changed files with 36 additions and 13 deletions

View File

@@ -173,7 +173,7 @@ foreach ($aXMLForms as $xmlFormPath) {
//get all fields of each xmlform
foreach ($dynaNodes as $oNode) {
$sNodeName = $oNode->nodeName;
//$arrayNode = $dynaForm->getArray($oNode, Array('type', $_BASE_LANG, $_BASE_LANG));
$arrayNode = $dynaForm->getArray($oNode);
@@ -190,6 +190,11 @@ foreach ($aXMLForms as $xmlFormPath) {
$langNode = $arrayNode[$_BASE_LANG][0];
$originNodeText = getTextValue($langNode);
}
/*if( strpos($xmlFormPath, 'patterns/patterns_GridParallelByEvaluationType.xml') !== false){
g::pr($arrayNode);
g::dump(getTextValue($langNode));
}*/
// Getting the Base Target Text
if( isset($arrayNode[$_TARGET_LANG]) ) {
@@ -214,13 +219,19 @@ foreach ($aXMLForms as $xmlFormPath) {
// if the nodeName already exists in the po file, we need to create other msgid
if( isset($aMsgids[$msgid]) )
$msgid = '[' . $xmlFormFile . '?' . $nodeName . ']' . $originNodeText;
$msgid = '[' . $xmlFormFile . '?' . $nodeName . '] ' . $originNodeText;
$poFile->addTranslatorComment($xmlFormFile . '?' . $nodeName);
$poFile->addTranslatorComment($xmlFormFile);
$poFile->addReference($nodeType . ' - ' . $nodeName);
$poFile->addTranslation($msgid, stripslashes($targetNodeText));
/*if( strpos($xmlFormPath, 'patterns/patterns_GridParallelByEvaluationType.xml') !== false){
echo 'msgstr: ' .$msgid, stripslashes($targetNodeText);
echo '<br>';
}*/
$aMsgids[$msgid] = true;
//if this node has options child nodes