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

bisitz bisitz@source.lon-capa.org
Tue, 12 May 2009 15:20:29 -0000


bisitz		Tue May 12 15:20:29 2009 EDT

  Modified files:              
    /loncom/interface	lonpreferences.pm 
    /loncom/localize/localize	de.pm 
  Log:
  Localization and Screen Output Standardization for jsMath-TeX-fonts-missing message:
  - Localized output text
  - Replaced hardcoded special style by standard styles:
     - Wrapped main warning message in LC_warning to highlight the main warning
     - Print rest of message in normal style to provide user with further details
  - Added translation phrases to de.pm
  
  
Index: loncom/interface/lonpreferences.pm
diff -u loncom/interface/lonpreferences.pm:1.161 loncom/interface/lonpreferences.pm:1.162
--- loncom/interface/lonpreferences.pm:1.161	Tue May 12 14:56:27 2009
+++ loncom/interface/lonpreferences.pm	Tue May 12 15:20:23 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Preferences
 #
-# $Id: lonpreferences.pm,v 1.161 2009/05/12 14:56:27 bisitz Exp $
+# $Id: lonpreferences.pm,v 1.162 2009/05/12 15:20:23 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -232,6 +232,21 @@
       'mimetex'  => 'mimetex (Convert to Images):',
     );
 
+    my $jsMathWarning='<p>'
+                     .'<div class="LC_warning">'
+                     .&mt("It looks like you don't have the TeX math fonts installed.")
+                     .'</div>'
+                     .'<div>'
+                     .&mt('The jsMath example on this page may not look right without them. '
+                         .'The [_1]jsMath Home Page[_2] has information on how to download the '
+                         .'needed fonts. In the meantime, jsMath will do the best it can '
+                         .'with the fonts you have, but it may not be pretty and some equations '
+                         .'may not be rendered correctly.'
+                         ,'<a href="http://www.math.union.edu/locate/jsMath/" target="_blank">'
+                         ,'</a>')
+                     .'</div>'
+                     .'</p>';
+
     $r->print(<<ENDLSCREEN);
 <h2>$lt{'headline'}</h2>
 <form name="prefs" action="/adm/preferences" method="post">
@@ -251,18 +266,7 @@
 $jsMath_start
 <script type="text/javascript" language="JavaScript">
 if (jsMath.nofonts == 1) {
-    document.writeln
-        ('<div style="padding: 10; border-style: solid; border-width:3;'
-	 +' border-color: #DD0000; background-color: #FFF8F8; width: 75%; text-align: left">'
-	 +'<small><font color="#AA0000"><b>Warning:</b> '
-	 +'It looks like you don\\\'t have the TeX math fonts installed. '
-	 +'The jsMath example on this page may not look right without them. '
-	 +'The <a href="http://www.math.union.edu/locate/jsMath/" target="_blank"> '
-	 +'jsMath Home Page</a> has information on how to download the '
-	 +'needed fonts.  In the meantime, jsMath will do the best it can '
-	 +'with the fonts you have, but it may not be pretty and some equations '
-	 +'may not be rendered correctly. '
-	 +'</font></small></div>');
+    document.writeln($jsMathWarning);
 }
 </script>
 <iframe src="/res/adm/pages/math_example.tex?inhibitmenu=yes&texengine=jsMath" width="400" height="120"></iframe>
Index: loncom/localize/localize/de.pm
diff -u loncom/localize/localize/de.pm:1.293 loncom/localize/localize/de.pm:1.294
--- loncom/localize/localize/de.pm:1.293	Mon May 11 13:07:14 2009
+++ loncom/localize/localize/de.pm	Tue May 12 15:20:29 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # German Localization Lexicon
 #
-# $Id: de.pm,v 1.293 2009/05/11 13:07:14 bisitz Exp $
+# $Id: de.pm,v 1.294 2009/05/12 15:20:29 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -14577,6 +14577,12 @@
    'mimetex (Convert to Images)'
 => 'mimetex (In Grafik konvertieren)',
 
+   "It looks like you don't have the TeX math fonts installed."
+=> 'Offenbar sind auf Ihrem Computer nicht die TeX-Mathematik-Zeichensätze installiert.',
+
+   'The jsMath example on this page may not look right without them. The [_1]jsMath Home Page[_2] has information on how to download the needed fonts. In the meantime, jsMath will do the best it can with the fonts you have, but it may not be pretty and some equations may not be rendered correctly.'
+=> 'Das jsMath-Beispiel auf dieser Seite könnte ohne diese Zeichensätze nicht korrekt ausschauen. Auf der [_1]jsMath-Homepage[_2] finden Sie Informationen wie man die notwendigen Zeichensätze installiert. Bis dahin versucht jsMath mit den vorhandenen Zeichensätzen eine Darstellung so gut es geht. Das Ergebnis könnte jedoch nicht sehr schön aussehen und einige Gleichungen könnten falsch gerendert werden.',
+
    'jsMath:'
 => 'jsMath:',