Changeset 884 for trunk/Packages/Common
- Timestamp:
- Apr 8, 2020, 7:27:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/Locale.php
r880 r884 153 153 foreach ($this->Texts->Data as $Index => $Item) 154 154 { 155 if (is_array($Item)) continue; 155 156 $DbResult = $Database->select('Locale', '*', '(`Original` ='.$Database->quote($Index). 156 157 ') AND (`Language`='.($Language['Id']).')'); 157 158 if ($DbResult->num_rows > 0) 158 $Database->update('Locale', '(`Language`='.($Language['Id']).') AND '. 159 '(`Original` ='.$Database->quote($Index).')', array('Translated' => $Item)); 160 else $Database->insert('Locale', array('Language' => $Language['Id'], 161 'Original' => $Index, 'Translated' => $Item)); 159 { 160 $Database->update('Locale', '(`Language`='.($Language['Id']).') AND '. 161 '(`Original` ='.$Database->quote($Index).')', array('Translated' => $Item)); 162 } else 163 { 164 $Database->insert('Locale', array('Language' => $Language['Id'], 165 'Original' => $Index, 'Translated' => $Item, 'Fuzzy' => 0)); 166 } 162 167 } 163 168 }
Note:
See TracChangeset
for help on using the changeset viewer.