Changeset 1871 in ExiteCMS for trunk/administration/tools/language_pack_Nederlands.php
- Timestamp:
- 10/19/08 12:10:12 (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
administration/tools/language_pack_Nederlands.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 Copy of config.php 2 config.backup.php 3 _revision_.svn 1 config.php
-
- Property svn:ignore
-
trunk/administration/tools/language_pack_Nederlands.php
r1858 r1871 3746 3746 if (!defined('LP_COUNTRIES')) define('LP_COUNTRIES', "nl|be|sr|aw|an"); 3747 3747 if (!defined('LP_VERSION')) define('LP_VERSION', "7.20"); 3748 if (!defined('LP_DATE')) define('LP_DATE', "1224 253697");3748 if (!defined('LP_DATE')) define('LP_DATE', "1224409123"); 3749 3749 $lp_date = LP_DATE; 3750 3750 … … 3818 3818 if (!CMS_CLI) $variables['message'] .= sprintf($locale['307'],LP_LOCALE, LP_LANGUAGE); 3819 3819 } 3820 // update the install timestamp in the config 3821 if (isset($settings['LanguagePack.'.LP_LANGUAGE])) { 3822 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".LP_DATE."' WHERE cfg_name = 'LanguagePack.".LP_LANGUAGE."'"); 3823 } else { 3824 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES ('LanguagePack.".LP_LANGUAGE."', '".LP_DATE."')"); 3825 } 3820 3826 } 3821 3827 } … … 3839 3845 3840 3846 // check the last update of the locale 3841 $variables['last_update'] = dbfunction("MAX(locales_datestamp)", "locales", "locales_code = '".LP_LOCALE."' AND locales_name NOT LIKE 'modules%'");3847 $variables['last_update'] = isset($settings['LanguagePack.'.LP_LANGUAGE]) ? $settings['LanguagePack.'.LP_LANGUAGE] : dbfunction("MAX(locales_datestamp)", "locales", "locales_code = '".LP_LOCALE."' AND locales_name NOT LIKE 'modules%'"); 3842 3848 3843 3849 // check if this language pack has been installed 3844 3850 $variables['can_install'] = dbcount("(*)", "locale", "locale_code = '".LP_LOCALE."'") == 0; 3845 $variables['can_remove'] = $variables['can_install'] ? FALSE : TRUE;3846 $variables['can_upgrade'] = $variables['can_ remove'];3851 $variables['can_remove'] = LP_LOCALE != "en" && $variables['can_install'] == false; 3852 $variables['can_upgrade'] = $variables['can_install'] == false && $variables['last_update'] < LP_DATE; 3847 3853 3848 3854 // define the body panel variables
Note: See TracChangeset
for help on using the changeset viewer.
