Ignore:
Timestamp:
Aug 24, 2015, 11:19:26 PM (9 years ago)
Author:
chronos
Message:
  • Modified: Update only translation items which have modified text items during translation save.
  • Modified: Tabs replaced by spaces.
File:
1 edited

Legend:

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

    r831 r833  
    185185          }
    186186      if($Filter['State'] == CompletionState::All) {
    187         $Filter['SQL'] .= $UserFilter.$VersionFilter;
     187        $Filter['SQL'] .= $UserFilter.$VersionFilter;
    188188      } else
    189189      if($Filter['State'] == CompletionState::NotTranslated) {
    190         $Filter['SQL'] .= $VersionFilter.' AND (`T`.`Language` = '.$this->System->Config['OriginalLanguage'].') '.
     190        $Filter['SQL'] .= $VersionFilter.' AND (`T`.`Language` = '.$this->System->Config['OriginalLanguage'].') '.
    191191          'AND NOT EXISTS(SELECT 1 FROM `'.$Table.'` AS `Sub` WHERE '.
    192192          '(`Sub`.`Language` <> '.$this->System->Config['OriginalLanguage'].') '.$LanguageFilterSub.$UserFilter.
     
    195195      } else
    196196      if($Filter['State'] == CompletionState::Translated) {
    197         $Filter['SQL'] .= $UserFilter.$LanguageFilter.$VersionFilter.' AND (`T`.`Complete` = 1)';
     197        $Filter['SQL'] .= $UserFilter.$LanguageFilter.$VersionFilter.' AND (`T`.`Complete` = 1)';
    198198      } else
    199199      if($Filter['State'] == CompletionState::NotFinished) {
    200         $Filter['SQL'] .= $UserFilter.$LanguageFilter.$VersionFilter.' AND (`T`.`Language` != '.$this->System->Config['OriginalLanguage'].
     200        $Filter['SQL'] .= $UserFilter.$LanguageFilter.$VersionFilter.' AND (`T`.`Language` != '.$this->System->Config['OriginalLanguage'].
    201201      ') AND (`T`.`Complete` = 0)';
    202202      } else
    203203      if($Filter['State'] == CompletionState::Original) {
    204         $Filter['SQL'] .= $VersionFilter.' AND (`T`.`Language` = '.$this->System->Config['OriginalLanguage'].')';
     204        $Filter['SQL'] .= $VersionFilter.' AND (`T`.`Language` = '.$this->System->Config['OriginalLanguage'].')';
    205205      } else
    206206      if($Filter['State'] == CompletionState::NotFinishedNotTranslated) {
    207         $Filter['SQL'] .= $UserFilter.$VersionFilter.$WithoutAlter.
     207        $Filter['SQL'] .= $UserFilter.$VersionFilter.$WithoutAlter.
    208208      ' AND (`T`.`Language` != '.$this->System->Config['OriginalLanguage'].
    209209      ') AND (`T`.`Complete` = 0)';
Note: See TracChangeset for help on using the changeset viewer.