Changeset 2360 in ExiteCMS for trunk/administration/tools/language_pack_English.php
- Timestamp:
- 07/26/10 12:06:04 (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/administration/tools/language_pack_English.php
r2354 r2360 1 <?php 1 <?php 2 2 /*---------------------------------------------------------------------+ 3 3 | ExiteCMS Content Management System | … … 368 368 $localestrings['493'] = "Refresh Forum Ordering"; 369 369 $localestrings['494'] = "Subject prefix list:"; 370 $localestrings['495'] = "Use subject prefixes in this forum"; 370 371 load_localestrings($localestrings, LP_LOCALE, "admin.forums", $step); 371 372 … … 3820 3821 function load_localestrings($localestrings, $locales_code, $locales_name, $step="") { 3821 3822 global $db_prefix, $_db_log; 3822 3823 3823 3824 // if this is an upgrade, remove the old locale strings first 3824 3825 if ($step == "upgrade") { … … 3863 3864 locale_load("admin.main"); 3864 3865 } 3865 3866 3866 3867 if (defined('CMS_SETUP') && !defined('CMS_SETUP_LOAD')) { 3867 3868 // skip if in setup and no load request was given … … 3874 3875 require_once PATH_INCLUDES."theme_functions.php"; 3875 3876 } 3876 3877 3877 3878 // used to store template variables 3878 3879 $variables = array(); 3879 3880 3880 3881 // message variable 3881 3882 $variables['message'] = ""; 3882 3883 3883 3884 // make sure step has a value 3884 3885 if (!isset($step)) $step = ""; 3885 3886 3886 3887 // de-install the language pack 3887 3888 if ($step == "remove") { … … 3903 3904 } 3904 3905 } 3905 3906 3906 3907 // install the language pack 3907 3908 if ($step == "install" || $step == "upgrade") { … … 3927 3928 } 3928 3929 } 3929 3930 3930 3931 if (defined('CMS_SETUP')) { 3931 3932 3932 3933 // no output at all in setup mode 3933 3934 3934 3935 } elseif (CMS_CLI) { 3935 3936 3936 3937 // output in CLI mode 3937 3938 echo "Language pack installed.\n"; 3938 3939 3939 3940 } else { 3940 3941 3941 3942 // interactive mode 3942 3943 require_once PATH_INCLUDES."theme_functions.php"; 3943 3944 3944 3945 // countries for which this language pack applies 3945 3946 $variables['flags'] = explode("|", LP_COUNTRIES); … … 3947 3948 // check the last update of the locale 3948 3949 $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 3950 3951 // check if this language pack has been installed 3951 3952 $variables['can_install'] = dbcount("(*)", "locale", "locale_code = '".LP_LOCALE."'") == 0; 3952 3953 $variables['can_remove'] = LP_LOCALE != $settings['default_locale'] && $variables['can_install'] == false; 3953 3954 $variables['can_upgrade'] = $variables['can_install'] == false && $variables['last_update'] < LP_DATE; 3954 3955 3955 3956 // define the body panel variables 3956 3957 $template_panels[] = array('type' => 'body', 'name' => 'admin.tools.languagepack', 'title' => "ExiteCMS Language Packs", 'template' => 'admin.tools.languagepack.tpl', 'locale' => "admin.main"); 3957 3958 $template_variables['admin.tools.languagepack'] = $variables; 3958 3959 3959 3960 // Call the theme code to generate the output for this webpage 3960 3961 require_once PATH_THEME."/theme.php";
Note: See TracChangeset
for help on using the changeset viewer.
