Changeset 653
- Timestamp:
- Dec 14, 2013, 9:58:27 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Form.php
r652 r653 236 236 } else { 237 237 if(($GroupId == 13)) { 238 $names = GetTranslatNames($Text, 0, array('Dictionary' => 'Text', 'TextGlobalString' => 'Text' ) );238 $names = GetTranslatNames($Text, 0, array('Dictionary' => 'Text', 'TextGlobalString' => 'Text' ),false); 239 239 } else { 240 240 $names = GetTranslatNames($Text, 0, array('Dictionary' => 'Text')); -
trunk/includes/Version.php
r652 r653 6 6 // and system will need database update. 7 7 8 $Revision = 65 2; // Subversion revision8 $Revision = 653; // Subversion revision 9 9 $DatabaseRevision = 646; // Database structure revision 10 10 $ReleaseTime = '2013-12-14'; -
trunk/includes/global.php
r641 r653 512 512 return($TablesColumn); 513 513 } 514 function GetTranslatNames($Text,$mode,$TablesColumn )514 function GetTranslatNames($Text,$mode,$TablesColumn, $FirstBig = True) 515 515 { 516 516 global $System, $Config; … … 565 565 566 566 //find word only if is 3 characters and more, and if starts by upper char, and search only once 567 if ((strlen($ArrStr[$i]) > 3) and ( ctype_upper(substr($ArrStr[$i],0,1))) and (array_search($ArrStr[$i], $ArrStr) == $i)) {567 if ((strlen($ArrStr[$i]) > 3) and ((!$FirstBig) or (ctype_upper(substr($ArrStr[$i],0,1)))) and (array_search($ArrStr[$i], $ArrStr) == $i)) { 568 568 $where .= '(`O`.`'.$Column.'` LIKE "'.addslashes($ArrStr[$i]).'%") OR '; 569 569 $SqlOK = true;
Note:
See TracChangeset
for help on using the changeset viewer.