Added a notice to re-import language on 1.1.8 upgrade
authorDan Fuhry <dan@enanocms.org>
Tue, 16 Nov 2010 12:49:48 -0500
changeset 1319 43276bdb9829
parent 1318 a736fcf3d2fd
child 1320 aad39272c880
Added a notice to re-import language on 1.1.8 upgrade
plugins/admin/Home.php
--- a/plugins/admin/Home.php	Tue Nov 16 12:33:42 2010 -0500
+++ b/plugins/admin/Home.php	Tue Nov 16 12:49:48 2010 -0500
@@ -54,9 +54,12 @@
 	if ( getConfig('newly_upgraded') )
 	{
 		setConfig('newly_upgraded', false);
+		// FIXME this check only works for going up to 1.1.8
 		echo '<div class="acphome-box notice">'
 				. '<h3>' . $lang->get('acphome_msg_upgrade_success_title') . '</h3>'
-				. '<p>' . $lang->get('acphome_msg_upgrade_success_body') . '</p>'
+				. '<p>' . ( $lang->get('acphome_msg_upgrade_success_body') === 'acphome_msg_upgrade_success_body' ? '
+						Enano has been upgraded successfully, but you should <b>re-import the language</b> to fix missing and un-localized strings.
+					' : $lang->get('acphome_msg_upgrade_success_body') ) . '</p>'
 				. '</div>';
 	}