BUG 000 - Importing language issue

- bug fix, when a wrong translation row definition exists is solved now
This commit is contained in:
Erik Amaru Ortiz
2011-10-24 11:25:38 -04:00
parent d119d302e0
commit c1ab331bd4

View File

@@ -232,6 +232,13 @@ class Language extends BaseLanguage {
$errorMsg .= 'file doesn\'t exist: ' . PATH_XMLFORM . $xmlForm . "\n";
continue;
}
if (count($match) < 4) {
$near = isset($rowTranslation['msgid']) ? $rowTranslation['msgid'] :
(isset($rowTranslation['msgstr']) ? $rowTranslation['msgstr'] : '');
$errorMsg .= "Invalid Translation reference: \"$reference\", near -> ".$near."\n";
continue;
}
G::LoadSystem('dynaformhandler');
$dynaform = new dynaFormHandler(PATH_XMLFORM . $xmlForm);