aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-11-10 20:08:08 +0100
committerSem <sembrestels@riseup.net>2011-11-10 20:08:08 +0100
commit4f4c5fbbf888495ca734231459b9496abd5d1539 (patch)
tree2a3bd9bffc7f0ec4005a5db05e12392b5fd7cd6d
parentc2dd51263f83815092bdcf29588afd4b84b31e1f (diff)
downloadelgg-4f4c5fbbf888495ca734231459b9496abd5d1539.tar.gz
elgg-4f4c5fbbf888495ca734231459b9496abd5d1539.tar.bz2
Added description field and arranged english language file.
-rw-r--r--languages/en.php41
-rw-r--r--start.php1
-rw-r--r--views/default/forms/videolist/edit.php1
3 files changed, 19 insertions, 24 deletions
diff --git a/languages/en.php b/languages/en.php
index 747bf725c..db181aa37 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -1,13 +1,10 @@
<?php
/**
- * Elgg Video Plugin
- * This plugin allows users to create a library of youtube/vimeo/metacafe videos
- * @file - language file 'en'
- * @package Elgg
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Prateek Choudhary <synapticfield@gmail.com>
- * @copyright Prateek Choudhary
+ * Elgg videolist english language pack.
+ *
+ * @package ElggVideolist
*/
+
$english = array(
"videolist" => "Videos",
@@ -24,16 +21,16 @@ $english = array(
'videolist:friends' => "Friends' videos",
'videolist:edit' => "Edit video",
'videolist:ingroup' => "in the group",
- "videolist:video_url" => 'Enter Video Url',
"videolist:submit" => 'Submit',
- "videolist:videoTitle" => "Title",
- "videolist:error" => 'There was an error in saving the video, please try after sometime',
- "videolist:posted" => 'Your video has been saved successfully!',
- "video:more" => "View all videos",
- "video:none" => "sorry, no videos were found",
- "candidateprofile:candidatevideo" => "My videos",
- "videos:deleted" => "Your Video was removed successfully!",
- "videos:notdeleted" => "Unfortunately, this video could not be removed now. Please try again later",
+ "videolist:title" => "Title",
+ "videolist:description" => "Description",
+ "videolist:video_url" => "Enter video URL",
+ "videolist:error:no_save" => 'There was an error in saving the video, please try after sometime',
+ "videolist:saved" => 'Your video has been saved successfully!',
+ "videolist_item:more" => "View all videos",
+ "videolist_item:none" => "sorry, no videos were found",
+ "videolist:deleted" => "Your video was removed successfully!",
+ "videolist:deletefailed" => "Unfortunately, this video could not be removed now. Please try again later",
"videolist:widget" => "Videos",
"videolist:widget:description" => "Your personal video playlist",
"videolist:num_videos" => "Number of videos to display",
@@ -41,7 +38,7 @@ $english = array(
"videolist:widget:description" => "Showcase your personal video gallery from youtube",
"profile:videoheader" => "My Video Gallery",
"videolist:access_id" => "Who can see you posted this video?",
- "item:object:videolist" => "Videos",
+ "item:object:videolist_item" => "Videos",
"videolist:tags" => "Add Tags",
"videolist:browse" => "Find Videos - %s",
"videolist:browsemenu" => "Find Videos",
@@ -49,17 +46,13 @@ $english = array(
"videolist:searchTubeVideos" => "Search youtube.com",
"videolist:comments" => "Comments",
"videolist:commentspost" => "Post",
- "videolist:river:annotate" => "%s commented on",
+ "river:comment:object:videolist_item" => "%s commented on %s",
"videolist:river:item" => "a video",
"videolist:river:created" => "%s added",
- "videolist:searchTubeVideos:metacafe" => "Search metacafe.com",
- "videolist:searchTubeVideos:vimeo" => "Search vimeo.com",
- "videolist:searchTubeVideos:googlevideos" => "Search video.google.com",
- "videolist:group" => "Videos",
+ "videolist:group" => "Group Videos",
"videolist:groupall" => "All Group Videos",
"videolist:delete:confirm" => "Are you sure you want to delete this video?",
- "videolist:none" => "This group does not have any videos yet",
- "videolist:none:found" => "No videos were found."
+ "videolist:none" => "No videos were found.",
);
add_translation("en",$english);
diff --git a/start.php b/start.php
index f0fe8253c..ad6998382 100644
--- a/start.php
+++ b/start.php
@@ -33,6 +33,7 @@ function videolist_init() {
elgg_set_config('videolist', array(
'video_url' => 'url',
'title' => 'text',
+ 'description' => 'longtext',
'tags' => 'tags',
'access_id' => 'access',
));
diff --git a/views/default/forms/videolist/edit.php b/views/default/forms/videolist/edit.php
index ba6141263..8bbbcffb7 100644
--- a/views/default/forms/videolist/edit.php
+++ b/views/default/forms/videolist/edit.php
@@ -9,6 +9,7 @@ $variables = elgg_get_config('videolist');
if(empty($vars['guid'])){
unset($variables['title']);
+ unset($variables['description']);
}
foreach ($variables as $name => $type) {