From 4f4c5fbbf888495ca734231459b9496abd5d1539 Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 10 Nov 2011 20:08:08 +0100 Subject: Added description field and arranged english language file. --- languages/en.php | 41 ++++++++++++++-------------------- start.php | 1 + views/default/forms/videolist/edit.php | 1 + 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 @@ - * @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) { -- cgit v1.2.3