HomeHelpTrac

Changeset 15664 for trunk/modules


Ignore:
Timestamp:
11/08/11 02:19:15 (7 months ago)
Author:
Anton Lesnikov
Message:

1.Language file rebuilding.

  1. XML based language files.
  2. Move languages in Modules.
  3. Install language files in "installed" and "will be installed" modules.
  4. Allow to select only installed and enabled languages.
  1. Related updates in Templates.
Location:
trunk/modules/boonex
Files:
104 added
3 deleted
4 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/modules/boonex/basic/install/config.php

    r15655 r15664  
    5353        'move_sources' => 1, 
    5454        'execute_sql' => 1, 
    55         'update_languages' => 0, 
    56         'recompile_global_paramaters' => 0, 
     55        'update_languages' => 1, 
     56        'recompile_global_paramaters' => 1, 
    5757        'clear_db_cache' => 0, 
    5858        'show_conclusion' => 1 
     
    6363        'move_sources' => 1, 
    6464        'execute_sql' => 1, 
    65         'update_languages' => 0, 
    66         'recompile_global_paramaters' => 0, 
     65        'update_languages' => 1, 
     66        'recompile_global_paramaters' => 1, 
    6767        'clear_db_cache' => 0, 
    6868        'show_conclusion' => 1 
     
    7979     */ 
    8080    'dependencies' => array(), 
     81 
    8182    /** 
    8283     * Category for language keys. 
    8384     */ 
    84     'language_category' => 'BoonEx Sundance', 
     85    'language_category' => 'BoonEx Basic', 
    8586 
    8687    /** 
     
    9091    'uninstall_permissions' => array(), 
    9192 
     93    /** 
     94     * List of modules which are included in this templte(language file) 
     95     * Usage: module uri => path 
     96     *  
     97     * Note. If template(language file) supports a module but don't need to copy any specific files  
     98     * leave the 'path' an empty or don't specify the module at all. 
     99     *    
     100     */ 
     101    'includes' => array( 
     102        'system' => 'templates/tmpl_basic', 
     103    ), 
     104     
    92105    /** 
    93106     * Introduction and Conclusion Section. 
  • trunk/modules/boonex/basic/install/langs/en.xml

    r15655 r15664  
    1 <? 
    2 /*************************************************************************** 
    3 *                            Dolphin Smart Community Builder 
    4 *                              ------------------- 
    5 *     begin                : Mon Mar 23 2006 
    6 *     copyright            : (C) 2007 BoonEx Group 
    7 *     website              : http://www.boonex.com 
    8 * This file is part of Dolphin - Smart Community Builder 
    9 * 
    10 * Dolphin is free software; you can redistribute it and/or modify it under 
    11 * the terms of the GNU General Public License as published by the 
    12 * Free Software Foundation; either version 2 of the 
    13 * License, or  any later version. 
    14 * 
    15 * Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
    16 * without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
    17 * See the GNU General Public License for more details. 
    18 * You should have received a copy of the GNU General Public License along with Dolphin, 
    19 * see license.txt file; if not, write to marketing@boonex.com 
    20 ***************************************************************************/ 
    21  
    22 $aLangContent = array(); 
    23 ?> 
     1<?xml version="1.0" encoding="utf-8"?> 
     2<resources name="en" flag="gb" title="English"> 
     3    <string name="_bx_bsc_wgt_cpt"><![CDATA[Basic]]></string> 
     4    <string name="_bx_bsc_stg_cpt_type"><![CDATA[Basic]]></string> 
     5    <string name="_bx_bsc_stg_cpt_category_system"><![CDATA[General]]></string> 
     6</resources> 
  • trunk/modules/boonex/basic/install/sql/install.sql

    r15655 r15664  
    1414SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id`=@iParentPageId); 
    1515INSERT INTO `sys_std_widgets`(`page_id`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`, `status`) VALUES 
    16 (@iPageId, '{url_studio}design.php?name=basic', '', 'modules/boonex/basic/|std-wi.png', '_adm_wgt_cpt_template_basic', '', '', 2); 
     16(@iPageId, '{url_studio}design.php?name=basic', '', 'modules/boonex/basic/|std-wi.png', '_bx_bsc_wgt_cpt', '', '', 2); 
    1717INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES 
    1818(@iParentPageId, LAST_INSERT_ID(), @iParentPageOrder + 1); 
     
    2323-- 
    2424INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES  
    25 ('templates', @sModuleName, '_adm_stg_cpt_type_templ_basic', 'modules/boonex/basic/|std-mi.png', 2); 
     25('templates', @sModuleName, '_bx_bsc_stg_cpt_type', 'modules/boonex/basic/|std-mi.png', 2); 
    2626SET @iTypeId = LAST_INSERT_ID(); 
    2727 
    2828INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES  
    29 (@iTypeId, CONCAT(@sModuleName, '_system'), '_adm_stg_cpt_category_system', 1); 
     29(@iTypeId, CONCAT(@sModuleName, '_system'), '_bx_bsc_stg_cpt_category_system', 1); 
    3030SET @iCategoryId = LAST_INSERT_ID(); 
    3131 
  • trunk/modules/boonex/sundance/install/config.php

    r15655 r15664  
    5353        'move_sources' => 1, 
    5454        'execute_sql' => 1, 
    55         'update_languages' => 0, 
    56         'recompile_global_paramaters' => 0, 
     55        'update_languages' => 1, 
     56        'recompile_global_paramaters' => 1, 
    5757        'clear_db_cache' => 0, 
    5858        'show_conclusion' => 1 
     
    6363        'move_sources' => 1, 
    6464        'execute_sql' => 1, 
    65         'update_languages' => 0, 
    66         'recompile_global_paramaters' => 0, 
     65        'update_languages' => 1, 
     66        'recompile_global_paramaters' => 1, 
    6767        'clear_db_cache' => 0, 
    6868        'show_conclusion' => 1 
     
    7979     */ 
    8080    'dependencies' => array(), 
     81 
    8182    /** 
    8283     * Category for language keys. 
     
    8990    'install_permissions' => array(), 
    9091    'uninstall_permissions' => array(), 
     92 
     93    /** 
     94     * List of modules which are included in this templte(language file) 
     95     * Usage: module uri => path 
     96     *  
     97     * Note. If template(language file) supports a module but don't need to copy any specific files  
     98     * leave the 'path' an empty or don't specify the module at all.   
     99     */ 
     100    'includes' => array( 
     101        'system' => 'templates/tmpl_sundance', 
     102    ), 
    91103 
    92104    /** 
  • trunk/modules/boonex/sundance/install/langs/en.xml

    r15655 r15664  
    1 <? 
    2 /*************************************************************************** 
    3 *                            Dolphin Smart Community Builder 
    4 *                              ------------------- 
    5 *     begin                : Mon Mar 23 2006 
    6 *     copyright            : (C) 2007 BoonEx Group 
    7 *     website              : http://www.boonex.com 
    8 * This file is part of Dolphin - Smart Community Builder 
    9 * 
    10 * Dolphin is free software; you can redistribute it and/or modify it under 
    11 * the terms of the GNU General Public License as published by the 
    12 * Free Software Foundation; either version 2 of the 
    13 * License, or  any later version. 
    14 * 
    15 * Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
    16 * without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
    17 * See the GNU General Public License for more details. 
    18 * You should have received a copy of the GNU General Public License along with Dolphin, 
    19 * see license.txt file; if not, write to marketing@boonex.com 
    20 ***************************************************************************/ 
    21  
    22 $aLangContent = array(); 
    23 ?> 
     1<?xml version="1.0" encoding="utf-8"?> 
     2<resources name="en" flag="gb" title="English"> 
     3    <string name="_bx_snd_wgt_cpt"><![CDATA[Sundance]]></string> 
     4    <string name="_bx_snd_stg_cpt_type"><![CDATA[Sundance]]></string> 
     5    <string name="_bx_snd_stg_cpt_category_system"><![CDATA[General]]></string> 
     6    <string name="_bx_snd_lmi_cpt_general"><![CDATA[General]]></string> 
     7    <string name="_bx_snd_lmi_cpt_colors"><![CDATA[Colors]]></string> 
     8    <string name="_bx_snd_lmi_cpt_fonts"><![CDATA[Fonts]]></string> 
     9</resources> 
  • trunk/modules/boonex/sundance/install/sql/install.sql

    r15655 r15664  
    1515SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id`=@iParentPageId); 
    1616INSERT INTO `sys_std_widgets`(`page_id`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`, `status`) VALUES 
    17 (@iPageId, '{url_studio}design.php?name=sundance', '', 'modules/boonex/sundance/|std-wi.png', '_adm_wgt_cpt_template_sundance', '', '', 2); 
     17(@iPageId, '{url_studio}design.php?name=sundance', '', 'modules/boonex/sundance/|std-wi.png', '_bx_snd_wgt_cpt', '', '', 2); 
    1818INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES 
    1919(@iParentPageId, LAST_INSERT_ID(), @iParentPageOrder + 1); 
     
    2424-- 
    2525INSERT INTO `sys_options_types`(`group`, `name`, `caption`, `icon`, `order`) VALUES  
    26 ('templates', @sModuleName, '_adm_stg_cpt_type_templ_sundance', 'modules/boonex/sundance/|std-mi.png', 2); 
     26('templates', @sModuleName, '_bx_snd_stg_cpt_type', 'modules/boonex/sundance/|std-mi.png', 2); 
    2727SET @iTypeId = LAST_INSERT_ID(); 
    2828 
    2929INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES  
    30 (@iTypeId, CONCAT(@sModuleName, '_system'), '_adm_stg_cpt_category_system', 1); 
     30(@iTypeId, CONCAT(@sModuleName, '_system'), '_bx_snd_stg_cpt_category_system', 1); 
    3131SET @iCategoryId = LAST_INSERT_ID(); 
    3232 
Note: See TracChangeset for help on using the changeset viewer.