Changeset 2361 in ExiteCMS
- Timestamp:
- 07/26/10 12:15:31 (22 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
administration/tools/language_pack_English.php (modified) (8 diffs)
-
administration/tools/language_pack_Nederlands.php (modified) (8 diffs)
-
files/locales/en.main.global.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/administration/tools/language_pack_English.php
r2360 r2361 1 <?php 1 <?php 2 2 /*---------------------------------------------------------------------+ 3 3 | ExiteCMS Content Management System | … … 3821 3821 function load_localestrings($localestrings, $locales_code, $locales_name, $step="") { 3822 3822 global $db_prefix, $_db_log; 3823 3823 3824 3824 // if this is an upgrade, remove the old locale strings first 3825 3825 if ($step == "upgrade") { … … 3848 3848 if (!defined('LP_COUNTRIES')) define('LP_COUNTRIES', "us|gb|ca|au|nz|in|za|ir|mt|hk|pr"); 3849 3849 if (!defined('LP_VERSION')) define('LP_VERSION', "7.30"); 3850 if (!defined('LP_DATE')) define('LP_DATE', "12 76710487");3850 if (!defined('LP_DATE')) define('LP_DATE', "1280139239"); 3851 3851 $lp_date = LP_DATE; 3852 3852 … … 3864 3864 locale_load("admin.main"); 3865 3865 } 3866 3866 3867 3867 if (defined('CMS_SETUP') && !defined('CMS_SETUP_LOAD')) { 3868 3868 // skip if in setup and no load request was given … … 3875 3875 require_once PATH_INCLUDES."theme_functions.php"; 3876 3876 } 3877 3877 3878 3878 // used to store template variables 3879 3879 $variables = array(); 3880 3880 3881 3881 // message variable 3882 3882 $variables['message'] = ""; 3883 3883 3884 3884 // make sure step has a value 3885 3885 if (!isset($step)) $step = ""; 3886 3886 3887 3887 // de-install the language pack 3888 3888 if ($step == "remove") { … … 3904 3904 } 3905 3905 } 3906 3906 3907 3907 // install the language pack 3908 3908 if ($step == "install" || $step == "upgrade") { … … 3928 3928 } 3929 3929 } 3930 3930 3931 3931 if (defined('CMS_SETUP')) { 3932 3932 3933 3933 // no output at all in setup mode 3934 3934 3935 3935 } elseif (CMS_CLI) { 3936 3936 3937 3937 // output in CLI mode 3938 3938 echo "Language pack installed.\n"; 3939 3939 3940 3940 } else { 3941 3941 3942 3942 // interactive mode 3943 3943 require_once PATH_INCLUDES."theme_functions.php"; 3944 3944 3945 3945 // countries for which this language pack applies 3946 3946 $variables['flags'] = explode("|", LP_COUNTRIES); … … 3948 3948 // check the last update of the locale 3949 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%'")); 3950 3950 3951 3951 // check if this language pack has been installed 3952 3952 $variables['can_install'] = dbcount("(*)", "locale", "locale_code = '".LP_LOCALE."'") == 0; 3953 3953 $variables['can_remove'] = LP_LOCALE != $settings['default_locale'] && $variables['can_install'] == false; 3954 3954 $variables['can_upgrade'] = $variables['can_install'] == false && $variables['last_update'] < LP_DATE; 3955 3955 3956 3956 // define the body panel variables 3957 3957 $template_panels[] = array('type' => 'body', 'name' => 'admin.tools.languagepack', 'title' => "ExiteCMS Language Packs", 'template' => 'admin.tools.languagepack.tpl', 'locale' => "admin.main"); 3958 3958 $template_variables['admin.tools.languagepack'] = $variables; 3959 3959 3960 3960 // Call the theme code to generate the output for this webpage 3961 3961 require_once PATH_THEME."/theme.php"; -
trunk/administration/tools/language_pack_Nederlands.php
r2360 r2361 1 <?php 1 <?php 2 2 /*---------------------------------------------------------------------+ 3 3 | ExiteCMS Content Management System | … … 3821 3821 function load_localestrings($localestrings, $locales_code, $locales_name, $step="") { 3822 3822 global $db_prefix, $_db_log; 3823 3823 3824 3824 // if this is an upgrade, remove the old locale strings first 3825 3825 if ($step == "upgrade") { … … 3848 3848 if (!defined('LP_COUNTRIES')) define('LP_COUNTRIES', "nl|be|sr|aw|an"); 3849 3849 if (!defined('LP_VERSION')) define('LP_VERSION', "7.30"); 3850 if (!defined('LP_DATE')) define('LP_DATE', "12 76710492");3850 if (!defined('LP_DATE')) define('LP_DATE', "1280139245"); 3851 3851 $lp_date = LP_DATE; 3852 3852 … … 3864 3864 locale_load("admin.main"); 3865 3865 } 3866 3866 3867 3867 if (defined('CMS_SETUP') && !defined('CMS_SETUP_LOAD')) { 3868 3868 // skip if in setup and no load request was given … … 3875 3875 require_once PATH_INCLUDES."theme_functions.php"; 3876 3876 } 3877 3877 3878 3878 // used to store template variables 3879 3879 $variables = array(); 3880 3880 3881 3881 // message variable 3882 3882 $variables['message'] = ""; 3883 3883 3884 3884 // make sure step has a value 3885 3885 if (!isset($step)) $step = ""; 3886 3886 3887 3887 // de-install the language pack 3888 3888 if ($step == "remove") { … … 3904 3904 } 3905 3905 } 3906 3906 3907 3907 // install the language pack 3908 3908 if ($step == "install" || $step == "upgrade") { … … 3928 3928 } 3929 3929 } 3930 3930 3931 3931 if (defined('CMS_SETUP')) { 3932 3932 3933 3933 // no output at all in setup mode 3934 3934 3935 3935 } elseif (CMS_CLI) { 3936 3936 3937 3937 // output in CLI mode 3938 3938 echo "Language pack installed.\n"; 3939 3939 3940 3940 } else { 3941 3941 3942 3942 // interactive mode 3943 3943 require_once PATH_INCLUDES."theme_functions.php"; 3944 3944 3945 3945 // countries for which this language pack applies 3946 3946 $variables['flags'] = explode("|", LP_COUNTRIES); … … 3948 3948 // check the last update of the locale 3949 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%'")); 3950 3950 3951 3951 // check if this language pack has been installed 3952 3952 $variables['can_install'] = dbcount("(*)", "locale", "locale_code = '".LP_LOCALE."'") == 0; 3953 3953 $variables['can_remove'] = LP_LOCALE != $settings['default_locale'] && $variables['can_install'] == false; 3954 3954 $variables['can_upgrade'] = $variables['can_install'] == false && $variables['last_update'] < LP_DATE; 3955 3955 3956 3956 // define the body panel variables 3957 3957 $template_panels[] = array('type' => 'body', 'name' => 'admin.tools.languagepack', 'title' => "ExiteCMS Language Packs", 'template' => 'admin.tools.languagepack.tpl', 'locale' => "admin.main"); 3958 3958 $template_variables['admin.tools.languagepack'] = $variables; 3959 3959 3960 3960 // Call the theme code to generate the output for this webpage 3961 3961 require_once PATH_THEME."/theme.php"; -
trunk/files/locales/en.main.global.php
r2354 r2361 3 3 // locale : English 4 4 // locale name : main.global 5 // generated on : Wed Jun 16 2010, 19:47:34CEST5 // generated on : Mon Jul 26 2010, 12:14:21 CEST 6 6 // translators : ExiteCMS team,WanWizard 7 7 // ----------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.
