From ad93cb251c2289b1161559521e9c53f05b08e37c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor?= Date: Wed, 2 Nov 2016 09:29:18 +0100 Subject: [PATCH] Update image.php Some corrections and add lang codes. --- e107_admin/image.php | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/e107_admin/image.php b/e107_admin/image.php index 23eaf56a5..e4bf5a587 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -692,10 +692,10 @@ class media_admin_ui extends e_admin_ui // protected $defaultOrder = 'desc'; protected $listOrder = 'm.media_id desc'; // show newest images first. public $deleteConfirmScreen = true; - public $deleteConfirmMessage = 'You are about to delete [x] records and ALL CORRESPONDING FILES! Please confirm to continue!'; + public $deleteConfirmMessage = IMALAN_129; - protected $preftabs = array('General',"Watermark", "Youtube"); + protected $preftabs = array(IMALAN_78,IMALAN_89, "Youtube"); protected $fields = array( 'checkboxes' => array('title'=> '', 'type' => null, 'data'=> null, 'width' =>'5%', 'forced'=> TRUE, 'thclass'=>'center', 'class'=>'center'), @@ -1313,10 +1313,10 @@ class media_admin_ui extends e_admin_ui $text .= "
"; @@ -1568,12 +1568,10 @@ class media_admin_ui extends e_admin_ui } else // empty key. { - $items = "

Youtube search requires a (free) YouTube v3 api key.
- This key is not required unless you wish to perform a keyword, playlist or channel search.
- Entering a Youtube video URL directly into the box above will still work without having an api key.
- Click here for more information and to enter your api key. -

-
"; + $link = ''.IMALAN_177.''; + $items = "

".e107::getParser()->lanVars(e107::getParser()->toHTML(IMALAN_174, true), array('x'=>$link))."

"; + + } } @@ -1603,7 +1601,7 @@ class media_admin_ui extends e_admin_ui } // return print_a($data,true); - $parms = array('width' => 200, 'height'=>113, 'type'=>'image', 'bbcode'=>'video', 'tagid'=> $this->getQuery('tagid'), 'action'=>'youtube','searchPlaceholder'=>'Search Youtube. Paste any YouTube URL here for a specific video/playlist/channel' ); + $parms = array('width' => 200, 'height'=>113, 'type'=>'image', 'bbcode'=>'video', 'tagid'=> $this->getQuery('tagid'), 'action'=>'youtube','searchPlaceholder'=>IMALAN_175 ); $text = e107::getMedia()->browserCarousel($items, $parms); if(E107_DEBUG_LEVEL > 0 && !empty($feed)) @@ -1659,7 +1657,7 @@ class media_admin_ui extends e_admin_ui if(!$fl->getRemoteFile($_POST['upload_url'], $fileName, 'import')) { - $mes->addError("There was a problem grabbing the file"); + $mes->addError(IMALAN_176); } elseif($import == true) { @@ -2445,8 +2443,8 @@ class media_admin_ui extends e_admin_ui // ".$frm->textarea('batch_import_diz['.$c.']', ($_POST['batch_import_diz'][$c] ? $_POST['batch_import_diz'][$c] : $default['description']))." - $this->cats['_avatars_public'] = "Avatars Folder (user selectable)"; - $this->cats['_avatars_private'] = "Avatars Folder (private)"; + $this->cats['_avatars_public'] = IMALAN_178; + $this->cats['_avatars_private'] = IMALAN_179; if(!isset($_POST['batch_category']) && substr($lastMime,0,5)=='image') {