]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14854
authorthepurpleblob <thepurpleblob>
Thu, 29 May 2008 10:53:30 +0000 (10:53 +0000)
committerthepurpleblob <thepurpleblob>
Thu, 29 May 2008 10:53:30 +0000 (10:53 +0000)
Changed the language strings to something more sensible as per Petr's comments.

admin/xmldb/actions/check_defaults/check_defaults.class.php
lang/en_utf8/xmldb.php

index 896021906b6ae292eb5a5d354e9a92ec4f6f9708..8f6cde2232cb94f8a293071a8d2eba015940fdff 100644 (file)
@@ -55,8 +55,8 @@ class check_defaults extends XMLDBAction {
             'yes' => '',
             'no' => '',
             'error' => '',
-            'shouldbe' => 'xmldb',
-            'butis' => 'xmldb',
+            'expected' => 'xmldb',
+            'actual' => 'xmldb',
             'back' => 'xmldb'
 
         ));
@@ -186,8 +186,8 @@ class check_defaults extends XMLDBAction {
 
                                     // there *is* a default and it's wrong
                                     if ($physicaldefault != $xmldbdefault) {
-                                        $info = '['.$this->str['shouldbe']." '$xmldbdefault' ".$this->str['butis'].
-                                        " '$physicaldefault']";
+                                        $info = '('.$this->str['expected']." '$xmldbdefault', ".$this->str['actual'].
+                                        " '$physicaldefault')";
                                         $o.='<font color="red">' . $this->str['wrong'] . " $info</font>";
                                     /// Add the wrong field to the list
                                         $obj = new object;
@@ -236,8 +236,8 @@ class check_defaults extends XMLDBAction {
 
                     $r.= '            <li>' . $this->str['table'] . ': ' . $xmldb_table->getName() . '. ' .
                                               $this->str['field'] . ': ' . $xmldb_field->getName() . ', ' .
-                                              $this->str['shouldbe'] . ' ' . "'$xmldbdefault'" . ' ' .
-                                              $this->str['butis'] . ' ' . "'$physicaldefault'" . '</li>';
+                                              $this->str['expected'] . ' ' . "'$xmldbdefault'" . ' ' .
+                                              $this->str['actual'] . ' ' . "'$physicaldefault'" . '</li>';
                     /// Add to output if we have sentences
                     if ($sqlarr) {
                         $sqlarr = $dbman->generator->getEndedStatements($sqlarr);
index e5effe268a132f50c660873a3e74be398e396bb1..ea45c24544ceae96b53faca78927ef619787a4df 100644 (file)
@@ -1,12 +1,11 @@
 <?PHP // $Id$ 
       // xmldb.php - created with Moodle 1.7 beta + (2006101003)
 
-
+$string['actual'] = 'Actual';
 $string['aftertable'] = 'After Table:';
 $string['back'] = 'Back';
 $string['backtomainview'] = 'Back To Main';
 $string['binaryincorrectlength'] = 'Incorrect length for binary field';
-$string['butis'] = 'but is';
 $string['cannotuseidfield'] = 'Cannot insert the \"id\" field. It is an autonumeric column';
 $string['change'] = 'Change';
 $string['charincorrectlength'] = 'Incorrect length for char field';
@@ -61,6 +60,7 @@ $string['edit_statement'] = 'Edit Statement';
 $string['edit_table'] = 'Edit Table';
 $string['edit_xml_file'] = 'Edit XML File';
 $string['enumvaluesincorrect'] = 'Incorrect values for enum field';
+$string['expected'] = 'Expected';
 $string['field'] = 'Field';
 $string['fieldnameempty'] = 'Name field empty';
 $string['fields'] = 'Fields';
@@ -113,7 +113,6 @@ $string['selectonecommand'] = 'Please, select one Action from the list to view P
 $string['selectonefieldkeyindex'] = 'Please, select one Field/Key/Index from the list to view the PHP code';
 $string['selecttable'] = 'Select Table:';
 $string['sentences'] = 'Sentences';
-$string['shouldbe'] = 'should be';
 $string['statements'] = 'Statements';
 $string['statementtable'] = 'Statement Table:';
 $string['statementtype'] = 'Statement Type:';