Changes between Version 5 and Version 6 of HowToMakeAutomaticUpgradeScriptForModule
- Timestamp:
- Jul 9, 2013, 3:28:13 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToMakeAutomaticUpgradeScriptForModule
v5 v6 13 13 '''bloggie/updates/update_100_110/install/info'''[[BR]] 14 14 Installation information messages folder. If you need to display information messages upon update install, you will need to place files here - also special instructions are needed to point to in the install config file to display these messages properly.[[BR]] 15 16 {{{ 17 'install' => array( 18 'show_introduction' => 1, 19 ... 20 'show_conclusion' => 1 21 ), 22 }}} 23 15 24 '''bloggie/updates/update_100_110/install/langs'''[[BR]] 16 25 Update languages must be located in this dir. The language file must be a php file with the name of two letters of the language code. We will take a closer look at an example of the language file later.[[BR]] … … 55 64 'dependencies' => array(), 56 65 }}} 66 67 == Language file. == 68 In comparison with module's language file update's language file has tree separate arrays. 69 1. An array for language keys which should be deleted. The array should contain language keys only. 70 71 {{{ 72 $aLangContentDelete = array( 73 'lang_key', 74 ); 75 }}} 76 77 2. An array for language keys which should be added. The array should contain key => translation pairs. 78 79 {{{ 80 $aLangContentAdd = array( 81 '_language_key' => 'translation' 82 ); 83 }}} 84 85 3. An array for language keys which should be updated. The array should contain key => translation pairs. 86 87 {{{ 88 $aLangContentUpdate = array( 89 '_language_key' => 'translation', 90 ); 91 }}}