Changeset 653


Ignore:
Timestamp:
Dec 14, 2013, 9:58:27 PM (11 years ago)
Author:
maron
Message:

$ Added: don't have to by capitals at spell

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Translation/Form.php

    r652 r653  
    236236                                        } else {
    237237                                        if(($GroupId == 13)) {
    238                                                 $names = GetTranslatNames($Text, 0, array('Dictionary' => 'Text', 'TextGlobalString' => 'Text' ));
     238                                                $names = GetTranslatNames($Text, 0, array('Dictionary' => 'Text', 'TextGlobalString' => 'Text' ),false);
    239239            } else {
    240240                                                $names = GetTranslatNames($Text, 0, array('Dictionary' => 'Text'));
  • trunk/includes/Version.php

    r652 r653  
    66// and system will need database update.
    77
    8 $Revision = 652; // Subversion revision
     8$Revision = 653; // Subversion revision
    99$DatabaseRevision = 646; // Database structure revision
    1010$ReleaseTime = '2013-12-14';
  • trunk/includes/global.php

    r641 r653  
    512512  return($TablesColumn);
    513513}
    514 function GetTranslatNames($Text,$mode,$TablesColumn)
     514function GetTranslatNames($Text,$mode,$TablesColumn, $FirstBig = True)
    515515{
    516516  global $System, $Config;
     
    565565
    566566        //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)) {
    568568          $where .= '(`O`.`'.$Column.'` LIKE "'.addslashes($ArrStr[$i]).'%") OR ';
    569569          $SqlOK = true;
Note: See TracChangeset for help on using the changeset viewer.