Changeset 15795 for trunk/modules
- Timestamp:
- 12/25/11 21:58:37 (5 months ago)
- Location:
- trunk/modules/boonex
- Files:
-
- 6 edited
-
english/install/config.php (modified) (4 diffs)
-
english/install/sql/disable.sql (modified) (2 diffs)
-
english/install/sql/enable.sql (modified) (2 diffs)
-
english/install/sql/install.sql (modified) (4 diffs)
-
english/install/sql/uninstall.sql (modified) (3 diffs)
-
russian/install/sql/uninstall.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/boonex/english/install/config.php
r15664 r15795 25 25 */ 26 26 'type' => BX_DOL_MODULE_TYPE_LANGUAGE, 27 'name' => ' en',27 'name' => 'bx_en', 28 28 'title' => 'English', 29 29 'note' => 'Language file', … … 50 50 */ 51 51 'install' => array( 52 'show_introduction' => 1,52 'show_introduction' => 0, 53 53 'change_permissions' => 0, 54 54 'move_sources' => 1, … … 58 58 'recompile_global_paramaters' => 1, 59 59 'clear_db_cache' => 0, 60 'show_conclusion' => 160 'show_conclusion' => 0 61 61 ), 62 62 'uninstall' => array ( 63 'show_introduction' => 1,63 'show_introduction' => 0, 64 64 'change_permissions' => 0, 65 65 'move_sources' => 1, … … 68 68 'recompile_global_paramaters' => 1, 69 69 'clear_db_cache' => 0, 70 'show_conclusion' => 170 'show_conclusion' => 0 71 71 ), 72 72 'enable' => array( -
trunk/modules/boonex/english/install/sql/disable.sql
r15664 r15795 2 2 -- General section. 3 3 -- 4 SET @s ModuleName = 'bx_lang_en';4 SET @sName = 'bx_en'; 5 5 UPDATE `sys_localization_languages` SET `Enabled`='0' WHERE `Name`='en'; 6 6 … … 9 9 -- Studio page and widget. 10 10 -- 11 SET @iPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`=@s ModuleName LIMIT 1);11 SET @iPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`=@sName LIMIT 1); 12 12 UPDATE `sys_std_widgets` SET `status`='2' WHERE `page_id`=@iPageId LIMIT 1; -
trunk/modules/boonex/english/install/sql/enable.sql
r15664 r15795 2 2 -- General section. 3 3 -- 4 SET @s ModuleName = 'bx_lang_en';4 SET @sName = 'bx_en'; 5 5 UPDATE `sys_localization_languages` SET `Enabled`='1' WHERE `Name`='en'; 6 6 … … 9 9 -- Studio page and widget. 10 10 -- 11 SET @iPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`=@s ModuleName LIMIT 1);11 SET @iPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`=@sName LIMIT 1); 12 12 UPDATE `sys_std_widgets` SET `status`='1' WHERE `page_id`=@iPageId LIMIT 1; -
trunk/modules/boonex/english/install/sql/install.sql
r15664 r15795 2 2 -- General section. 3 3 -- 4 SET @s ModuleName = 'bx_lang_en';4 SET @sName = 'bx_en'; 5 5 INSERT INTO `sys_localization_languages`(`Name`, `Flag`, `Title`, `Enabled`) VALUES('en', 'gb', 'English', '0'); 6 6 … … 10 10 -- 11 11 INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES 12 (3, @s ModuleName, '', '', 'modules/boonex/english/|std-pi.png');12 (3, @sName, '', '', 'modules/boonex/english/|std-pi.png'); 13 13 SET @iPageId = LAST_INSERT_ID(); 14 14 … … 16 16 SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id`=@iParentPageId); 17 17 INSERT INTO `sys_std_widgets`(`page_id`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`, `status`) VALUES 18 (@iPageId, '{url_studio}language.php?name=en', '', 'modules/boonex/english/|std-wi.png', '_bx_eng_wgt_cpt', '', '', 2);18 (@iPageId, CONCAT('{url_studio}language.php?name=', @sName), '', 'modules/boonex/english/|std-wi.png', '_bx_eng_wgt_cpt', '', '', 2); 19 19 INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES 20 20 (@iParentPageId, LAST_INSERT_ID(), @iParentPageOrder + 1); … … 25 25 -- 26 26 INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES 27 ('languages', @s ModuleName, '_bx_eng_stg_cpt_type', 'modules/boonex/english/|std-mi.png', 2);27 ('languages', @sName, '_bx_eng_stg_cpt_type', 'modules/boonex/english/|std-mi.png', 2); 28 28 SET @iTypeId = LAST_INSERT_ID(); 29 29 30 30 INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES 31 (@iTypeId, CONCAT(@s ModuleName, '_system'), '_bx_eng_stg_cpt_category_system', 1);31 (@iTypeId, CONCAT(@sName, '_system'), '_bx_eng_stg_cpt_category_system', 1); 32 32 SET @iCategoryId = LAST_INSERT_ID(); 33 33 34 34 INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES 35 (@iCategoryId, CONCAT(@s ModuleName, '_switcher_title'), 'Name In Language Switcher', 'English', 'digit', '', '', '', 1);35 (@iCategoryId, CONCAT(@sName, '_switcher_title'), 'Name In Language Switcher', 'English', 'digit', '', '', '', 1); -
trunk/modules/boonex/english/install/sql/uninstall.sql
r15664 r15795 2 2 -- General section. 3 3 -- 4 SET @s ModuleName = 'bx_lang_en';4 SET @sName = 'bx_en'; 5 5 6 6 DELETE FROM `tll`, `tls` 7 USING `sys_localization_languages` AS `tll` , `sys_localization_strings` AS `tls`8 WHERE `tll`.` ID`=`tls`.`IDLanguage` AND `tll`.`Name`='en';7 USING `sys_localization_languages` AS `tll` LEFT JOIN `sys_localization_strings` AS `tls` ON `tll`.`ID`=`tls`.`IDLanguage` 8 WHERE `tll`.`Name`='en'; 9 9 10 10 … … 14 14 DELETE FROM `tp`, `tw`, `tpw` 15 15 USING `sys_std_pages` AS `tp`, `sys_std_widgets` AS `tw`, `sys_std_pages_widgets` AS `tpw` 16 WHERE `tp`.`id`=`tw`.`page_id` AND `tw`.`id`=`tpw`.`widget_id` AND `tp`.`name`=@s ModuleName;16 WHERE `tp`.`id`=`tw`.`page_id` AND `tw`.`id`=`tpw`.`widget_id` AND `tp`.`name`=@sName; 17 17 18 18 … … 22 22 DELETE FROM `tot`, `toc`, `to` 23 23 USING `sys_options_types` AS `tot`, `sys_options_categories` AS `toc`, `sys_options` AS `to` 24 WHERE `tot`.`id`=`toc`.`type_id` AND `toc`.`id`=`to`.`category_id` AND `tot`.`name`=@s ModuleName;24 WHERE `tot`.`id`=`toc`.`type_id` AND `toc`.`id`=`to`.`category_id` AND `tot`.`name`=@sName; -
trunk/modules/boonex/russian/install/sql/uninstall.sql
r15784 r15795 5 5 6 6 DELETE FROM `tll`, `tls` 7 USING `sys_localization_languages` AS `tll` , `sys_localization_strings` AS `tls`8 WHERE `tll`.` ID`=`tls`.`IDLanguage` AND `tll`.`Name`='ru';7 USING `sys_localization_languages` AS `tll` LEFT JOIN `sys_localization_strings` AS `tls` ON `tll`.`ID`=`tls`.`IDLanguage` 8 WHERE `tll`.`Name`='ru'; 9 9 10 10
Note: See TracChangeset
for help on using the changeset viewer.