diff --git a/e107_plugins/faqs/faqs.php b/e107_plugins/faqs/faqs.php index c508b3a98..a6938a14f 100644 --- a/e107_plugins/faqs/faqs.php +++ b/e107_plugins/faqs/faqs.php @@ -6,12 +6,8 @@ * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * + * FAQ Core Plugin * - * - * $Source: /cvs_backup/e107_0.8/e107_plugins/faqs/faqs.php,v $ - * $Revision$ - * $Date$ - * $Author$ */ if (!defined('e107_INIT')) @@ -233,7 +229,7 @@ class faq if(!empty($this->pref['submit_question_limit']) && $existing >= $this->pref['submit_question_limit']) { - e107::getMessage()->setTitle('Sorry',E_MESSAGE_INFO)->addInfo("You have reached the maximum number of new questions. You may ask more once your existing questions have been answered."); + e107::getMessage()->setTitle(LAN_WARNING,E_MESSAGE_INFO)->addInfo(LAN_FAQS_LIMIT_REACHED); return; } @@ -333,7 +329,7 @@ class faq $insert = " AND (f.faq_question LIKE '%".$srch."%' OR f.faq_answer LIKE '%".$srch."%' OR FIND_IN_SET ('".$srch."', f.faq_tags) ) "; - $message = "".$srch." ×"; + $message = "".$srch." ×"; e107::getMessage()->setClose(false,E_MESSAGE_INFO)->setTitle(LAN_FAQS_FILTER_ACTIVE,E_MESSAGE_INFO)->addInfo($message); $text = e107::getMessage()->render(); @@ -359,7 +355,7 @@ class faq $insert = " AND FIND_IN_SET ('".$srch."', f.faq_tags) "; - $message = "".$srch." ×"; + $message = "".$srch." ×"; e107::getMessage()->setClose(false,E_MESSAGE_INFO)->setTitle(LAN_FAQS_FILTER_ACTIVE,E_MESSAGE_INFO)->addInfo($message); $text = e107::getMessage()->render(); @@ -372,8 +368,8 @@ class faq if(!$data = $sql->retrieve($query, true)) { - $message = (!empty($srch)) ? "".$srch." was not found in search results. Reset" : LAN_FAQS_NONE_AVAILABLE; - return "
".$message."
" ; //TODO LAN + $message = (!empty($srch)) ? e107::getParser()->lanVars(LAN_FAQS_X_NOT_FOUND, $srch)."".LAN_FAQS_RESET."" : LAN_FAQS_NONE_AVAILABLE; + return "
".$message."
" ; } // ----------------- @@ -605,7 +601,7 @@ class faq if (ADMIN && getperms("B")) { // bkwon 05-Jun-2004 fix URL to moderate comment - echo "
moderate comments

"; + echo "
".LAN_FAQS_MODERATE_COMMENTS."

"; } } $cobj->form_comment($action, $table, $idx.".".$id, $subject, $content_type); @@ -618,10 +614,10 @@ class faq { global $faqpref,$timing_start,$tp,$cust_footer, $CUSTOMPAGES, $CUSTOMHEADER, $CUSTOMHEADER; $text_menu .= "

-   [ Back to Categories ]  "; +   [ ".LAN_FAQS_BACK_TO_CATEGORIES." ]  "; if(check_class($faqpref['add_faq'])){ - $text_menu .="[ Submit a Question ]"; + $text_menu .="[ ".LAN_FAQS_SUBMIT_A_QUESTION." ]"; } $text_menu .="
"; @@ -649,7 +645,7 @@ class faq - + "; while ($rw = $sql->db_Fetch()) { @@ -681,8 +677,8 @@ class faq "; + $text .= (is_numeric($id)) ? LAN_EDIT : LAN_ADD; //LAN_ADD may not exist on the front end, but I dont think this code is used - Mikey. + $text .= " FAQ"; $text .= " @@ -763,10 +759,10 @@ class faq $row = $sql->db_Fetch(); extract($row); } - $ns->tablerender("Frequently asked Questions".$faq_info_title, "
".$text."
".$this->faq_footer()); + $ns->tablerender( LAN_PLUGIN_FAQS_FRONT_NAME.$faq_info_title, "
".$text."
".$this->faq_footer()); } } -?> \ No newline at end of file +?> diff --git a/e107_plugins/faqs/languages/English/English_front.php b/e107_plugins/faqs/languages/English/English_front.php index 20678516c..0c4456c8b 100644 --- a/e107_plugins/faqs/languages/English/English_front.php +++ b/e107_plugins/faqs/languages/English/English_front.php @@ -1,12 +1,23 @@
".FAQ_ADLAN_49."Options
".LAN_SETTINGS."
"; - $text .= (is_numeric($id)) ? "Edit" : "Add"; - $text .= " an FAQ