]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12886 support for ws cap names in core
authorPetr Skoda <skodak@moodle.org>
Mon, 26 Oct 2009 19:41:06 +0000 (19:41 +0000)
committerPetr Skoda <skodak@moodle.org>
Mon, 26 Oct 2009 19:41:06 +0000 (19:41 +0000)
lang/en_utf8/webservice_amf.php
lang/en_utf8/webservice_rest.php
lang/en_utf8/webservice_soap.php
lang/en_utf8/webservice_xmlrpc.php
lib/accesslib.php

index e3cf1d66d7528233346b44e3714459876047b838..113dbbdf3f269e77ca5505592ba3a33043130236 100644 (file)
@@ -1,3 +1,4 @@
 <?php
 
-$string['pluginname'] = 'AMF protocok';
+$string['amf:use'] = 'Use AMF protocol';
+$string['pluginname'] = 'AMF protocol';
index 34591840b85e1af54234291b9c1bd11ace0f2131..f676724f3953068d2792f0af6b99ceaff81e953e 100644 (file)
@@ -1,3 +1,4 @@
 <?php
 
+$string['rest:use'] = 'Use REST protocol';
 $string['pluginname'] = 'REST protocol';
index a7d426ea9f5011ceb239cb97d347233c8f180c7e..efa201dbecb45678864cd9cc3a96fd247a3d8b53 100644 (file)
@@ -1,3 +1,4 @@
 <?php
 
+$string['soap:use'] = 'Use SOAP protocol';
 $string['pluginname'] = 'SOAP protocol';
index 1800fd1d9ac9e245b4b604e0ffe052b0fbfdd62f..be22aff45e802312112cae12afb897fde0dfeba4 100644 (file)
@@ -1,3 +1,4 @@
 <?php
 
+$string['xmlrpc:use'] = 'Use XML-RPC protocol';
 $string['pluginname'] = 'XML-RPC protocol';
index 2feb7412fdc12bf0a7c00a1dfdd196648e8505b5..7133845edff23afcf083c131ba91c4b15ce07ac6 100755 (executable)
@@ -4056,6 +4056,14 @@ function get_capability_string($capabilityname) {
             $string = get_string($stringname, 'repository_'.$componentname);
         break;
 
+        case 'local':
+            $string = get_string($stringname, 'local_'.$componentname);
+        break;
+
+        case 'webservice':
+            $string = get_string($stringname, 'webservice_'.$componentname);
+        break;
+        
         default:
             $string = get_string($stringname);
         break;
@@ -4108,6 +4116,8 @@ function get_component_string($component, $contextlevel) {
                 $string = get_string('gradebook', 'admin');
             } else if (preg_match('|^coursereport/|', $component)) {
                 $string = get_string('coursereports');
+            } else if (preg_match('|^webservice/|', $component)) {
+                $string = get_string('webservices', 'webservice');
             } else {
                 $string = get_string('course');
             }