Ignore:
Timestamp:
07/26/10 12:06:04 (22 months ago)
Author:
WanWizard
Message:

added a forum option to enable/disable the use of subject prefixes per forum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/tools/language_pack_English.php

    r2354 r2360  
    1 <?php  
     1<?php 
    22/*---------------------------------------------------------------------+ 
    33| ExiteCMS Content Management System                                   | 
     
    368368        $localestrings['493'] = "Refresh Forum Ordering"; 
    369369        $localestrings['494'] = "Subject prefix list:"; 
     370        $localestrings['495'] = "Use subject prefixes in this forum"; 
    370371        load_localestrings($localestrings, LP_LOCALE, "admin.forums", $step); 
    371372 
     
    38203821    function load_localestrings($localestrings, $locales_code, $locales_name, $step="") { 
    38213822        global $db_prefix, $_db_log; 
    3822      
     3823 
    38233824        // if this is an upgrade, remove the old locale strings first 
    38243825        if ($step == "upgrade") { 
     
    38633864        locale_load("admin.main"); 
    38643865    } 
    3865      
     3866 
    38663867    if (defined('CMS_SETUP') && !defined('CMS_SETUP_LOAD')) { 
    38673868        // skip if in setup and no load request was given 
     
    38743875        require_once PATH_INCLUDES."theme_functions.php"; 
    38753876    } 
    3876      
     3877 
    38773878    // used to store template variables 
    38783879    $variables = array(); 
    3879      
     3880 
    38803881    // message variable 
    38813882    $variables['message'] = ""; 
    3882      
     3883 
    38833884    // make sure step has a value 
    38843885    if (!isset($step)) $step = ""; 
    3885      
     3886 
    38863887    // de-install the language pack 
    38873888    if ($step == "remove") { 
     
    39033904        } 
    39043905    } 
    3905      
     3906 
    39063907    // install the language pack 
    39073908    if ($step == "install" || $step == "upgrade") { 
     
    39273928        } 
    39283929    } 
    3929      
     3930 
    39303931    if (defined('CMS_SETUP')) { 
    3931      
     3932 
    39323933        // no output at all in setup mode 
    3933          
     3934 
    39343935    } elseif (CMS_CLI) { 
    3935      
     3936 
    39363937        // output in CLI mode 
    39373938        echo "Language pack installed.\n"; 
    3938          
     3939 
    39393940    } else { 
    3940      
     3941 
    39413942        // interactive mode 
    39423943        require_once PATH_INCLUDES."theme_functions.php"; 
    3943      
     3944 
    39443945        // countries for which this language pack applies 
    39453946        $variables['flags'] = explode("|", LP_COUNTRIES); 
     
    39473948        // check the last update of the locale 
    39483949        $variables['last_update'] = isset($settings['LanguagePack.'.LP_LANGUAGE]) ? $settings['LanguagePack.'.LP_LANGUAGE] : min(LP_DATE - 1, dbfunction("MAX(locales_datestamp)", "locales", "locales_code = '".LP_LOCALE."' AND locales_name NOT LIKE 'modules%'")); 
    3949          
     3950 
    39503951        // check if this language pack has been installed 
    39513952        $variables['can_install'] = dbcount("(*)", "locale", "locale_code = '".LP_LOCALE."'") == 0; 
    39523953        $variables['can_remove'] = LP_LOCALE != $settings['default_locale'] && $variables['can_install'] == false; 
    39533954        $variables['can_upgrade'] = $variables['can_install'] == false && $variables['last_update'] < LP_DATE; 
    3954      
     3955 
    39553956        // define the body panel variables 
    39563957        $template_panels[] = array('type' => 'body', 'name' => 'admin.tools.languagepack', 'title' => "ExiteCMS Language Packs", 'template' => 'admin.tools.languagepack.tpl', 'locale' => "admin.main"); 
    39573958        $template_variables['admin.tools.languagepack'] = $variables; 
    3958          
     3959 
    39593960        // Call the theme code to generate the output for this webpage 
    39603961        require_once PATH_THEME."/theme.php"; 
Note: See TracChangeset for help on using the changeset viewer.