]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-13766, added more language strings for repository api"
authordongsheng <dongsheng>
Mon, 22 Jun 2009 03:45:24 +0000 (03:45 +0000)
committerdongsheng <dongsheng>
Mon, 22 Jun 2009 03:45:24 +0000 (03:45 +0000)
lang/en_utf8/repository.php
lang/en_utf8/repository_local.php
repository/boxnet/repository.class.php
repository/filepicker.php
repository/flickr/repository.class.php
repository/flickr_public/repository.class.php
repository/local/repository.class.php

index 10d23c55d38d0bc7381d0063eca5e9f44ab34e70..d3296d37fe55a75378a9d624e07b088fd197020d 100644 (file)
@@ -1,7 +1,8 @@
 <?php //$Id$
 $string['accessiblefilepicker']='Accessible file picker';
 $string['activerepository'] = 'Active repository plugins';
-$string['add'] = 'Add...';
+$string['add'] = 'Add';
+$string['addfile'] = 'Add...';
 $string['addplugin'] = 'Add a repository plugin';
 $string['activaterep'] = 'Active repositories';
 $string['areabackup'] = 'Backups';
@@ -16,6 +17,7 @@ $string['attachedfiles'] = 'Attached files';
 $string['back'] = '&lt; Back';
 $string['cacheexpire'] = 'Cache expire';
 $string['cachecleared'] = 'Cached files are removed';
+$string['cannotaccessparentwin'] = 'If parent window is on HTTPS, then we are not allowed to access window.opener object, so we cannot refresh the repository for you automatically, but we already got your session, just go back to file picker and select the repository again, it should work now.';
 $string['cannotdelete'] = 'Cannot delete this file.';
 $string['cannotdownload'] = 'Cannot download this file';
 $string['cannotinitplugin'] = 'Call plugin_init failed';
@@ -81,6 +83,7 @@ $string['preview'] = 'Preview';
 $string['popup'] = 'Click "Login" button to login';
 $string['readonlyinstance'] = 'You cannot edit/delete a read-only instance';
 $string['refresh'] = 'Refresh';
+$string['refreshnonjsfilepicker'] = 'Please clos this window and refresh non-javascript file picker';
 $string['removed'] = 'Repository removed';
 $string['repository'] = 'Repository';
 $string['repositorycourse'] = 'Course repositories';
index 00974423b85da0424019c1cc2359219d8e02823d..0db9e5d3e152d73cb56d6a95a0e28a060005cabe 100644 (file)
@@ -1,5 +1,6 @@
 <?php // $Id$
 $string['configplugin'] = 'Configuration for local file repository';
+$string['currentusefiles'] = 'Current use files';
 $string['repositoryname'] = 'Local files';
 $string['repositorydesc'] = 'Repository on the local Moodle server';
 $string['notitle'] = 'notitle';
index 953c0b0c1ca5a6eb1b14d0e368d5825911213f37..2318eb0e05949e0821f1892eed2cc03bee0e5449 100755 (executable)
@@ -216,7 +216,7 @@ class repository_boxnet extends repository {
             echo '<td><input type="password" name="boxpassword" /></td></tr>';
             echo '<input type="hidden" name="ticket" value="'.$t['ticket'].'" />';
             echo '</table>';
-            echo '<input type="submit" value="Enter" />';
+            echo '<input type="submit" value="'.get_string('enter', 'repository').'" />';
         }
     }
 
index 45db02d020a4e5c466902465142ea17f5fba5969..8ed99b8a60102af0d8a419876c13799ad932f795 100755 (executable)
@@ -250,7 +250,7 @@ default:
         }
         echo '</ul>';
     }
-    echo '<div><a href="'.$url.'&amp;action=plugins">'.get_string('add', 'repository').'</a></div>';
+    echo '<div><a href="'.$url.'&amp;action=plugins">'.get_string('addfile', 'repository').'</a></div>';
     print_footer('empty');
     break;
 }
index 0a14a620b4e7f1d5cdeafcd5a92e9635b218caf5..1bee4a27badf56f1c4f3ab44f9d25e285ce9a650 100755 (executable)
@@ -133,7 +133,7 @@ class repository_flickr extends repository {
             $ret['login'] = array($popup_btn);
             return $ret;
         } else {
-            echo '<a target="_blank" href="'.$this->flickr->auth().'">Login</a>';
+            echo '<a target="_blank" href="'.$this->flickr->auth().'">'.get_string('login', 'repository').'</a>';
         }
     }
 
index 3eda509317a1d4bf5d2c55a2adea3a3289f0030c..84a27117a565d0a77896a7eb01fd4ba2ba8e328a 100644 (file)
@@ -182,7 +182,7 @@ class repository_flickr_public extends repository {
             echo '</table>';
 
             echo '<input type="hidden" name="action" value="search" />';
-            echo '<input type="submit" value="Search" />';
+            echo '<input type="submit" value="'.get_string('search', 'repository').'" />';
         }
     }
 
index a17c76081d33e823620dad7a5a1c2f0335d79c91..d94b03dfa260a31cd14ddbc391314809bbb37443 100755 (executable)
@@ -89,7 +89,7 @@ class repository_local extends repository {
             $context  = get_system_context();
             // append draft files directory
             $node = array(
-                'title' => 'Current use files',
+                'title' => get_string('currentusefiles', 'repository_local'),
                 'size' => 0,
                 'date' => '',
                 'path' => 'draft',