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

bisitz bisitz@source.lon-capa.org
Wed, 14 Jan 2009 15:46:23 -0000


bisitz		Wed Jan 14 15:46:23 2009 EDT

  Modified files:              
    /loncom/interface	lonpreferences.pm 
    /loncom/localize/localize	de.pm 
  Log:
  - Wrapped nickname/screenname form in pick_box
  - Adjusted texts correspondingly
  - Use mt instead of text hash
  - Changed button text from "Change" to "Save"
  - Added introductionary text (same as title text in corresponding menu item)
  
  ...and de.pm:
  - Corrected "textual_remote_display" usage
  
  
Index: loncom/interface/lonpreferences.pm
diff -u loncom/interface/lonpreferences.pm:1.132 loncom/interface/lonpreferences.pm:1.133
--- loncom/interface/lonpreferences.pm:1.132	Tue Dec 23 19:22:13 2008
+++ loncom/interface/lonpreferences.pm	Wed Jan 14 15:46:19 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Preferences
 #
-# $Id: lonpreferences.pm,v 1.132 2008/12/23 19:22:13 raeburn Exp $
+# $Id: lonpreferences.pm,v 1.133 2009/01/14 15:46:19 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -515,27 +515,30 @@
         ('environment',['screenname','nickname']);
     my $screenname=$userenv{'screenname'};
     my $nickname=$userenv{'nickname'};
-    my %lt = &Apache::lonlocal::texthash(
-                                          text_screenname  => 'New screenname (shown if you post anonymously):',
-                                          text_nickname  => 'New nickname (shown if you post non-anonymously):',
-                                          text_submit => 'Change',
-                                        );
     Apache::lonhtmlcommon::add_breadcrumb(
 		{ href => '/adm/preferences?action=changescreenname',
                   text => 'Change Screen Name'});
     $r->print(Apache::loncommon::start_page('Change Screen Name'));
     $r->print(Apache::lonhtmlcommon::breadcrumbs('Change Screen Name'));
-    $r->print(<<ENDSCREEN);
-<form name="prefs" action="/adm/preferences" method="post">
-<input type="hidden" name="action" value="verify_and_change_screenname" />
-<br />$lt{'text_screenname'}
-<input type="text" size="20" value="$screenname" name="screenname" />
-<br />$lt{'text_nickname'}
-<input type="text" size="20" value="$nickname" name="nickname" />
-<br />
-<input type="submit" value="$lt{'text_submit'}" />
-</form>
-ENDSCREEN
+    $r->print('<p>'
+             .&mt('Change the name that is displayed in your posts.')
+             .'</p>'
+    );
+    $r->print('<form name="prefs" action="/adm/preferences" method="post">'
+             .'<input type="hidden" name="action" value="verify_and_change_screenname" />'
+             .&Apache::lonhtmlcommon::start_pick_box()
+             .&Apache::lonhtmlcommon::row_title(&mt('New screenname (shown if you post anonymously)'))
+             .'<input type="text" size="20" value="'.$screenname.'" name="screenname" />'
+             .&Apache::lonhtmlcommon::row_closure()
+             .&Apache::lonhtmlcommon::row_title(&mt('New nickname (shown if you post non-anonymously)'))
+             .'<input type="text" size="20" value="'.$nickname.'" name="nickname" />'
+             .&Apache::lonhtmlcommon::row_closure()
+             .&Apache::lonhtmlcommon::row_title()
+             .'<input type="submit" value="'.&mt('Save').'" />'
+             .&Apache::lonhtmlcommon::row_closure(1)
+             .&Apache::lonhtmlcommon::end_pick_box()
+             .'</form>'
+    );
 }
 
 sub verify_and_change_screenname {
Index: loncom/localize/localize/de.pm
diff -u loncom/localize/localize/de.pm:1.187 loncom/localize/localize/de.pm:1.188
--- loncom/localize/localize/de.pm:1.187	Mon Dec 22 14:24:53 2008
+++ loncom/localize/localize/de.pm	Wed Jan 14 15:46:23 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # German Localization Lexicon
 #
-# $Id: de.pm,v 1.187 2008/12/22 14:24:53 riegler Exp $
+# $Id: de.pm,v 1.188 2009/01/14 15:46:23 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -43,6 +43,7 @@
 'date_days'    => 'So.,Mo.,Di.,Mi.,Do.,Fr.,Sa.',
 'date_am' => 'vormittags',
 'date_pm' => 'nachmittags',
+'textual_remote_display' => 'on',
 'htmlarea_lang' => 'de',
 'spellcheck_lang' => 'de',
 
@@ -5416,9 +5417,6 @@
    'student'
 => 'Student',
 
-   'textual_remote_display'
-=> 'textual_remote_display',
-
    'to'
 => 'auf',
 
@@ -7269,11 +7267,11 @@
    'Change Main Menu'
 => 'Darstellung der Menüs',
 
-   'New screenname (shown if you post anonymously):'
-=> 'Nickname für anonyme Beiträge:',
+   'New screenname (shown if you post anonymously)'
+=> 'Nickname für anonyme Beiträge',
 
-   'New nickname (shown if you post non-anonymously):'
-=> 'Nickname für normale (nicht anonyme) Beiträge:',
+   'New nickname (shown if you post non-anonymously)'
+=> 'Nickname für normale (nicht anonyme) Beiträge',
 
    'Choose the time window to use to display roles for which access to the course expired.'
 => 'Auswahl des Zeitfensters zur Anzeige von Rollen, die in diesem Kurs abgelaufen sind',