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

bisitz bisitz@source.lon-capa.org
Tue, 31 Mar 2009 08:49:18 -0000


bisitz		Tue Mar 31 08:49:18 2009 EDT

  Modified files:              
    /loncom/interface	lonsyllabus.pm 
    /loncom/localize/localize	de.pm zh.pm 
  Log:
  Optimized Syllabus info messages:
  - Moved messages to top of screen (not hidden anymore somewhere inside the content boxes)
  - Optimized &mt usage to make the texts translatable
  - Added info style
  - Made code readable by adding line breaks
  
  
Index: loncom/interface/lonsyllabus.pm
diff -u loncom/interface/lonsyllabus.pm:1.84 loncom/interface/lonsyllabus.pm:1.85
--- loncom/interface/lonsyllabus.pm:1.84	Fri Mar 27 15:46:38 2009
+++ loncom/interface/lonsyllabus.pm	Tue Mar 31 08:49:09 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Syllabus
 #
-# $Id: lonsyllabus.pm,v 1.84 2009/03/27 15:46:38 bisitz Exp $
+# $Id: lonsyllabus.pm,v 1.85 2009/03/31 08:49:09 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -229,7 +229,24 @@
            &Apache::lonnet::put('syllabus',\%syllabus,$cdom,$cnum);
        }
     }
-#-Pritn Help Text
+
+#---------------------Print External URL Syllabus Info
+if( ($allowed) && ($target ne 'tex') ) {
+	my $protocol = $Apache::lonnet::protocol{$homeserver};
+  	$protocol = 'http' if ($protocol ne 'https');
+        $r->print('<p class="LC_info">'
+                 .&mt('This syllabus can be publicly viewed at [_1]'
+                     ,'<tt>'.$protocol.'://'.&Apache::lonnet::hostname($homeserver).$r->uri.'</tt>')
+                 .'&nbsp;'.&Apache::loncommon::help_open_topic('Syllabus_ExtLink')
+                 .'</p>'
+                 .'<p class="LC_info">'
+                 .&mt('Instead of using this template you can specify an external URL as Syllabus in the [_1]Course Parameters[_2].'
+                     ,'<a href="/adm/parmset?action=crsenv">','</a>')
+                 .'</p>'
+        );
+}
+
+#-Print Help Text
 if ($target ne 'tex') {
 	if($allowed){ 
 		$r->print(&Apache::loncommon::help_open_topic('Uploaded_Templates_TextBoxes',&mt('Help with filling in text boxes')));
@@ -321,12 +338,6 @@
 		          :'')
 		     .'\\\\');
        }
-#---------------------Print Extern URL Course Info
-if( ($allowed) && ($target ne 'tex') ) {
-	my $protocol = $Apache::lonnet::protocol{$homeserver};
-  	$protocol = 'http' if ($protocol ne 'https');
-	$r->print('<p>'.&mt('This syllabus can be publicly viewed at').' <tt>'.$protocol.'://'.&Apache::lonnet::hostname($homeserver).$r->uri.'</tt>'.&Apache::loncommon::help_open_topic('Syllabus_ExtLink').'</p>'.'<p>'.&mt('You can specify an external URL as Syllabus in the [_1].','<a href="/adm/parmset?action=crsenv">'.&mt('Course Parameters').'</a>').'</p>');
-}
 # -------------------------------------------------------------- Announcements?
     my $day = &Apache::lonannounce::showday(time,2,
 			 &Apache::lonannounce::readcalendar($cdom.'_'.$cnum));
Index: loncom/localize/localize/de.pm
diff -u loncom/localize/localize/de.pm:1.265 loncom/localize/localize/de.pm:1.266
--- loncom/localize/localize/de.pm:1.265	Thu Mar 26 18:21:27 2009
+++ loncom/localize/localize/de.pm	Tue Mar 31 08:49:17 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # German Localization Lexicon
 #
-# $Id: de.pm,v 1.265 2009/03/26 18:21:27 bisitz Exp $
+# $Id: de.pm,v 1.266 2009/03/31 08:49:17 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1242,8 +1242,11 @@
    'Target'
 => 'Ziel',
 
-   'This syllabus can be publicly viewed at'
-=> 'Dieser Kursüberblick kann öffentlich abgerufen werden unter',
+   'This syllabus can be publicly viewed at [_1]'
+=> 'Dieser Kursüberblick kann öffentlich abgerufen werden: [_1]',
+
+   'Instead of using this template you can specify an external URL as Syllabus in the [_1]Course Parameters[_2].'
+=> 'Anstatt diese Vorlage zu verwenden, können Sie in den [_1]Kursparametern[_2] eine externe URL als Kursüberblick angeben.',
 
    'Total number of students who have worked on this problem'
 => 'Gesamtzahl von Studierenden, die diese Aufgabe bearbeitet haben',
@@ -10543,12 +10546,6 @@
    'Revise your search criteria for this domain'
 => 'Suchkriterien für die Suche in dieser Domäne ändern',
 
-   'You can specify an external URL as Syllabus in the [_1].'
-=> 'Sie können in den [_1] eine externe URL für den Kursüberblick angeben.',
-
-   'Course Parameters'
-=> 'Kurs-Parametern',
-
    'Metadata Modified'
 => 'Geänderte Metadaten',
 
Index: loncom/localize/localize/zh.pm
diff -u loncom/localize/localize/zh.pm:1.36 loncom/localize/localize/zh.pm:1.37
--- loncom/localize/localize/zh.pm:1.36	Mon Mar 30 01:30:25 2009
+++ loncom/localize/localize/zh.pm	Tue Mar 31 08:49:18 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Chinese Simplified Localization Lexicon
 #
-# $Id: zh.pm,v 1.36 2009/03/30 01:30:25 zhu Exp $
+# $Id: zh.pm,v 1.37 2009/03/31 08:49:18 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1227,8 +1227,11 @@
    'Target'
 => '目标',
 
-   'This syllabus can be publicly viewed at'
-=> 'Dieser Kursüberblick kann öffentlich abgerufen werden unter',
+   'This syllabus can be publicly viewed at [_1]'
+=> 'Dieser Kursüberblick kann öffentlich abgerufen werden: [_1]',
+
+   'Instead of using this template you can specify an external URL as Syllabus in the [_1]Course Parameters[_2].'
+=> 'Anstatt diese Vorlage zu verwenden, können Sie in den [_1]Kursparametern[_2] eine externe URL als Kursüberblick angeben.',
 
    'Total number of students who have worked on this problem'
 => 'Gesamtzahl von Studierenden, die diese Aufgabe bearbeitet haben',
@@ -10664,12 +10667,6 @@
    'Revise your search criteria for this domain'
 => 'Suchkriterien für die Suche in dieser Domäne ändern',
 
-   'You can specify an external URL as Syllabus in the [_1].'
-=> 'Sie können in den [_1] eine externe URL für den Kursüberblick angeben.',
-
-   'Course Parameters'
-=> 'Kurs-Parametern',
-
    'Metadata Modified'
 => 'Geänderte Metadaten',