diff --git a/e107_admin/links.php b/e107_admin/links.php index ca7687463..c5ed8da94 100644 --- a/e107_admin/links.php +++ b/e107_admin/links.php @@ -83,15 +83,15 @@ class links_admin_ui extends e_admin_ui 'link_name' => array('title'=> LCLAN_15, 'width'=>'auto','type'=>'text', 'inline'=>true, 'required' => true, 'validate' => true), 'link_category' => array('title'=> LAN_TEMPLATE, 'type' => 'dropdown', 'inline'=>true, 'batch'=>true, 'filter'=>true, 'width' => 'auto'), - 'link_parent' => array('title'=> 'Sublink of', 'type' => 'method', 'data'=>'int', 'width' => 'auto', 'batch'=>true, 'filter'=>true, 'thclass' => 'left first'), + 'link_parent' => array('title'=> LCLAN_104, 'type' => 'method', 'data'=>'int', 'width' => 'auto', 'batch'=>true, 'filter'=>true, 'thclass' => 'left first'), 'link_url' => array('title'=> LAN_URL, 'width'=>'auto', 'type'=>'method', 'inline'=>true, 'required'=>true,'validate' => true, 'writeParms'=>'size=xxlarge'), - 'link_sefurl' => array('title'=> LAN_SEFURL, 'type' => 'method', 'inline'=>false, 'width' => 'auto', 'help'=>'Enable to override URL with a dynamically created Search-Engine-Friendly URL'), //TODO LAN + 'link_sefurl' => array('title'=> LAN_SEFURL, 'type' => 'method', 'inline'=>false, 'width' => 'auto', 'help'=>LCLAN_107), 'link_class' => array('title'=> LAN_USERCLASS, 'type' => 'userclass','inline'=>true, 'writeParms' => 'classlist=public,guest,nobody,member,classes,admin,main', 'batch'=>true, 'filter'=>true, 'width' => 'auto'), 'link_description' => array('title'=> LAN_DESCRIPTION, 'type' => 'textarea', 'width' => 'auto'), // 'method'=>'tinymce_plugins', ? 'link_order' => array('title'=> LAN_ORDER, 'type' => 'number', 'width' => 'auto', 'nolist'=>false, 'inline' => true), 'link_open' => array('title'=> LCLAN_19, 'type' => 'dropdown', 'inline'=>true, 'width' => 'auto', 'batch'=>true, 'filter'=>true, 'thclass' => 'left first'), - 'link_function' => array('title'=> 'Function', 'type' => 'method', 'data'=>'str', 'width' => 'auto', 'thclass' => 'left first'), - 'link_owner' => array('title'=> 'Owned by', 'type' => 'hidden', 'data'=>'str'), + 'link_function' => array('title'=> LCLAN_105, 'type' => 'method', 'data'=>'str', 'width' => 'auto', 'thclass' => 'left first'), + 'link_owner' => array('title'=> LCLAN_106, 'type' => 'hidden', 'data'=>'str'), 'options' => array('title'=> LAN_OPTIONS, 'type' => null, 'forced'=>TRUE, 'width' => '10%', 'thclass' => 'center last', 'class'=>'center','readParms'=>'sort=1') // quick workaround ); @@ -161,7 +161,7 @@ class links_admin_ui extends e_admin_ui $found = true; } } - if($found) e107::getMessage()->addWarning('Some selections omitted - you can\'t set Link as a Sublink of its Sublink.'); + if($found) e107::getMessage()->addWarning(LCLAN_108); if(!$selected) return; if(parent::handleListBatch($selected, $field, $value)) @@ -317,17 +317,17 @@ class links_admin_ui extends e_admin_ui if(!$pid) { - $mes->warning('Please choose a parent'); + $mes->warning(LCLAN_109); return; } if(!$subtype) { - $mes->warning('Please choose a generator module'); + $mes->warning(LCLAN_110); return; } if(!$sublink) { - $mes->error('Not valid generator module data'); + $mes->error(LCLAN_111); return; } @@ -664,7 +664,7 @@ class links_admin_form_ui extends e_admin_form_ui if(empty($config)) { - return $this->hidden('link_sefurl','')."Not available"; //TODO Generic LAN + return $this->hidden('link_sefurl','')."".LAN_NOT_AVAILABLE.""; } foreach($config as $k=>$v) @@ -706,7 +706,7 @@ class links_admin_form_ui extends e_admin_form_ui $text = str_replace(e_HTTP,'',e107::url($owner,$sef)); // dynamically created. $text .= $this->hidden('link_url',$curVal); - $text .= " Auto-generated"; + $text .= " ".LAN_AUTO_GENERATED.""; return $text; diff --git a/e107_admin/menus.php b/e107_admin/menus.php index 9703a786f..13bb018da 100644 --- a/e107_admin/menus.php +++ b/e107_admin/menus.php @@ -1085,16 +1085,15 @@ class e_layout return; }; $row = $sql->fetch(); - - // TODO lan + $text = "
- Menu parameters ".$row['menu_name']." + ".MENLAN_44." ".$row['menu_name']." diff --git a/e107_admin/plugin.php b/e107_admin/plugin.php index 3519cf71a..af02eabff 100644 --- a/e107_admin/plugin.php +++ b/e107_admin/plugin.php @@ -179,10 +179,10 @@ $frm = e107::getForm(); function e_help() { + $help_text = str_replace('[interval]', (PLUGIN_SCAN_INTERVAL ? PLUGIN_SCAN_INTERVAL / 60 : 0), EPL_ADLAN_228); return array( - 'caption' => "Scan for Changes", - 'text' => "Plugin folders are scanned every ".(PLUGIN_SCAN_INTERVAL ? PLUGIN_SCAN_INTERVAL / 60 : 0) ." minutes for changes. Click the button below to scan now. -

Refresh

" + 'caption' => EPL_ADLAN_227, + 'text' => $help_text."

".EPL_ADLAN_229."

" ); } @@ -413,7 +413,7 @@ class pluginManager{ private function compatibilityLabel($val='') { - $badge = (vartrue($val) > 1.9) ? "Made for v2" : '1.x'; + $badge = (vartrue($val) > 1.9) ? "".EPL_ADLAN_88."" : '1.x'; return $badge; } @@ -425,7 +425,7 @@ class pluginManager{ $tp = e107::getParser(); $frm = e107::getForm(); - $caption = "Search Online"; + $caption = EPL_ADLAN_89; $e107 = e107::getInstance(); $xml = e107::getXml(); @@ -435,7 +435,7 @@ class pluginManager{ // check for cURL if(!function_exists('curl_init')) { - $mes->addWarning("cURL is currently required to use this feature. Contact your webhosting provider to enable cURL"); // TODO LAN? + $mes->addWarning(EPL_ADLAN_90); } //TODO use admin_ui including filter capabilities by sending search queries back to the xml script. @@ -483,8 +483,8 @@ class pluginManager{ // print_a($row); $badge = $this->compatibilityLabel($row['compatibility']);; - $featured = ($row['featured']== 1) ? " Featured" : ''; - $price = ($row['price'] > 0) ? "Buy" : "Free"; + $featured = ($row['featured']== 1) ? " ".EPL_ADLAN_91."" : ''; + $price = ($row['price'] > 0) ? "".EPL_ADLAN_92."" : "".EPL_ADLAN_93.""; $data[] = array( 'plugin_id' => $row['params']['id'], @@ -635,7 +635,7 @@ class pluginManager{ // print_a($data); // Server flush useless. It's ajax ready state 4, we can't flush (sadly) before that (at least not for all browsers) - $mes->addSuccess("Connecting..."); + $mes->addSuccess(EPL_ADLAN_94); if($mp->download($data['plugin_id'], $data['plugin_mode'], 'plugin')) { @@ -646,7 +646,8 @@ class pluginManager{ } else { - echo $mes->addError('Unable to continue')->render('default', 'error'); + // Unable to continue + echo $mes->addError(EPL_ADLAN_95)->render('default', 'error'); } echo $mes->render('default', 'debug'); @@ -659,7 +660,7 @@ class pluginManager{ $text .= $frm->open('upload-url-form','post'); $text .= "
"; - $text .= ""; + $text .= ""; $text .= $frm->admin_button('upload_remote_url',1,'create','Install'); $text .= "
"; $text .= "\n\n"; @@ -822,7 +823,7 @@ class pluginManager{ } else { - $mes->addError("There was a problem extracting the .zip file to your plugin directory."); + $mes->addError(EPL_ADLAN_97); } } @@ -919,7 +920,7 @@ class pluginManager{ else { /* upload is unlocatable */ - e107::getRender()->tablerender(EPL_ADLAN_40, 'Unknown file: '.$fileList[0]['stored_filename']); + e107::getRender()->tablerender(EPL_ADLAN_40, EPL_ADLAN_98.' '.$fileList[0]['stored_filename']); } /* attempt to delete uploaded archive */ @@ -942,7 +943,7 @@ class pluginManager{ if ($text === FALSE) { // Tidy this up - $this->show_message("Error messages above this line", E_MESSAGE_ERROR); + $this->show_message(EPL_ADLAN_99, E_MESSAGE_ERROR); } else { @@ -1193,8 +1194,9 @@ class pluginManager{ } else { - //TODO LANs - $text .= ""; + $text .= ""; } $text .= " @@ -1651,7 +1653,7 @@ class pluginManager{ $var['avail']['link'] = e_SELF."?avail"; - $var['online']['text'] = "Find Plugins"; + $var['online']['text'] = EPL_ADLAN_220; $var['online']['link'] = e_SELF."?mode=online"; @@ -1661,7 +1663,7 @@ class pluginManager{ $var['upload']['link'] = e_SELF."?mode=upload"; } - $var['create']['text'] = "Plugin Builder"; + $var['create']['text'] = EPL_ADLAN_114; $var['create']['link'] = e_SELF."?mode=create"; @@ -2037,17 +2039,17 @@ class pluginLanguage // echo $text2; $tabs = array ( - 0 => array('caption'=>'Plugin Files', 'text'=> $this->renderScriptTable()), - 1 => array('caption'=>'Used', 'text'=>$used), - 2 => array('caption'=>'Unused', 'text'=>$unused), - 3 => array('caption'=>'Unsure', 'text'=>$unsure), + 0 => array('caption'=>EPL_ADLAN_222, 'text'=> $this->renderScriptTable()), + 1 => array('caption'=>EPL_ADLAN_223, 'text'=>$used), + 2 => array('caption'=>EPL_ADLAN_224, 'text'=>$unused), + 3 => array('caption'=>EPL_ADLAN_225, 'text'=>$unsure), ); - $ns->tablerender(ADLAN_98.SEP."Plugin Builder".SEP. "Language-File Check".SEP.$this->plugin, $frm->tabs($tabs)); + $ns->tablerender(ADLAN_98.SEP.EPL_ADLAN_114.SEP.EPL_ADLAN_221.SEP.$this->plugin, $frm->tabs($tabs)); } @@ -2083,7 +2085,7 @@ class pluginLanguage { foreach($match[1] as $lan) { - if($lan != 'e_LANGUAGE' && $lan != 'e_LANGUAGEDIR' && $lan != 'LAN' && $lan != 'LANGUAGE') // remove 'TODO LAN' + if($lan != 'e_LANGUAGE' && $lan != 'e_LANGUAGEDIR' && $lan != 'LAN' && $lan != 'LANGUAGE') { $this->scriptDefs[] = $lan; $this->scriptDefsData[] = array('file'=>$path, 'line'=>$ln, 'lan'=>$lan, 'value'=>$this->lanDefsRaw[$lan]); @@ -2216,15 +2218,16 @@ class pluginBuilder } $newDir[$dir] = $dir; } - - $mes->addInfo("This Wizard will build an admin area for your plugin and generate a plugin.xml meta file. - Before you start:
    -
  • Create a new writable folder in the ".e_PLUGIN." directory eg. myplugin
  • -
  • If your plugin will use sql tables, create a new file in this folder and name it the same as the directory but with _sql.php as a sufix eg. myplugin_sql.php
  • -
  • Create your table in Phpmyadmin and paste an sql dump of it into your file and save. (see e107_plugins/_blank/_blank_sql.php for an example)
  • -
  • Select your plugin's folder to begin.
  • -
- "); + + $info = EPL_ADLAN_102; + $info .= "
    "; + $info .= "
  • ".str_replace('[e_PLUGIN]', e_PLUGIN, EPL_ADLAN_103)."
  • "; + $info .= "
  • ".EPL_ADLAN_104."
  • "; + $info .= "
  • ".EPL_ADLAN_105."
  • "; + $info .= "
  • ".EPL_ADLAN_106."
  • "; + $info .= "
"; + + $mes->addInfo($info); $text = $frm->open('createPlugin','get'); $text .= "
- Parameters (query string format): + ".MENLAN_45." ".$frm->text('menu_parms', $row['menu_parms'], 900, 'class=e-save span7')."
No plugins installed - click here to install some.
"; + $text .= str_replace("[link]", "".EPL_ADLAN_100."", EPL_ADLAN_101); + $text .= "
@@ -2233,12 +2236,12 @@ class pluginBuilder - + - + "; @@ -2263,11 +2266,11 @@ class pluginBuilder $text .= $frm->close(); - $ns->tablerender(ADLAN_98.SEP."Plugin Builder", $mes->render() . $text); + $ns->tablerender(ADLAN_98.SEP.EPL_ADLAN_114, $mes->render() . $text); - // $var['lans']['text'] = "Plugin Language-file check"; + // $var['lans']['text'] = EPL_ADLAN_226; // $var['lans']['link'] = e_SELF."?mode=lans"; @@ -2317,7 +2320,7 @@ class pluginBuilder $text = $frm->open('newplugin-step3','post', e_SELF.'?mode=create&newplugin='.$newplug.'&createFiles='.$this->createFiles.'&step=3'); $text .= ""; @@ -2356,17 +2359,17 @@ class pluginBuilder $text .= "
".$frm->hidden('newplugin', $this->pluginName)." - ".$frm->admin_button('step', 3,'other','Generate')." + ".$frm->admin_button('step', 3,'other',EPL_ADLAN_111)."
"; $text .= $frm->close(); - $mes->addInfo("Review all fields and modify if necessary."); + $mes->addInfo(EPL_ADLAN_112); - $mes->addInfo("Review ALL tabs before clicking 'Generate'."); + $mes->addInfo(EPL_ADLAN_113); - $ns->tablerender(ADLAN_98.SEP."Plugin Builder".SEP."Step 2", $mes->render() . $text); + $ns->tablerender(ADLAN_98.SEP.EPL_ADLAN_114.SEP.EPL_ADLAN_115, $mes->render() . $text); } @@ -2377,22 +2380,22 @@ class pluginBuilder $text = ''; $options = array( - 'text' => "Text Box", - 'number' => "Text Box (number)", - 'url' => "Text Box (url)", - 'textarea' => "Text Area", - 'bbarea' => "Rich-Text Area", - 'boolean' => "True/False", - "method" => "Custom Function", - "image" => "Image", + 'text' => EPL_ADLAN_116, + 'number' => EPL_ADLAN_117, + 'url' => EPL_ADLAN_118, + 'textarea' => EPL_ADLAN_119, + 'bbarea' => EPL_ADLAN_120, + 'boolean' => EPL_ADLAN_121, + "method" => EPL_ADLAN_122, + "image" => EPL_ADLAN_123, - "dropdown" => "DropDown", - "userclass" => "DropDown (userclasses)", - "language" => "DropDown (languages)", + "dropdown" => EPL_ADLAN_124, + "userclass" => EPL_ADLAN_125, + "language" => EPL_ADLAN_126, - "icon" => "Icon", + "icon" => EPL_ADLAN_127, - "file" => "File", + "file" => EPL_ADLAN_128, ); @@ -2400,9 +2403,9 @@ class pluginBuilder for ($i=0; $i < 10; $i++) { $text .= "
". - $frm->text("pluginPrefs[".$i."][index]", '',40,'placeholder=Preference Name')." ". - $frm->text("pluginPrefs[".$i."][value]", '',40,'placeholder=Default Value')." ". - $frm->select("pluginPrefs[".$i."][type]", $options, '', 'class=null', 'Field Type...'). + $frm->text("pluginPrefs[".$i."][index]", '',40,'placeholder='.EPL_ADLAN_129)." ". + $frm->text("pluginPrefs[".$i."][value]", '',40,'placeholder='.EPL_ADLAN_130)." ". + $frm->select("pluginPrefs[".$i."][type]", $options, '', 'class=null', EPL_ADLAN_131). "
"; } @@ -2461,15 +2464,16 @@ class pluginBuilder if(file_put_contents(e_PLUGIN.$this->pluginName."/".$this->pluginName."_sql.php",$cont)) { - $mes->addInfo($this->pluginName."_sql.php as been generated",'default',true); + $info = str_replace('[file]', $this->pluginName."_sql.php", EPL_ADLAN_132); + $mes->addInfo($info,'default',true); $red = e107::getRedirect(); $red->redirect(e_REQUEST_URL,true); // $red->redirect(e_SELF."?mode=create&newplugin=".$this->pluginName."&createFiles=1&step=2",true); } else { - $msg = $this->pluginName."_sql.php is missing!
"; - $msg .= "Please create ".$this->pluginName."_sql.php in your plugin directory with the following content:
".$cont."
"; + $msg = str_replace('[file]', $this->pluginName."_sql.php", EPL_ADLAN_133)."
"; + $msg .= str_replace(array('[file]','[content]'), array($this->pluginName."_sql.php",$cont), EPL_ADLAN_134); $mes->addWarning($msg); } @@ -2536,14 +2540,14 @@ class pluginBuilder { case 'main-name': - $help = "The name of your plugin. (Must be written in English)"; + $help = EPL_ADLAN_135; $required = true; $pattern = "[A-Za-z0-9 -]*"; $xsize = 'medium'; break; case 'main-lang': - $help = "If you have a language file, enter the LAN_XXX value for the plugin's name"; + $help = EPL_ADLAN_136; $required = false; $placeholder= " "; $pattern = "[A-Z0-9_]*"; @@ -2551,7 +2555,7 @@ class pluginBuilder break; case 'main-date': - $help = "Creation date of your plugin"; + $help = EPL_ADLAN_137; $required = true; $xsize = 'medium'; break; @@ -2559,7 +2563,7 @@ class pluginBuilder case 'main-version': $default = '1.0'; $required = true; - $help = "The version of your plugin. Format: x.x"; + $help = EPL_ADLAN_138; $pattern = "^[\d]{1,2}\.[\d]{1,2}$"; $xsize = 'small'; break; @@ -2567,7 +2571,7 @@ class pluginBuilder case 'main-compatibility': $default = '2.0'; $required = true; - $help = "Compatible with this version of e107"; + $help = EPL_ADLAN_139; $pattern = "^[\d]{1,2}\.[\d]{1,2}$"; $xsize = 'small'; break; @@ -2575,14 +2579,14 @@ class pluginBuilder case 'author-name': $default = (vartrue($default)) ? $default : USERNAME; $required = true; - $help = "Author Name"; + $help = EPL_ADLAN_140; $pattern = "[A-Za-z \.0-9]*"; $xsize = 'medium'; break; case 'author-url': $required = true; - $help = "Author Website Url"; + $help = EPL_ADLAN_141; // $pattern = "https?://.+"; $xsize = 'medium'; break; @@ -2592,7 +2596,7 @@ class pluginBuilder //break; case 'summary-summary': - $help = "A short one-line description of the plugin
(Must be written in English)"; + $help = EPL_ADLAN_142."
".EPL_ADLAN_143; $required = true; $size = 100; $placeholder= " "; @@ -2602,7 +2606,7 @@ class pluginBuilder case 'keywords-one': case 'keywords-two': - $help = "Keyword/Tag for this plugin
(Must be written in English)"; + $help = EPL_ADLAN_144."
".EPL_ADLAN_143; $required = true; $size = 20; $placeholder= " "; @@ -2611,7 +2615,7 @@ class pluginBuilder break; case 'description-description': - $help = "A full description of the plugin
(Must be written in English)"; + $help = EPL_ADLAN_145."
".EPL_ADLAN_143; $required = true; $size = 100; $placeholder = " "; @@ -2621,7 +2625,7 @@ class pluginBuilder case 'category-category': - $help = "What category of plugin is this?"; + $help = EPL_ADLAN_146; $required = true; $size = 20; break; @@ -2649,14 +2653,14 @@ class pluginBuilder case 'category': $options = array( - 'settings' => 'settings', - 'users' => 'users', - 'content' => 'content', - 'tools' => 'tools', - 'manage' => 'manage', - 'misc' => 'misc', - 'menu' => 'menu', - 'about' => 'about' + 'settings' => EPL_ADLAN_147, + 'users' => EPL_ADLAN_148, + 'content' => EPL_ADLAN_149, + 'tools' => EPL_ADLAN_150, + 'manage' => EPL_ADLAN_151, + 'misc' => EPL_ADLAN_152, + 'menu' => EPL_ADLAN_153, + 'about' => EPL_ADLAN_154 ); $text = $frm->select($name, $options, $default,'required=1&class=null', true); @@ -2767,10 +2771,10 @@ TEMPLATE; { if(file_put_contents($path,$result) ) { - $mes->addSuccess("Saved: ".$path); + $mes->addSuccess(EPL_ADLAN_155." ".$path); } else { - $mes->addError("Couldn't Save: ".$path); + $mes->addError(EPL_ADLAN_156." ".$path); } } return htmlentities($result); @@ -2787,7 +2791,15 @@ TEMPLATE; { $frm = e107::getForm(); - $modes = array("main"=>"Main Area","cat"=>"Categories","other1"=>"Other 1","other2"=>"Other 2","other3"=>"Other 3","other4"=>"Other 4", 'exclude'=>'Exclude this table'); + $modes = array( + "main"=>EPL_ADLAN_157, + "cat"=>EPL_ADLAN_158, + "other1"=>EPL_ADLAN_159, + "other2"=>EPL_ADLAN_160, + "other3"=>EPL_ADLAN_161, + "other4"=>EPL_ADLAN_162, + 'exclude'=>EPL_ADLAN_163, + ); // echo "TABLE COUNT= ".$this->tableCount ; @@ -2828,19 +2840,19 @@ TEMPLATE; $text .= "
Build an admin-area and xml file for: ".EPL_ADLAN_107."
".$frm->open('createPlugin','get',e_SELF."?mode=create").$frm->select("newplugin",$newDir).$frm->admin_button('step', 2,'other','Go')."
".$frm->checkbox('createFiles',1,1,'Create Files').$frm->close()."
Check language files: ".EPL_ADLAN_108."
".$frm->open('checkPluginLangs','get',e_SELF."?mode=lans").$frm->select("newplugin",$lanDir).$frm->admin_button('step', 2,'other','Go')."
".$frm->close()."
- - - - - - - - - - - - - + + + + + + + + + + + + + @@ -2912,8 +2924,8 @@ TEMPLATE; case 'date': case 'datetime': $array = array( - 'text' => "Text Box", - "hidden" => "Hidden" + 'text' => EPL_ADLAN_179, + "hidden" => EPL_ADLAN_180 ); break; @@ -2922,47 +2934,47 @@ TEMPLATE; case 'bigint': case 'smallint': $array = array( - "boolean" => "True/False", - "number" => "Text Box (number)", - "dropdown" => "DropDown", - "userclass" => "DropDown (userclasses)", - "datestamp" => "Date", - "method" => "Custom Function", - "hidden" => "Hidden", - "user" => "User", + "boolean" => EPL_ADLAN_181, + "number" => EPL_ADLAN_182, + "dropdown" => EPL_ADLAN_183, + "userclass" => EPL_ADLAN_184, + "datestamp" => EPL_ADLAN_185, + "method" => EPL_ADLAN_186, + "hidden" => EPL_ADLAN_187, + "user" => EPL_ADLAN_188, ); break; case 'decimal': $array = array( - "number" => "Text Box", - "dropdown" => "DropDown", - "method" => "Custom Function", - "hidden" => "Hidden", + "number" => EPL_ADLAN_189, + "dropdown" => EPL_ADLAN_190, + "method" => EPL_ADLAN_191, + "hidden" => EPL_ADLAN_192, ); break; case 'varchar': case 'tinytext': $array = array( - 'text' => "Text Box", - "url" => "Text Box (url)", - "email" => "Text Box (email)", - "ip" => "Text Box (ip)", - "number" => "Text Box (number)", - "password" => "Text Box (password)", - "tags" => "Text Box (keywords)", + 'text' => EPL_ADLAN_193, + "url" => EPL_ADLAN_194, + "email" => EPL_ADLAN_195, + "ip" => EPL_ADLAN_196, + "number" => EPL_ADLAN_197, + "password" => EPL_ADLAN_198, + "tags" => EPL_ADLAN_199, - "dropdown" => "DropDown", - "userclass" => "DropDown (userclasses)", - "language" => "DropDown (languages)", + "dropdown" => EPL_ADLAN_200, + "userclass" => EPL_ADLAN_201, + "language" => EPL_ADLAN_202, - "icon" => "Icon", - "image" => "Image", - "file" => "File", - "method" => "Custom Function", + "icon" => EPL_ADLAN_203, + "image" => EPL_ADLAN_204, + "file" => EPL_ADLAN_205, + "method" => EPL_ADLAN_206, - "hidden" => "Hidden" + "hidden" => EPL_ADLAN_207 ); break; @@ -2970,14 +2982,14 @@ TEMPLATE; case 'mediumtext': case 'longtext': $array = array( - 'textarea' => "Text Area", - 'bbarea' => "Rich-Text Area", - 'text' => "Text Box", - "tags" => "Text Box (keywords)", - "method" => "Custom Function", - "image" => "Image (string)", - "images" => "Images (array)", - "hidden" => "Hidden" + 'textarea' => EPL_ADLAN_208, + 'bbarea' => EPL_ADLAN_209, + 'text' => EPL_ADLAN_210, + "tags" => EPL_ADLAN_211, + "method" => EPL_ADLAN_212, + "image" => EPL_ADLAN_213, + "images" => EPL_ADLAN_214, + "hidden" => EPL_ADLAN_215 ); break; } @@ -3595,21 +3607,22 @@ exit; { if(file_put_contents($generatedFile, $startPHP .$text . $endPHP)) { - $mes->addSuccess("Click Here to vist your generated admin area"); + $message = str_replace("[link]", "".EPL_ADLAN_216."", EPL_ADLAN_217); + $mes->addSuccess($message); } else { - $mes->addError("Could not write to ".$generatedFile); + $mes->addError(str_replace('[file]', $generatedFile, EPL_ADLAN_218); } } else { - $mes->addInfo("No Files have been created. Please Copy & Paste the code below into your files. "); + $mes->addInfo(EPL_ADLAN_219); } echo $mes->render(); - $ns->tablerender(ADLAN_98.SEP."Plugin Builder".SEP." plugin.xml", "
".$xmlText."
"); + $ns->tablerender(ADLAN_98.SEP.EPL_ADLAN_114.SEP." plugin.xml", "
".$xmlText."
"); $ns->tablerender("admin_config.php", "
".$text."
"); diff --git a/e107_languages/English/admin/lan_admin.php b/e107_languages/English/admin/lan_admin.php index 6ed0c1209..6149b7ed1 100644 --- a/e107_languages/English/admin/lan_admin.php +++ b/e107_languages/English/admin/lan_admin.php @@ -286,6 +286,9 @@ define("LAN_DISABLED","Disabled"); define("LAN_ENABLED", "Enabled"); define("LAN_BOOL_REVERSE", "Invert"); +define("LAN_NOT_AVAILABLE","Not available"); +define("LAN_AUTO_GENERATED","Auto-generated"); + define("LAN_PRESET_CONFIRMSAVE","Save current form values as the default for this page?"); define("LAN_CONFIGURE", "Configure"); diff --git a/e107_languages/English/admin/lan_links.php b/e107_languages/English/admin/lan_links.php index 672f39772..ceaaf2b90 100644 --- a/e107_languages/English/admin/lan_links.php +++ b/e107_languages/English/admin/lan_links.php @@ -57,6 +57,15 @@ define("LCLAN_81", "Sub-menus will display only after clicking their parent. (Li // define("LCLAN_102", "New 600x400"); // define("LCLAN_103", "New 800x600"); +define("LCLAN_104", "Sublink of"); +define("LCLAN_105", "Function"); +define("LCLAN_106", "Owned by"); +define("LCLAN_107", "Enable to override URL with a dynamically created Search-Engine-Friendly URL"); +define("LCLAN_108", "Some selections omitted - you can't set Link as a Sublink of its Sublink."); +define("LCLAN_109", "Please choose a parent"); +define("LCLAN_110", "Please choose a generator module"); +define("LCLAN_111", "Not valid generator module data"); + define("LINKLAN_1", "Opens in 800x600 window"); // define("LINKLAN_2", "Parent"); // define("LINKLAN_3", "No Parent (Normal Link)"); diff --git a/e107_languages/English/admin/lan_menus.php b/e107_languages/English/admin/lan_menus.php index 479e592f7..02d0f96dc 100644 --- a/e107_languages/English/admin/lan_menus.php +++ b/e107_languages/English/admin/lan_menus.php @@ -34,9 +34,9 @@ define("MENLAN_23", "Move to bottom"); define("MENLAN_24", "Move to top"); define("MENLAN_25", "Action..."); -define("MENLAN_26", "This menu will only be SHOWN on the following pages"); //FIXME HTML -define("MENLAN_27", "This menu will only be HIDDEN on the following pages"); //FIXME HTML -define("MENLAN_28", "Enter one page per line, enter enough of the url to distinguish it properly. If you need the ending of the url to match exactly, use a ! at the end of the page name
For example: page.php?1!"); //FIXME HTML +define("MENLAN_26", "This menu will only be [b]SHOWN[/b] on the following pages"); +define("MENLAN_27", "This menu will only be [b]HIDDEN[/b] on the following pages"); +define("MENLAN_28", "Enter one page per line, enter enough of the url to distinguish it properly. If you need the ending of the url to match exactly, use a ! at the end of the page name. For example: [b]page.php?1![/b]"); define("MENLAN_29", "Select Layout"); define("MENLAN_30", "To see the menu areas and their positions for custom layouts, select the custom layout here."); @@ -57,6 +57,12 @@ define("MENLAN_41", "The position of all your menus for this layout will be lost define("MENLAN_42", "Custom"); define("MENLAN_43", "Menu Preset Activated"); - +define("MENLAN_44", "Menu parameters"); +define("MENLAN_45", "Parameters (query string format):"); +define("MENLAN_46", "Custom"); +define("MENLAN_47", "Custom"); +define("MENLAN_48", "Custom"); +define("MENLAN_49", "Custom"); +define("MENLAN_50", "Custom"); ?> \ No newline at end of file diff --git a/e107_languages/English/admin/lan_plugin.php b/e107_languages/English/admin/lan_plugin.php index 2a5371df4..448c5e20f 100644 --- a/e107_languages/English/admin/lan_plugin.php +++ b/e107_languages/English/admin/lan_plugin.php @@ -104,6 +104,170 @@ define ('EPL_ADLAN_85','Uninstall Selected'); define ('EPL_ADLAN_86','All files removed from '); define ('EPL_ADLAN_87','File deletion failed '); +define ('EPL_ADLAN_88','Made for v2'); +define ('EPL_ADLAN_89','Search Online'); +define ('EPL_ADLAN_90','cURL is currently required to use this feature. Contact your webhosting provider to enable cURL'); +define ('EPL_ADLAN_91','Featured'); +define ('EPL_ADLAN_92','Buy'); +define ('EPL_ADLAN_93','Free'); +define ('EPL_ADLAN_94','Connecting...'); +define ('EPL_ADLAN_95','Unable to continue'); +define ('EPL_ADLAN_96','eg. http://website.com/some-plugin.zip'); +define ('EPL_ADLAN_97','There was a problem extracting the .zip file to your plugin directory.'); +define ('EPL_ADLAN_98','Unknown file:'); +define ('EPL_ADLAN_99','Error messages above this line'); +define ('EPL_ADLAN_100','click here to install some'); +define ('EPL_ADLAN_101','No plugins installed - [link].'); +define ('EPL_ADLAN_102','This Wizard will build an admin area for your plugin and generate a plugin.xml meta file. Before you start:'); +define ('EPL_ADLAN_103','Create a new writable folder in the [e_PLUGIN] directory eg. [b]myplugin[/b]'); +define ('EPL_ADLAN_104','If your plugin will use sql tables, create a new file in this folder and name it the same as the directory but with [b]_sql.php[/b] as a sufix eg. [b]myplugin_sql.php[/b]'); +define ('EPL_ADLAN_105','Create your table in phpMyAdmin and paste an sql dump of it into your file and save. (see [i]e107_plugins/_blank/_blank_sql.php[/i] for an example)'); +define ('EPL_ADLAN_106','Select your plugin\'s folder to begin.'); +define ('EPL_ADLAN_107','Build an admin-area and xml file for:'); +define ('EPL_ADLAN_108','Check language files:'); +define ('EPL_ADLAN_109','Basic Info.'); +define ('EPL_ADLAN_110','Preferences'); +define ('EPL_ADLAN_111','Generate'); +define ('EPL_ADLAN_112','Review all fields and modify if necessary.'); +define ('EPL_ADLAN_113','Review ALL tabs before clicking "Generate".'); +define ('EPL_ADLAN_114','Plugin Builder'); +define ('EPL_ADLAN_115','Step 2'); + +define ('EPL_ADLAN_116','Text Box'); +define ('EPL_ADLAN_117','Text Box (number)'); +define ('EPL_ADLAN_118','Text Box (url)'); +define ('EPL_ADLAN_119','Text Area'); +define ('EPL_ADLAN_120','Rich-Text Area'); +define ('EPL_ADLAN_121','True/False'); +define ('EPL_ADLAN_122','Custom Function'); +define ('EPL_ADLAN_123','Image'); +define ('EPL_ADLAN_124','DropDown'); +define ('EPL_ADLAN_125','DropDown (userclasses)'); +define ('EPL_ADLAN_126','DropDown (languages)'); +define ('EPL_ADLAN_127','Icon'); +define ('EPL_ADLAN_128','File'); + +define ('EPL_ADLAN_129','Preference Name'); +define ('EPL_ADLAN_130','Default Value'); +define ('EPL_ADLAN_131','Field Type...'); +define ('EPL_ADLAN_132','[file] has been generated'); +define ('EPL_ADLAN_133','[file] is missing!'); +define ('EPL_ADLAN_134','Please create [b][file][/b] in your plugin directory with the following content: [content]'); +define ('EPL_ADLAN_135','The name of your plugin. (Must be written in English)'); +define ('EPL_ADLAN_136','If you have a language file, enter the LAN_XXX value for the plugin\'s name'); +define ('EPL_ADLAN_137','Creation date of your plugin'); +define ('EPL_ADLAN_138','The version of your plugin. Format: x.x'); +define ('EPL_ADLAN_139','Compatible with this version of e107'); +define ('EPL_ADLAN_140','Author Name'); +define ('EPL_ADLAN_141','Author Website URL'); +define ('EPL_ADLAN_142','A short one-line description of the plugin'); +define ('EPL_ADLAN_143','(Must be written in English)'); +define ('EPL_ADLAN_144','Keyword/Tag for this plugin'); +define ('EPL_ADLAN_145','A full description of the plugin'); +define ('EPL_ADLAN_146','What category of plugin is this?'); + +// Categories +define ('EPL_ADLAN_147','settings'); +define ('EPL_ADLAN_148','users'); +define ('EPL_ADLAN_149','content'); +define ('EPL_ADLAN_150','tools'); +define ('EPL_ADLAN_151','manage'); +define ('EPL_ADLAN_152','misc'); +define ('EPL_ADLAN_153','menu'); +define ('EPL_ADLAN_154','about'); + +define ('EPL_ADLAN_155','Saved:'); +define ('EPL_ADLAN_156','Couldn\'t Save:'); + +define ('EPL_ADLAN_157','Main Area'); +define ('EPL_ADLAN_158','Categories'); +define ('EPL_ADLAN_159','Other 1'); +define ('EPL_ADLAN_160','Other 2'); +define ('EPL_ADLAN_161','Other 3'); +define ('EPL_ADLAN_162','Other 4'); +define ('EPL_ADLAN_163','Exclude this table'); + +define ('EPL_ADLAN_164','Field'); +define ('EPL_ADLAN_165','Caption'); +define ('EPL_ADLAN_166','Type'); +define ('EPL_ADLAN_167','Data'); +define ('EPL_ADLAN_168','Width'); +define ('EPL_ADLAN_169','Batch'); +define ('EPL_ADLAN_170','Filter'); +define ('EPL_ADLAN_171','Inline'); +define ('EPL_ADLAN_172','Validate'); +define ('EPL_ADLAN_173','Display'); +define ('EPL_ADLAN_174','HelpTip'); +define ('EPL_ADLAN_175','ReadParms'); +define ('EPL_ADLAN_176','WriteParms'); +define ('EPL_ADLAN_177','Field is required to be filled'); +define ('EPL_ADLAN_178','Displayed by Default'); + +// date, datetime +define ('EPL_ADLAN_179','Text Box'); +define ('EPL_ADLAN_180','Hidden'); + +// int, tinyint, bigint, smallint +define ('EPL_ADLAN_181','True/False'); +define ('EPL_ADLAN_182','Text Box (number)'); +define ('EPL_ADLAN_183','DropDown'); +define ('EPL_ADLAN_184','DropDown (userclasses)'); +define ('EPL_ADLAN_185','Date'); +define ('EPL_ADLAN_186','Custom Function'); +define ('EPL_ADLAN_187','Hidden'); +define ('EPL_ADLAN_188','User'); + +// decimal +define ('EPL_ADLAN_189','Text Box'); +define ('EPL_ADLAN_190','DropDown'); +define ('EPL_ADLAN_191','Custom Function'); +define ('EPL_ADLAN_192','Hidden'); + +// varchar, tinytext +define ('EPL_ADLAN_193','Text Box'); +define ('EPL_ADLAN_194','Text Box (url)'); +define ('EPL_ADLAN_195','Text Box (email)'); +define ('EPL_ADLAN_196','Text Box (ip)'); +define ('EPL_ADLAN_197','Text Box (number)'); +define ('EPL_ADLAN_198','Text Box (password)'); +define ('EPL_ADLAN_199','Text Box (keywords)'); +define ('EPL_ADLAN_200','DropDown'); +define ('EPL_ADLAN_201','DropDown (userclasses)'); +define ('EPL_ADLAN_202','DropDown (languages)'); +define ('EPL_ADLAN_203','Icon'); +define ('EPL_ADLAN_204','Image'); +define ('EPL_ADLAN_205','File'); +define ('EPL_ADLAN_206','Custom Function'); +define ('EPL_ADLAN_207','Hidden'); + +// text, mediumtext, longtext +define ('EPL_ADLAN_208','Text Area'); +define ('EPL_ADLAN_209','Rich-Text Area'); +define ('EPL_ADLAN_210','Text Box'); +define ('EPL_ADLAN_211','Text Box (keywords)'); +define ('EPL_ADLAN_212','Custom Function'); +define ('EPL_ADLAN_213','Image (string)'); +define ('EPL_ADLAN_214','Images (array)'); +define ('EPL_ADLAN_215','Hidden'); + +define ('EPL_ADLAN_216','Click Here'); +define ('EPL_ADLAN_217','[link] to vist your generated admin area'); +define ('EPL_ADLAN_218','Could not write to [file]'); +define ('EPL_ADLAN_219','No Files have been created. Please Copy & Paste the code below into your files.'); + +define ('EPL_ADLAN_220','Find Plugins'); +define ('EPL_ADLAN_221','Language-File Check'); + +define ('EPL_ADLAN_222','Plugin Files'); +define ('EPL_ADLAN_223','Used'); +define ('EPL_ADLAN_224','Unused'); +define ('EPL_ADLAN_225','Unsure'); + +define ('EPL_ADLAN_226','Plugin Language-File Check'); + +define ('EPL_ADLAN_227','Scan for Changes'); +define ('EPL_ADLAN_228','Plugin folders are scanned every [interval] minutes for changes. Click the button below to scan now.'); +define ('EPL_ADLAN_229','Refresh'); define('LAN_UPGRADE_SUCCESSFUL', 'Upgrade Successful'); define('LAN_INSTALL_SUCCESSFUL', 'Installation Successful');
FieldCaptionTypeDataWidthBatchFilterInlineValidateDisplayHelpTipReadParmsWriteParms".EPL_ADLAN_164."".EPL_ADLAN_165."".EPL_ADLAN_166."".EPL_ADLAN_167."".EPL_ADLAN_168."".EPL_ADLAN_169."".EPL_ADLAN_170."".EPL_ADLAN_171."".EPL_ADLAN_172."".EPL_ADLAN_173."".EPL_ADLAN_174."".EPL_ADLAN_175."".EPL_ADLAN_176."