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:
@@ -348,7 +348,7 @@ class Language extends BaseLanguage {
|
|||||||
//export translation
|
//export translation
|
||||||
|
|
||||||
$aLabels = array();
|
$aLabels = array();
|
||||||
$aMsgids = array();
|
$aMsgids = array('' => true);
|
||||||
|
|
||||||
// selecting all translations records of base language 'en' on TRANSLATIONS table
|
// selecting all translations records of base language 'en' on TRANSLATIONS table
|
||||||
$oCriteria = new Criteria('workflow');
|
$oCriteria = new Criteria('workflow');
|
||||||
@@ -428,7 +428,7 @@ class Language extends BaseLanguage {
|
|||||||
|
|
||||||
//now find labels in xmlforms
|
//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
|
//find all xml files into PATH_XMLFORM
|
||||||
$aXMLForms = glob(PATH_XMLFORM . '*/*.xml');
|
$aXMLForms = glob(PATH_XMLFORM . '*/*.xml');
|
||||||
|
|||||||
Reference in New Issue
Block a user