2009/07/29 bplagge - converted to gettext technology

UPDATE nuke_modules 
SET pn_directory= 'Settings' 
WHERE pn_directory= 'NS-Settings'

_________
global $tzinfo

while rewriting NS-Settings to be be API compilant i encountered some globals which come from includes/legacy.php. these variables should be moved to the nuke_module_vars table.

Now the question is, where are these initialized ... by the installer or the module ? in case of te '$tzinfo' other modules might rely upon this one and it should be initialized by the installer ... something like :

pnModSetVar('/PNConfig', 'timezone_info',
serialize( array('0' => '(GMT -12:00 hours) Eniwetok, Kwajalein',
'1' => '(GMT -11:00 hours) Midway Island, Samoa',
'2' => '(GMT -10:00 hours) Hawaii',
'3' => '(GMT -9:00 hours) Alaska',
'4' => '(GMT -8:00 hours) Pacific Time (US & Canada)',
'5' => '(GMT -7:00 hours) Mountain Time (US & Canada)',
'6' => '(GMT -6:00 hours) Central Time (US & Canada), Mexico City',
'7' => '(GMT -5:00 hours) Eastern Time (US & Canada), Bogota, Lima, Quito',
'8' => '(GMT -4:00 hours) Atlantic Time (Canada), Caracas, La Paz',
'8.5' => '(GMT -3:30 hours) Newfoundland',
'9' => '(GMT -3:00 hours) Brazil, Buenos Aires, Georgetown',
'10' => '(GMT -2:00 hours) Mid-Atlantic',
'11' => '(GMT -1:00 hours) Azores, Cape Verde Islands',
'12' => '(GMT) Western Europe Time, London, Lisbon, Casablanca, Monrovia',
'13' => '(GMT +1:00 hours) CET(Central Europe Time), Brussels, Copenhagen, Madrid, Paris',
'14' => '(GMT +2:00 hours) EET(Eastern Europe Time), Kaliningrad, South Africa',
'15' => '(GMT +3:00 hours) Baghdad, Kuwait, Riyadh, Moscow, St. Petersburg',
'15.5' => '(GMT +3:30 hours) Tehran',
'16' => '(GMT +4:00 hours) Abu Dhabi, Muscat, Baku, Tbilisi',
'16.5' => '(GMT +4:30 hours) Kabul',
'17' => '(GMT +5:00 hours) Ekaterinburg, Islamabad, Karachi, Tashkent',
'17.5' => '(GMT +5:30 hours) Bombay, Calcutta, Madras, New Delhi',
'18' => '(GMT +6:00 hours) Almaty, Dhaka, Colombo',
'19' => '(GMT +7:00 hours) Bangkok, Hanoi, Jakarta',
'20' => '(GMT +8:00 hours) Beijing, Perth, Singapore, Hong Kong, Chongqing, Urumqi, Taipei',
'21' => '(GMT +9:00 hours) Tokyo, Seoul, Osaka, Sapporo, Yakutsk',
'21.5' => '(GMT +9:30 hours) Adelaide, Darwin',
'22' => '(GMT +10:00 hours) EAST(East Australian Standard)',
'23' => '(GMT +11:00 hours) Magadan, Solomon Islands, New Caledonia',
'24' => '(GMT +12:00 hours) Auckland, Wellington, Fiji, Kamchatka, Marshall Island') )
);


and in includes/legacy.php
$tzinfo = unserialize( pnModGetVar('/PNConfig', 'timezone_info') );


suggestions ? can i move it ?


yep - move it to newdata.php for installation and pn72.php for upgrade but use only GMT+x GMT-x values (to keep it ml)