BUG 9648 Duplicate identifier in english po SOLVED

- The msgid don't validate correctly the empty string
- Add validation to prevent msgid values duplicated
This commit is contained in:
Julio Cesar Laura
2012-08-21 16:06:22 -04:00
parent 036387cc5b
commit 2e2de1fce2

View File

@@ -348,7 +348,7 @@ class Language extends BaseLanguage {
//export translation
$aLabels = array();
$aMsgids = array();
$aMsgids = array('' => true);
// selecting all translations records of base language 'en' on TRANSLATIONS table
$oCriteria = new Criteria('workflow');
@@ -428,7 +428,7 @@ class Language extends BaseLanguage {
//now find labels in xmlforms
/************/
$aExceptionFields = array('', 'javascript', 'hidden', 'phpvariable', 'private', 'toolbar', 'xmlmenu', 'toolbutton', 'cellmark', 'grid');
$aExceptionFields = array('', 'javascript', 'hidden', 'phpvariable', 'private', 'toolbar', 'xmlmenu', 'toolbutton', 'cellmark', 'grid', 'CheckboxTable');
//find all xml files into PATH_XMLFORM
$aXMLForms = glob(PATH_XMLFORM . '*/*.xml');