[LON-CAPA-cvs] cvs: loncom /interface lonpreferences.pm

bisitz bisitz@source.lon-capa.org
Thu, 04 Feb 2010 10:42:02 -0000


bisitz		Thu Feb  4 10:42:02 2010 EDT

  Modified files:              
    /loncom/interface	lonpreferences.pm 
  Log:
  Added message to achieve less confusion when language preference has been changed but isn'tyet activated on the current screen.
  
  
Index: loncom/interface/lonpreferences.pm
diff -u loncom/interface/lonpreferences.pm:1.182 loncom/interface/lonpreferences.pm:1.183
--- loncom/interface/lonpreferences.pm:1.182	Thu Jan  7 21:55:17 2010
+++ loncom/interface/lonpreferences.pm	Thu Feb  4 10:42:02 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Preferences
 #
-# $Id: lonpreferences.pm,v 1.182 2010/01/07 21:55:17 raeburn Exp $
+# $Id: lonpreferences.pm,v 1.183 2010/02/04 10:42:02 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -191,7 +191,12 @@
     if ($newlanguage) {
         &Apache::lonnet::put('environment',{'languages' => $newlanguage});
         &Apache::lonnet::appenv({'environment.languages' => $newlanguage});
-        $message=&Apache::lonhtmlcommon::confirm_success(&mt('Set [_1] to [_2]','<i>'.&mt('Preferred language').'</i>','<tt>"'.$newlanguage.'"</tt>.'));
+        $message=&Apache::lonhtmlcommon::confirm_success(
+            &mt('Set [_1] to [_2]',
+                '<i>'.&mt('Preferred language').'</i>',
+                '<tt>"'.$newlanguage.'"</tt>.'))
+           .'<br />'
+           .&mt('The change will become active on the next page.');
     } else {
         &Apache::lonnet::del('environment',['languages']);
         &Apache::lonnet::delenv('environment.languages');