Ignore:
Timestamp:
Nov 26, 2013, 10:12:48 PM (11 years ago)
Author:
chronos
Message:
  • Added: Implemented mechanism for update interface translation list from source code. Resulted list is saved to lanugage file and database.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/UpdateTrace.php

    r605 r608  
    26232623}
    26242624
     2625function UpdateTo609($Manager)
     2626{
     2627  $Manager->Execute('CREATE TABLE IF NOT EXISTS `Locale` (
     2628  `Id` int(11) NOT NULL AUTO_INCREMENT,
     2629  `Language` int(11) NOT NULL,
     2630  `Original` varchar(255) NOT NULL,
     2631  `Translated` varchar(255) NOT NULL,
     2632  `Fuzzy` int(11) NOT NULL,
     2633  PRIMARY KEY (`Id`),
     2634  KEY `Language` (`Language`)
     2635) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;');
     2636
     2637  $Manager->Execute('ALTER TABLE `Locale`
     2638  ADD CONSTRAINT `Locale_ibfk_1` FOREIGN KEY (`Language`) REFERENCES `Language` (`Id`);');
     2639}
     2640
    26252641$Updates = array(
    26262642        498 => array('Revision' => 506, 'Function' => 'UpdateTo506'),
     
    26352651        585 => array('Revision' => 600, 'Function' => 'UpdateTo600'),
    26362652        600 => array('Revision' => 604, 'Function' => 'UpdateTo604'),
     2653        604 => array('Revision' => 609, 'Function' => 'UpdateTo609'),
    26372654);
Note: See TracChangeset for help on using the changeset viewer.