[LON-CAPA-cvs] cvs: loncom /homework grades.pm /interface loncreateuser.pm /localize/localize ru.pm zh.pm

bisitz bisitz@source.lon-capa.org
Fri, 16 Jan 2009 10:59:57 -0000


This is a MIME encoded message

--bisitz1232103597
Content-Type: text/plain

bisitz		Fri Jan 16 10:59:57 2009 EDT

  Modified files:              
    /loncom/interface	loncreateuser.pm 
    /loncom/homework	grades.pm 
    /loncom/localize/localize	ru.pm zh.pm 
  Log:
  Localization:
  - More eliminations of \' occurrences and mt call optimizations:
    Changed scripts and corresponding translation files
  - Script changes related to changes already done in de.pm 1.189 for loncreateuser.pm and grades.pm
  
  
--bisitz1232103597
Content-Type: text/plain
Content-Disposition: attachment; filename="bisitz-20090116105957.txt"

Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.273 loncom/interface/loncreateuser.pm:1.274
--- loncom/interface/loncreateuser.pm:1.273	Mon Jan  5 15:37:21 2009
+++ loncom/interface/loncreateuser.pm	Fri Jan 16 10:59:48 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.273 2009/01/05 15:37:21 raeburn Exp $
+# $Id: loncreateuser.pm,v 1.274 2009/01/16 10:59:48 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2611,12 +2611,18 @@
 		$r->print('<p><span class="LC_error">'.&mt('ERROR').': '.&mt('Unknown command').' <tt>'.$key.'</tt></span></p><br />');
             }
             foreach my $key (sort(keys(%disallowed))) {
+                $r->print('<p class="LC_warning">');
                 if (($key eq 'none') || ($key eq 'all')) {  
-                    $r->print('<p>'.&mt('[_1] may not be used as the name for a section, as it is a reserved word.',$key));
+                    $r->print(&mt('[_1] may not be used as the name for a section, as it is a reserved word.','<tt>'.$key.'</tt>'));
                 } else {
-                    $r->print('<p>'.&mt('[_1] may not be used as the name for a section, as it is the name of a course group.',$key));
+                    $r->print(&mt('[_1] may not be used as the name for a section, as it is the name of a course group.','<tt>'.$key.'</tt>'));
                 }
-                $r->print(' '.&mt('Please <a href="javascript:history.go(-1)">go back</a> and choose a different section name.').'</p><br />');
+                $r->print('</p><p>'
+                         .&mt('Please [_1]go back[_2] and choose a different section name.'
+                             ,'<a href="javascript:history.go(-1)'
+                             ,'</a>')
+                         .'</p><br />'
+                );
             }
 	}
     } # End of foreach (keys(%env))
@@ -5069,7 +5075,7 @@
                         $warning{$item} = &mt('Section for self-enrolled users unchanged as the proposed section is a group').'<br />'.&mt('Group names and section names must be distinct');
                     } elsif ($newval eq 'all') {
                         $newval = $curr_val;
-                        $warning{$item} = &mt("Section for self-enrolled users unchanged, as 'all' is a reserved section name.");
+                        $warning{$item} = &mt('Section for self-enrolled users unchanged, as "all" is a reserved section name.');
                     }
                     if ($newval eq '') {
                         $newval = 'none';
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.547 loncom/homework/grades.pm:1.548
--- loncom/homework/grades.pm:1.547	Fri Jan 16 02:31:49 2009
+++ loncom/homework/grades.pm	Fri Jan 16 10:59:52 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.547 2009/01/16 02:31:49 raeburn Exp $
+# $Id: grades.pm,v 1.548 2009/01/16 10:59:52 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -779,12 +779,12 @@
     my $getsec    = $env{'form.section'} eq '' ? 'all' : $env{'form.section'};
     my $getgroup  = $env{'form.group'} eq '' ? 'all' : $env{'form.group'};
     my $submitonly= $env{'form.submitonly'} eq '' ? 'all' : $env{'form.submitonly'};
-    my $viewgrade = $env{'form.showgrading'} eq 'yes' ? &mt('View/Grade/Regrade') : &mt('View');
+    my $viewgrade = $env{'form.showgrading'} eq 'yes' ? 'View/Grade/Regrade' : 'View';
     $env{'form.probTitle'} = $env{'form.probTitle'} eq '' ? 
 	&Apache::lonnet::gettitle($symb) : $env{'form.probTitle'};
 
-    my $result='<h3><span class="LC_info">&nbsp;'.$viewgrade.
-	&mt(' Submissions for a Student or a Group of Students')
+    my $result='<h3><span class="LC_info">&nbsp;'
+	.&mt("$viewgrade Submissions for a Student or a Group of Students")
 	.'</span></h3>';
 
     my ($table,undef,$hdgrade,$partlist,$handgrade) = &showResourceInfo($symb,$env{'form.probTitle'},($env{'form.showgrading'} eq 'yes'));
@@ -889,7 +889,7 @@
 			 &Apache::lonhtmlcommon::StatusOptions($saveStatus,undef,1,'javascript:reLoadList(this.form);')).'<br />';
     }
 
-    $gradeTable.=&mt('To [_1] a submission or a group of submissions, click on the check box(es) next to the student\'s name(s). Then click on the Next button.',lc($viewgrade)).'<br />'."\n".
+    $gradeTable.=&mt('To '.lc($viewgrade)." a submission or a group of submissions, click on the check box(es) next to the student's name(s). Then click on the Next button.").'<br />'."\n".
 	'<input type="hidden" name="command" value="processGroup" />'."\n";
 
 # checkall buttons
Index: loncom/localize/localize/ru.pm
diff -u loncom/localize/localize/ru.pm:1.49 loncom/localize/localize/ru.pm:1.50
--- loncom/localize/localize/ru.pm:1.49	Thu Sep 11 16:04:47 2008
+++ loncom/localize/localize/ru.pm	Fri Jan 16 10:59:56 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Russian Localization Lexicon
 #
-# $Id: ru.pm,v 1.49 2008/09/11 16:04:47 bisitz Exp $
+# $Id: ru.pm,v 1.50 2009/01/16 10:59:56 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -304,14 +304,14 @@
    'Add new option'
 => 'Добавить новую опцию',
 
-   'Add one empty page/column after each student\'s assignment'
-=> 'Добавить пустую страницу/столбец после каждого студенческого задания',
+   "Add one empty page/column after each student's assignment"
+=> "Добавить пустую страницу/столбец после каждого студенческого задания",
 
-   'Add two empty pages/column after each student\'s assignment'
-=> 'Добавить две пустые страницы/столбца после каждого студенческого задания',
+   "Add two empty pages/column after each student's assignment"
+=> "Добавить две пустые страницы/столбца после каждого студенческого задания",
 
-   'Add three empty pages/column after each student\'s assignment'
-=> 'Добавить три пустые страницы/столбца после каждого студенческого задания',
+   "Add three empty pages/column after each student's assignment"
+=> "Добавить три пустые страницы/столбца после каждого студенческого задания",
 
    'Additional Keywords'
 => 'Дополнительные Ключевые Слова',
@@ -2906,8 +2906,8 @@
    'Start'
 => 'Начало',
 
-   'Start each student\'s assignment on a new page/column (add a pagefeed after each assignment)'
-=> 'Задание каждого студента стартовать с новой страницы/столбца',
+   "Start each student's assignment on a new page/column (add a pagefeed after each assignment)"
+=> "Задание каждого студента стартовать с новой страницы/столбца",
 
    'Start Time',
 => 'Начальное Время',
Index: loncom/localize/localize/zh.pm
diff -u loncom/localize/localize/zh.pm:1.2 loncom/localize/localize/zh.pm:1.3
--- loncom/localize/localize/zh.pm:1.2	Thu Jan 15 10:41:06 2009
+++ loncom/localize/localize/zh.pm	Fri Jan 16 10:59:56 2009
@@ -6612,6 +6612,9 @@
    "What's New? page"
 => "Was-gibt's-Neues-Seite",
 
+   "What's New page"
+=> "Was-gibt's-Neues-Seite",
+
    'You are accessing an invalid course'
 => 'Sie versuchen auf einen ungültigen Kurs zuzugreifen.',
 
@@ -9849,8 +9852,8 @@
    'Force all students in the course to use a specific math rendering engine.'
 => 'Vorgabe für alle Studenten im Kurs, wie wissenschaftliche Formeln dargestellt werden sollen',
 
-   '[_1], [_2] (Convert to Images), [_3] (Tex to HTML), or blank for student\'s preference'
-=> '[_1], [_2] (in Grafik konvertieren), [_3] (Tex-nach-HTML) oder leer lassen für studentische Voreinstellung',
+   "[_1], [_2] (Convert to Images), [_3] (TeX to HTML), or blank for student's preference"
+=> "[_1], [_2] (in Grafik konvertieren), [_3] (TeX-nach-HTML) oder leer lassen für studentische Voreinstellung",
 
    'Bridge Task Grading'
 => 'Bewertung von "Bridge Tasks"',
@@ -9957,8 +9960,8 @@
    '[_1] may not be used as the name for a section, as it is the name of a course group.'
 => '[_1] ist nicht als Sektionsname zulässig, da er bereits als Name einer bestehenden Kursgruppe verwendet wird.',
 
-   'Please <a href="javascript:history.go(-1)">go back</a> and choose a different section name.'
-=> 'Bitte gehen Sie <a href="javascript:history.go(-1)">zurück</a> und wählen Sie einen anderen Sektionsnamen.',
+   'Please [_1]go back[_2] and choose a different section name.'
+=> 'Bitte gehen Sie [_1]zurück[_2] und wählen Sie einen anderen Sektionsnamen.',
 
    'Drop from classlist: [_1]'
 => 'Aus Kursteilnehmerliste ausschließen: [_1]',
@@ -10116,8 +10119,8 @@
    '[_1] to require students to opt-in to listing in the roster (on the roster page).'
 => '[_1], um Notwendigkeit des studentischen Einverständnisses zu aktivieren.',
 
-   '[_1] for link to each a listing of each student\'s files.'
-=> '[_1] zum Einbinden von Links zu jeder Liste mit den Dateien eines jeden Studenten.',
+   "[_1] for link to each a listing of each student's files."
+=> "[_1] zum Einbinden von Links zu jeder Liste mit den Dateien eines jeden Studenten.",
 
    '[_1]: student, [_2]: TA, [_3]: instructor'
 => '[_1]: Student, [_2]: Tutor, [_3]: Dozent',
@@ -10226,8 +10229,8 @@
    'help on ranking problems'
 => 'Hilfe zu Rangordnungs-Aufgaben',
 
-   'Submission won\'t be graded. The type of file submitted is not allowed.'
-=> 'Ihre Antwort wurde nicht gewertet. Der Dateityp ist nicht erlaubt.',
+   "Submission won't be graded. The type of file submitted is not allowed."
+=> "Ihre Einreichung wurde nicht gewertet. Der Dateityp ist nicht erlaubt.",
 
    'Submission not graded. Use fewer digits.'
 => 'Ihre Antwort wurde nicht gewertet. Verwenden Sie weniger Dezimalstellen.',
@@ -10890,8 +10893,8 @@
    'As this is not the case, most functionality in the system will be unavailable.'
 => 'Da dies momentan nicht der Fall ist, werden die meisten Funktionen des Systems nicht zur Verfügung stehen.',
 
-   'You have requested to create file in directory [_1] which doesn\'t exist. The requested directory path has been removed from the requested file name.'
-=> 'Schreiben in das Verzeichnis [_1] ist nicht möglich, da es nicht existiert. Der entsprechende Verzeichnispfad wurde daher entfernt.',
+   "You have requested to create file in directory [_1] which doesn't exist. The requested directory path has been removed from the requested file name."
+=> "Schreiben in das Verzeichnis [_1] ist nicht möglich, da es nicht existiert. Der entsprechende Verzeichnispfad wurde daher entfernt.",
 
    'Directory'
 => 'Verzeichnis',
@@ -12093,10 +12096,10 @@
    'Creating new file [_1]'
 => 'Erzeuge neue Datei [_1]',
 
-   'If you would like to associate this resource ([_1]) with a current or previous course, please select one from the list below, otherwise select, \'None\''
-=> 'Falls Sie diese Ressource ([_1]) mit einem aktuellen oder alten Kurs verknüpfen wollen, wählen Sie bitte einen Kurs aus der unten angebotenen Liste. Ansonsten wählen Sie \'nichts\'.',
+   'If you would like to associate this resource ([_1]) with a current or previous course, please select one from the list below, otherwise select, "None".'
+=> 'Falls Sie diese Ressource ([_1]) mit einem aktuellen oder alten Kurs verknüpfen wollen, wählen Sie bitte einen Kurs aus der unten angebotenen Liste. Ansonsten wählen Sie "nichts".',
 
-   'Associate Resource With Selected Course'
+    'Associate Resource With Selected Course'
 => 'Verknüpfte Ressource mit ausgewähltem Kurs',
 
    'This resource is currently associated with a course ([_1]) which includes added metadata fields specific to the course.'
@@ -14031,14 +14034,14 @@
    '(Currently: [_1])'
 => '(Derzeit: [_1])',
 
-   'The global user preference you set for your courses can be overridden in an individual course by setting a course specific setting via the "[_1]" page in the course' # [_1]: "<i>What's New</i>"
-=> 'Die hier vorgenommenen allgemeinen Benutzereinstellungen können in einzelnen Kursen überschrieben werden, indem spezielle Kurs-Einstellungen auf der "<i>Was-gibt\'s-Neues-Seite</i>" im jeweiligen Kurs vorgenommen werden.',
+   "The global user preference you set for your courses can be overridden in an individual course by setting a course specific setting via the [_1]What's New page[_2] in the course."
+=> "Die hier vorgenommenen allgemeinen Benutzereinstellungen können in einzelnen Kursen überschrieben werden, indem spezielle Kurs-Einstellungen auf der [_1]Was-gibt's-Neues-Seite[_2] im jeweiligen Kurs vorgenommen werden.",
 
-   'Display the [_1] in the course.' # [_1]: '<b>first resource</b>'
-=> 'Anzeige der <b>ersten Ressource</b> im Kurs.',
+   'Display the [_1]first resource[_2] in the course.'
+=> 'Anzeige der [_1]ersten Ressource[_2] im Kurs.',
 
-   'Display the "[_1]" page - a summary of items in the course which require attention.' # [_1]: "<b>What's New</b>"
-=> 'Anzeige der "<b>Was-gibt\'s-Neues-Seite</b> - Übersicht von Elementen, auf die geachtet werden sollte.',
+   "Display the [_1]What's New page[_2] - a summary of items in the course which require attention."
+=> "Anzeige der [_1]Was-gibt's-Neues-Seite[_2] - eine Übersicht von Elementen im Kurs, auf die geachtet werden sollte.",
 
    'Default now set'
 => 'Voreinstellung ist ab sofort',
@@ -14085,14 +14088,14 @@
    ' at '
 => ' in ',
 
-   'Computer\'s answer is incorrect ("[_1]").'
-=> 'Die hinterlegte Antwort ist falsch ("[_1]").',
+   "Computer's answer is incorrect ([_1])."
+=> "Die hinterlegte Antwort ist falsch ([_1]).",
 
-   'Computer\'s answer is incorrect ("[_1]"). It is likely that the tolerance range [_2] or significant figures [_3] need to be adjusted.'
-=> 'Die hinterlegte Antwort ist falsch ("[_1]"). Es scheint, als dass der Toleranzbereich [_2] oder die signifikanten Stellen [_3] angepasst werden müssten.',
+   'It is likely that the tolerance range [_1] or significant figures [_2] need to be adjusted.'
+=> 'Wahrscheinlich müssen der Toleranzbereich [_1] oder die signifikanten Stellen [_2] angepasst werden.',
 
-   'Computer\'s answer is incorrect ("[_1]"). It is likely that the tolerance range [_2] needs to be adjusted.'
-=> 'Die hinterlegte Antwort ist falsch ("[_1]"). Es scheint, als dass der Toleranzbereich [_2] angepasst werden müsste.',
+   'It is likely that the tolerance range [_1] needs to be adjusted.'
+=> 'Wahrscheinlich muss der Toleranzbereich [_1] angepasst werden.',
 
    'Submission Record'
 => 'Einreichungs-Aufzeichnungen',
@@ -15198,8 +15201,8 @@
    'The uploaded screenshot file ([_1] bytes) included with your request exceeded the maximum allowed size - 128 KB, and has therefore been discarded.'
 => 'Die hochgeladene Screenshot-Datei Ihrer Anfrage hat die maximale Größe von 128 KB überschritten ([_1] Bytes) und wurde daher nicht verworfen.',
 
-   'An uploaded screenshot file \'[_1]\' ([_2] bytes) was included in the request sent by [_3].'
-=> 'Eine hochgeladene Screenshot-Datei \'[_1]\' ([_2] Bytes) wurde der Anfrage beigefügt, die von [_3] gesendet wurde.',
+   'An uploaded screenshot file [_1] ([_2] bytes) was included in the request sent by [_3].'
+=> 'Eine hochgeladene Screenshot-Datei [_1] ([_2] Bytes) wurde der Anfrage beigefügt, die von [_3] gesendet wurde.',
 
    'File does not have [_1] or [_2] starting tag'
 => 'Die Datei hat weder ein [_1]- noch ein [_2]-Start-Tag',
@@ -16164,8 +16167,8 @@
    'Group names and section names must be distinct'
 => 'Gruppen- und Sektionsnamen müssen eindeutig sein',
 
-   "Section for self-enrolled users unchanged, as 'all' is a reserved section name."
-=> 'Sektion für selbst eingetragene Benutzer nicht geändert, da \'Alle\' ein geschützter Sektionsname ist.',
+   'Section for self-enrolled users unchanged, as "all" is a reserved section name.'
+=> 'Sektion für selbst eingetragene Benutzer nicht geändert, da "all" ein system-intern reservierter Sektionsname ist.',
 
    'An error occurred when saving changes to self-enrollment settings in this course.'
 => 'Ein Fehler trat während des Speicherns der Änderungen an den Selbsteintragungs-Einstellungen in diesem Kurs auf.',

--bisitz1232103597--