From 9c4b1b00713f6539efbebd7c837cf56fa79e3ac2 Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Sat, 15 Dec 2012 16:01:31 +0100 Subject: [PATCH] Start of LAN rework on Featurebox plugin. Added Global language file. Work in Progress to be continued after development has stabilized on thisp plugin. --- e107_plugins/featurebox/admin_config.php | 11 ++--- e107_plugins/featurebox/featurebox.php | 6 --- e107_plugins/featurebox/includes/tree.php | 7 +-- .../languages/English_admin_featurebox.php | 48 +++++++++++-------- .../featurebox/languages/English_global.php | 12 +++-- e107_plugins/featurebox/plugin.xml | 18 +++---- 6 files changed, 48 insertions(+), 54 deletions(-) diff --git a/e107_plugins/featurebox/admin_config.php b/e107_plugins/featurebox/admin_config.php index 61adc0840..73bf749a1 100644 --- a/e107_plugins/featurebox/admin_config.php +++ b/e107_plugins/featurebox/admin_config.php @@ -8,11 +8,8 @@ * * Featurebox administration * -* $Source: /cvs_backup/e107_0.8/e107_plugins/featurebox/admin_config.php,v $ -* $Revision$ -* $Date$ -* $Author$ -* +* $URL$ +* $Id$ */ require_once("../../class2.php"); if (!getperms("P") || !plugInstalled('featurebox')) @@ -177,10 +174,10 @@ class fb_main_ui extends e_admin_ui 'fb_id' => array('title'=> LAN_ID, 'type' => 'number', 'data'=> 'int', 'width' =>'5%', 'forced'=> TRUE), 'fb_category' => array('title'=> LAN_CATEGORY, 'type' => 'dropdown', 'data'=> 'int', 'width' => '5%', 'filter'=>TRUE, 'batch'=>TRUE), 'fb_title' => array('title'=> LAN_TITLE, 'type' => 'text', 'width' => 'auto', 'thclass' => 'left'), - 'fb_text' => array('title'=> "Message Text", 'type' => 'bbarea', 'width' => '30%', 'readParms' => 'expand=...&truncate=50&bb=1','writeParms'=>'template=admin'), + 'fb_text' => array('title'=> FBLAN_08, 'type' => 'bbarea', 'width' => '30%', 'readParms' => 'expand=...&truncate=50&bb=1','writeParms'=>'template=admin'), //DEPRECATED 'fb_mode' => array('title'=> FBLAN_12, 'type' => 'dropdown', 'data'=> 'int', 'width' => '5%', 'filter'=>TRUE, 'batch'=>TRUE), //DEPRECATED 'fb_rendertype' => array('title'=> FBLAN_22, 'type' => 'dropdown', 'data'=> 'int', 'width' => 'auto', 'noedit' => TRUE), - 'fb_template' => array('title'=> FBLAN_25, 'type' => 'layouts', 'data'=> 'str', 'width' => 'auto', 'writeParms' => 'plugin=featurebox', 'filter' => true, 'batch' => true), // Photo + 'fb_template' => array('title'=> LAN_TEMPLATE, 'type' => 'layouts', 'data'=> 'str', 'width' => 'auto', 'writeParms' => 'plugin=featurebox', 'filter' => true, 'batch' => true), // Photo 'fb_image' => array('title'=> "Image", 'type' => 'image', 'width' => 'auto', 'readParms'=>'thumb=60&thumb_urlraw=0&thumb_aw=60'), 'fb_imageurl' => array('title'=> "Image Link", 'type' => 'url', 'width' => 'auto'), 'fb_class' => array('title'=> LAN_VISIBILITY, 'type' => 'userclass', 'data' => 'int', 'width' => 'auto', 'filter' => true, 'batch' => true), // User id diff --git a/e107_plugins/featurebox/featurebox.php b/e107_plugins/featurebox/featurebox.php index 9db4cf890..2d7e315b9 100644 --- a/e107_plugins/featurebox/featurebox.php +++ b/e107_plugins/featurebox/featurebox.php @@ -6,12 +6,6 @@ * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * - * - * - * $Source: /cvs_backup/e107_0.8/e107_plugins/featurebox/featurebox.php,v $ - * $Revision$ - * $Date$ - * $Author$ */ if (!defined('e107_INIT')) { exit; } diff --git a/e107_plugins/featurebox/includes/tree.php b/e107_plugins/featurebox/includes/tree.php index 6142461b6..a4930149a 100644 --- a/e107_plugins/featurebox/includes/tree.php +++ b/e107_plugins/featurebox/includes/tree.php @@ -8,11 +8,8 @@ * * Featurebox Category Tree model * -* $Source: /cvs_backup/e107_0.8/e107_plugins/featurebox/includes/tree.php,v $ -* $Revision$ -* $Date$ -* $Author$ -* +* $URL$ +* $Id$ */ if (!defined('e107_INIT')) { exit; } diff --git a/e107_plugins/featurebox/languages/English_admin_featurebox.php b/e107_plugins/featurebox/languages/English_admin_featurebox.php index 76b75d21f..6306c1baf 100644 --- a/e107_plugins/featurebox/languages/English_admin_featurebox.php +++ b/e107_plugins/featurebox/languages/English_admin_featurebox.php @@ -3,36 +3,42 @@ * Copyright (c) e107 Inc 2009 - e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt) * $Id$ * -* Featurebox back-end laguage defines -* TODO - cleanup constants not in use +* Featurebox back-end language defines */ -define("FBLAN_01", "Feature Box"); -define("FBLAN_02", "Displays an animated area on the top of your page with news-items and other content you would like to feature."); -define("FBLAN_03", "Configure feature box"); //FIXME LAN - use generic. -// define("FBLAN_04", "Feature Box plugin has been successfully installed. To add messages and configure, return to the main admin page and click on the feature box icon in the plugin section."); -define("FBLAN_05", "No feature box messages defined yet"); -define("FBLAN_06", "Existing Feature Box Messages"); //FIXME LAN - use generic. -define("FBLAN_07", "Title / Caption"); //FIXME LAN - use generic. +/* +TODO LAN - cleanup constants not in use +Work in progress Moc - commented out are candidate for removal +LAN file needs working from scratch after development is stabilized +*/ + + +//define("FBLAN_01", "Feature Box"); +//define("FBLAN_02", "Displays an animated area on the top of your page with news-items and other content you would like to feature."); +//define("FBLAN_03", "Configure feature box"); //FIXME LAN - use generic. +//define("FBLAN_04", "Feature Box plugin has been successfully installed. To add messages and configure, return to the main admin page and click on the feature box icon in the plugin section."); +//define("FBLAN_05", "No feature box messages defined yet"); +//define("FBLAN_06", "Existing Feature Box Messages"); //FIXME LAN - use generic. +//define("FBLAN_07", "Title / Caption"); //FIXME LAN - use generic. define("FBLAN_08", "Message text"); -define("FBLAN_09", "Visibility of message"); -define("FBLAN_10", "Create Feature Box Message"); //FIXME LAN - use generic. -define("FBLAN_11", "Update Feature Box Message"); //FIXME LAN - use generic. +//define("FBLAN_09", "Visibility of message"); +//define("FBLAN_10", "Create Feature Box Message"); //FIXME LAN - use generic. +//define("FBLAN_11", "Update Feature Box Message"); //FIXME LAN - use generic. define("FBLAN_12", "Mode"); define("FBLAN_13", "Randomly revolve messages"); define("FBLAN_14", "Show this message only"); -define("FBLAN_15", "Message added to database."); //FIXME LAN - use generic. -define("FBLAN_16", "Message updated in database."); //FIXME LAN - use generic. -define("FBLAN_17", "Field(s) left blank"); -define("FBLAN_18", "Feature Box Message deleted"); //FIXME LAN - use generic. -define("FBLAN_19", "Options"); //FIXME LAN - use generic. -define("FBLAN_20", "Edit"); //FIXME LAN - use generic. -define("FBLAN_21", "Delete"); //FIXME LAN - use generic. +//define("FBLAN_15", "Message added to database."); //FIXME LAN - use generic. +//define("FBLAN_16", "Message updated in database."); //FIXME LAN - use generic. +//define("FBLAN_17", "Field(s) left blank"); +//define("FBLAN_18", "Feature Box Message deleted"); //FIXME LAN - use generic. +//define("FBLAN_19", "Options"); //FIXME LAN - use generic. +//define("FBLAN_20", "Edit"); //FIXME LAN - use generic. +//define("FBLAN_21", "Delete"); //FIXME LAN - use generic. define("FBLAN_22", "Render type"); define("FBLAN_23", "In theme box"); define("FBLAN_24", "Plain"); -define("FBLAN_25", "Template"); //FIXME LAN - use generic. -define("FBLAN_26", "you can use a different template for each message, add templates to e107_plugins/featurebox/templates/ folder"); +//define("FBLAN_25", "Template"); //FIXME LAN - use generic. +//define("FBLAN_26", "you can use a different template for each message, add templates to e107_plugins/featurebox/templates/ folder"); ?> \ No newline at end of file diff --git a/e107_plugins/featurebox/languages/English_global.php b/e107_plugins/featurebox/languages/English_global.php index aa1154574..fa621391a 100644 --- a/e107_plugins/featurebox/languages/English_global.php +++ b/e107_plugins/featurebox/languages/English_global.php @@ -1,9 +1,13 @@ - + - Displays an animated area on the top of your page with news-items and other content you would like to feature. + Displays an animated area on the top of your page with news-items and other content you would like to feature. content - Configure feature box - Manage Items - Create Item - Manage Categories - Create Category + Configure feature box + Manage Items + Create Item + Manage Categories + Create Category Copyright e107 Inc e107.org, Licensed under GPL (http://www.gnu.org/licenses/gpl.txt) - - - - 1