HomeHelpTrac

Changeset 15515 for trunk/install


Ignore:
Timestamp:
09/20/11 01:18:54 (8 months ago)
Author:
Anton Lesnikov
Message:

Polyglot feature

  1. Base layout.
  2. General page.
Location:
trunk/install
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/install/langs/lang-en.php

    r15509 r15515  
    19641964    '_adm_stg_cpt_category_categories' => 'Categories', 
    19651965    '_adm_stg_cpt_category_storage' => 'Storage', 
     1966    '_adm_stg_cpt_category_languages' => 'Languages', 
    19661967 
    19671968    '_adm_stg_err_save' => 'Cannot save settings', 
     
    20112012    '_adm_page_cpt_languages' => 'Languages', 
    20122013    '_adm_breadcrumb_languages' => 'Languages', 
     2014    '_adm_page_cpt_polyglot' => 'Polyglot', 
     2015    '_adm_wgt_cpt_polyglot' => 'Polyglot', 
    20132016    '_adm_wgt_cpt_language_en' => 'English', 
     2017 
     2018    /*--- Polyglot keys ---*/ 
     2019    '_adm_lmi_cpt_general' => 'General', 
     2020    '_adm_lmi_cpt_keys' => 'Keys', 
     2021    '_adm_block_cpt_keys' => 'Keys', 
    20142022 
    20152023 
  • trunk/install/sql/v70.sql

    r15512 r15515  
    969969INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES 
    970970(@iCategoryId, 'cmdDay', '', '10', 'digit', '', '', '', 1), 
    971 (@iCategoryId, 'lang_default', 'Default site language', 'en', 'text', '', '', '', 2), 
    972971(@iCategoryId, 'tags_last_parse_time', 'Temporary value when tags cron-job was runed last time', '0', 'digit', '', '', '', 3), 
    973972(@iCategoryId, 'enable_flash_promo', '', 'on', 'checkbox', '', '', '', 4), 
     
    986985(@iCategoryId, 'sys_main_logo', 'Main logo file name', 'big_logo.png', 'text', '', '', '', 17), 
    987986(@iCategoryId, 'sys_tmp_version', 'Temporary Dolphin version ', '7.0.6', 'digit', '', '', '', 18); 
    988  
    989987 
    990988INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES (@iTypeId, 'profiles', '_adm_stg_cpt_category_profiles', 2); 
     
    12491247(@iCategoryId, 'sys_storage_s3_bucket', 'AWS Bucket', '', 'digit', '', '', '', 4), 
    12501248(@iCategoryId, 'sys_storage_s3_domain', 'AWS Custom domain (require custom DNS setup)', '', 'digit', '', '', '', 5); 
     1249 
     1250 
     1251INSERT INTO `sys_options_categories`(`type_id`, `name`, `caption`, `order`) VALUES (@iTypeId, 'languages', '_adm_stg_cpt_category_languages', 23); 
     1252SET @iCategoryId = LAST_INSERT_ID(); 
     1253 
     1254INSERT INTO `sys_options`(`category_id`, `name`, `caption`, `value`, `type`, `extra`, `check`, `check_error`, `order`) VALUES 
     1255(@iCategoryId, 'lang_default', 'Default Language', 'en', 'select', 'PHP:$aValues = getLangsArr(); $aResult = array(); foreach($aValues as $sKey => $sValue) $aResult[] = array(\'key\' => $sKey, \'value\' => $sValue); return $aResult;', '', '', 1), 
     1256(@iCategoryId, 'lang_selector', 'Show Language Selector', 'on', 'checkbox', '', '', '', 2); 
    12511257 
    12521258-- -------------------------------------------------------- 
     
    47224728 
    47234729INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES 
     4730(3, 'polyglot', '_adm_page_cpt_polyglot', '_adm_page_cpt_polyglot', 'pi-polyglot.png'); 
     4731SET @iIdPolyglot = LAST_INSERT_ID(); 
     4732 
     4733INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES 
    47244734(3, 'language', '_adm_page_cpt_language', '_adm_page_cpt_language', 'pi-language.png'); 
    4725 SET @iIdBuilderPages = LAST_INSERT_ID(); 
     4735SET @iIdLanguage = LAST_INSERT_ID(); 
    47264736 
    47274737INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES 
     
    47854795-- 
    47864796INSERT INTO `sys_std_widgets`(`page_id`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`, `status`) VALUES 
    4787 (0, '{url_studio}languages.php?name=en', '', 'wi-lang-english.png', '_adm_wgt_cpt_language_en', '', '', 1); 
     4797(@iIdPolyglot, '{url_studio}polyglot.php', '', 'wi-lang-polyglot.png', '_adm_wgt_cpt_polyglot', '', '', 1); 
     4798INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdLanguages, LAST_INSERT_ID(), 1); 
     4799 
     4800INSERT INTO `sys_std_widgets`(`page_id`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`, `status`) VALUES 
     4801(@iIdLanguage, '{url_studio}languages.php?name=en', '', 'wi-lang-english.png', '_adm_wgt_cpt_language_en', '', '', 1); 
    47884802INSERT INTO `sys_std_pages_widgets`(`page_id`, `widget_id`, `order`) VALUES(@iIdLanguages, LAST_INSERT_ID(), 1); 
    47894803 
Note: See TracChangeset for help on using the changeset viewer.