diff --git a/app/content/app_languages.php b/app/content/app_languages.php new file mode 100644 index 0000000000..23ae44ea21 --- /dev/null +++ b/app/content/app_languages.php @@ -0,0 +1,68 @@ + + Portions created by the Initial Developer are Copyright (C) 2008-2012 + the Initial Developer. All Rights Reserved. + + Contributor(s): + Mark J Crane + James Rose +*/ + $text['title-rss']['en-us'] = 'RSS Feed'; + $text['description-rss']['en-us'] = 'Task List for RSS...'; + $text['message-add']['en-us'] = 'Add Complete'; + $text['button-back']['en-us'] = 'Back'; + $text['button-public']['en-us'] = 'public'; + $text['label-order']['en-us'] = 'Order'; + $text['label-content']['en-us'] = 'Content'; + $text['button-add-title']['en-us'] = 'Add'; + $text['message-delete-done']['en-us'] = 'Delete Completed'; + $text['label-list']['en-us'] = 'List'; + $text['label-title']['en-us'] = 'Title'; + $text['label-link']['en-us'] = 'Link'; + $text['label-group']['en-us'] = 'Group'; + $text['label-order']['en-us'] = 'Order'; + $text['label-edit']['en-us'] = 'Edit'; + $text['message-confirm-delete']['en-us'] = 'Do you really want to delete this?'; + $text['message-item-down']['en-us'] = 'Item Moved Down'; + $text['message-item-up']['en-us'] = 'Item Moved Up'; + $text['label-search']['en-us'] = 'Search Results'; + $text['label-id']['en-us'] = 'ID'; + $text['label-category']['en-us'] = 'Category'; + $text['label-sub-category']['en-us'] = 'Sub Category'; + $text['label-description']['en-us'] = 'Description'; + $text['button-search']['en-us'] = 'Search'; + $text['label-rss-category']['en-us'] = 'RSS Category'; + $text['button-update']['en-us'] = 'Update'; + $text['message-update']['en-us'] = 'Update Complete'; + $text['label-details']['en-us'] = 'Details'; + $text['label-template']['en-us'] = 'Template'; + $text['button-delete']['en-us'] = 'Delete'; + $text['label-sub-id']['en-us'] = 'Sub ID'; + $text['label-sub-title']['en-us'] = 'Sub Title'; + $text['label-sub-link']['en-us'] = 'Sub Link'; + $text['label-sub-desc']['en-us'] = 'Sub Description'; + $text['message-error-missing']['en-us'] = 'Error missing'; + $text['message-description']['en-us'] = 'Please provide a description.'; + $text['label-content-edit']['en-us'] = 'Content Edit'; + $text['label-type']['en-us'] = 'Type'; + $text['label-on-off']['en-us'] = 'on/off'; + $text['button-save']['en-us'] = 'Save'; + +?> \ No newline at end of file diff --git a/app/content/rss.php b/app/content/rss.php index fff631d105..53214bf3ab 100644 --- a/app/content/rss.php +++ b/app/content/rss.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ return; //disable include "root.php"; @@ -36,6 +37,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //include module specific information if (strlen($mod_config_path)==0) { include "config.php"; @@ -71,9 +78,9 @@ if ($content_type == "rss") { echo "\n"; echo "\n"; - echo "$module_title RSS Feed\n"; + echo "$module_title ".$text['title-rss']."\n"; //echo "http://www.xul.fr/\n"; - echo "Task List for RSS...\n"; + echo "".$text['description-rss']."\n"; echo "en-US\n"; //echo "\n"; //echo "\n"; diff --git a/app/content/rssadd.php b/app/content/rssadd.php index 0a831029ea..149d4d01ce 100644 --- a/app/content/rssadd.php +++ b/app/content/rssadd.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ include "root.php"; require_once "includes/require.php"; @@ -35,6 +36,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + if (count($_POST)>0) { //get the http values and set them as variables @@ -99,7 +106,7 @@ if (count($_POST)>0) { require_once "includes/header.php"; echo "\n"; echo "
"; - echo "Add Complete"; + echo $text['message-add']; echo "
"; require_once "includes/footer.php"; return; @@ -142,7 +149,7 @@ if (count($_POST)>0) { echo "\n"; echo "Content Add\n"; - echo "

\n"; + echo "

\n"; echo "\n"; //echo " "; //echo " Category:"; @@ -173,7 +180,7 @@ if (count($_POST)>0) { $prep_statement->execute(); echo "\n"; @@ -264,9 +271,9 @@ if (count($_POST)>0) { echo " "; //echo " "; echo " "; - echo " Content: "; + echo " ".$text['label-content'].": "; if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/includes/tiny_mce')) { - echo "       editor   on/off
"; + echo "       editor   ".$text['label-on-off']."
"; } else { echo " "; @@ -330,7 +337,7 @@ if (count($_POST)>0) { echo " "; echo " "; - echo " \n"; + echo " \n"; echo " "; echo " "; echo ""; diff --git a/app/content/rssdelete.php b/app/content/rssdelete.php index 496e3cd954..769fc4dec0 100644 --- a/app/content/rssdelete.php +++ b/app/content/rssdelete.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ include "root.php"; require_once "includes/require.php"; @@ -35,6 +36,11 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } if (count($_GET)>0) { $rss_uuid = check_str($_GET["rss_uuid"]); @@ -52,7 +58,7 @@ if (count($_GET)>0) { require_once "includes/header.php"; echo "\n"; echo "
"; - echo "Delete Completed"; + echo $text['message-delete-done']; echo "
"; require_once "includes/footer.php"; return; diff --git a/app/content/rsslist.php b/app/content/rsslist.php index b28fd6131d..e8f3e695ea 100644 --- a/app/content/rsslist.php +++ b/app/content/rsslist.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ include "root.php"; require_once "includes/require.php"; @@ -35,6 +36,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + if (!function_exists('th_order_by')) { //html table header order by function th_order_by($field_name, $columntitle, $order_by, $order) { @@ -72,7 +79,7 @@ $order = $_GET["order"]; echo ""; echo ""; echo ""; echo ""; echo " "; echo " "; echo " "; echo "
"; - echo " $module_title List"; + echo " $module_title ".$text['label-list'].""; echo ""; //echo "    \n"; @@ -107,11 +114,11 @@ $order = $_GET["order"]; echo "
\n"; echo "\n"; echo ""; - echo th_order_by('rss_title', 'Title', $order_by, $order); - echo th_order_by('rss_link', 'Link', $order_by, $order); + echo th_order_by('rss_title', $text['label-title'], $order_by, $order); + echo th_order_by('rss_link', $text['label-link'], $order_by, $order); //echo th_order_by('rss_sub_category', 'Template', $order_by, $order); - echo th_order_by('rss_group', 'Group', $order_by, $order); - echo th_order_by('rss_order', 'Order', $order_by, $order); + echo th_order_by('rss_group', $text['label-group'], $order_by, $order); + echo th_order_by('rss_order', $text['label-order'], $order_by, $order); if ($result_count == 0) { //no results echo ""; echo " \n"; //echo "
\n"; } @@ -163,8 +170,8 @@ $order = $_GET["order"]; //echo "\n"; - echo " $v_link_label_edit\n"; - echo " $v_link_label_delete\n"; + echo " $v_link_label_edit\n"; + echo " $v_link_label_delete\n"; echo " "; diff --git a/app/content/rssmovedown.php b/app/content/rssmovedown.php index 05e91f8862..9e83bebc29 100644 --- a/app/content/rssmovedown.php +++ b/app/content/rssmovedown.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ include "root.php"; require_once "includes/require.php"; @@ -35,6 +36,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //move down more than one level at a time //update v_rss set rss_order = (rss_order+1) where rss_order > 2 or rss_order = 2 @@ -82,7 +89,7 @@ if (count($_GET)>0) { require_once "includes/header.php"; echo "\n"; echo "
"; - echo "Item Moved Down"; + echo $text['message-item-down']; echo "
"; require_once "includes/footer.php"; return; diff --git a/app/content/rssmoveup.php b/app/content/rssmoveup.php index e2a4032673..96593ce7d5 100644 --- a/app/content/rssmoveup.php +++ b/app/content/rssmoveup.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ include "root.php"; require_once "includes/require.php"; @@ -35,6 +36,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + //move down more than one level at a time //update v_rss set rss_order = (rss_order+1) where rss_order > 2 or rss_order = 2 @@ -66,7 +73,7 @@ if (count($_GET)>0) { require_once "includes/header.php"; echo "\n"; echo "
"; - echo "Item Moved Up"; + echo $text['message-item-up']; echo "
"; require_once "includes/footer.php"; return; diff --git a/app/content/rsssearch.php b/app/content/rsssearch.php index b1c1dcdd40..2d0fef89ec 100644 --- a/app/content/rsssearch.php +++ b/app/content/rsssearch.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ return; //disabled @@ -37,6 +38,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + if (count($_POST)>0) { $rss_uuid = check_str($_POST["rss_uuid"]); //$rss_category = check_str($_POST["rss_category"]); //defined in local config.php @@ -115,7 +122,7 @@ if (count($_POST)>0) { $row_style["0"] = "background-color: #F5F5DC;"; $row_style["1"] = "background-color: #FFFFFF;"; - echo "Search Results
"; + echo "".$text['label-search']."
"; echo "
\n"; echo "\n"; echo ""; @@ -126,10 +133,10 @@ if (count($_POST)>0) { else { //received results echo ""; - echo ""; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; + echo ""; //echo ""; //echo ""; //echo ""; @@ -207,7 +214,7 @@ if (count($_POST)>0) { echo " "; echo " "; echo " "; - echo " "; + echo " "; echo " "; echo " "; //echo " "; @@ -215,15 +222,15 @@ if (count($_POST)>0) { //echo " "; //echo " "; echo " "; - echo " "; + echo " "; echo " "; echo " "; echo " "; - echo " "; + echo " "; echo " "; echo " "; echo " "; - echo " "; + echo " "; echo " "; echo " "; //echo " "; @@ -259,7 +266,7 @@ if (count($_POST)>0) { //echo " "; //echo " "; echo " "; - echo " "; + echo " "; echo " "; echo "
    ID        Category        Sub Category        Title        ".$text['label-id']."        ".$text['label-category']."        ".$text['label-sub-category']."        ".$text['label-title']."        rss_link        rss_description        rss_img   
Category:".$text['label-category'].":
Title:".$text['label-title'].":
Link:".$text['label-link'].":
Desc:".$text['label-description'].":
"; echo ""; diff --git a/app/content/rsssubadd.php b/app/content/rsssubadd.php index af92000410..f8ebec590c 100644 --- a/app/content/rsssubadd.php +++ b/app/content/rsssubadd.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ include "root.php"; require_once "includes/require.php"; @@ -35,6 +36,13 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + + $rss_uuid = $_GET["rss_uuid"]; if (count($_POST)>0) { @@ -89,7 +97,7 @@ if (count($_POST)>0) { require_once "includes/header.php"; echo "\n"; echo "
"; - echo "Add Complete"; + echo $text['message-add']; echo "
"; require_once "includes/footer.php"; return; @@ -109,7 +117,7 @@ if (count($_POST)>0) { echo "
"; echo ""; echo " "; - echo " "; + echo " "; echo " "; echo " "; //echo " "; @@ -117,7 +125,7 @@ if (count($_POST)>0) { //echo " "; //echo " "; echo " "; - echo " "; + echo " "; echo " "; @@ -158,7 +166,7 @@ if (count($_POST)>0) { //echo " "; echo " "; echo " "; echo " "; echo "
Title:".$text['label-title'].":
Description:".$text['label-description'].":"; echo " "; echo "
"; echo " "; - echo " "; + echo " "; echo "
"; diff --git a/app/content/rsssubcategoryadd.php b/app/content/rsssubcategoryadd.php index 49e1af97d1..025e57386a 100644 --- a/app/content/rsssubcategoryadd.php +++ b/app/content/rsssubcategoryadd.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ include "root.php"; require_once "includes/require.php"; @@ -35,6 +36,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + if (count($_POST)>0) { $rss_sub_category_uuid = uuid(); $rss_category = check_str($_POST["rss_category"]); @@ -68,7 +75,7 @@ if (count($_POST)>0) { require_once "includes/header.php"; echo "\n"; - echo "Add Complete"; + echo $text['message-add']; require_once "includes/footer.php"; return; } @@ -83,7 +90,7 @@ echo "
"; echo ""; echo ""; echo " "; -echo " "; +echo " "; echo " "; echo " "; echo " "; @@ -103,7 +110,7 @@ echo " "; echo " "; echo " \n"; echo " "; -echo " "; +echo " "; echo " "; echo "
RSS Category:".$text['label-rss-category'].":
rss_add_date:
"; echo ""; diff --git a/app/content/rsssubcategorylist.php b/app/content/rsssubcategorylist.php index b27b42622e..6b7ff941af 100644 --- a/app/content/rsssubcategorylist.php +++ b/app/content/rsssubcategorylist.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ include "root.php"; require_once "includes/require.php"; @@ -35,6 +36,11 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } require_once "includes/header.php"; @@ -188,8 +194,8 @@ else { //received results } //end if results echo "
\n"; -echo "   \n"; -echo "   \n"; +echo "   \n"; +echo "   \n"; echo "
"; echo "

"; diff --git a/app/content/rsssubcategoryupdate.php b/app/content/rsssubcategoryupdate.php index 6dba2af02b..a552625cfd 100644 --- a/app/content/rsssubcategoryupdate.php +++ b/app/content/rsssubcategoryupdate.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ include "root.php"; require_once "includes/require.php"; @@ -35,6 +36,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + if (count($_POST)>0) { $rss_sub_category_uuid = check_str($_POST["rss_sub_category_uuid"]); $rss_category = check_str($_POST["rss_category"]); @@ -58,7 +65,7 @@ if (count($_POST)>0) { //edit: make sure the meta redirect url is correct require_once "includes/header.php"; echo "\n"; - echo "Update Complete"; + echo $text['message-update']; require_once "includes/footer.php"; return; } @@ -117,7 +124,7 @@ echo "
"; echo " "; -echo " "; +echo " "; echo "
"; diff --git a/app/content/rsssubdelete.php b/app/content/rsssubdelete.php index 0dad197228..dbb36e07bd 100644 --- a/app/content/rsssubdelete.php +++ b/app/content/rsssubdelete.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ include "root.php"; require_once "includes/require.php"; @@ -35,6 +36,13 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + + if (count($_GET)>0) { $rss_uuid = check_str($_GET["rss_uuid"]); $rss_sub_uuid = check_str($_GET["rss_sub_uuid"]); @@ -51,7 +59,7 @@ if (count($_GET)>0) { require_once "includes/header.php"; echo "\n"; echo "
"; - echo "Delete Completed"; + echo $text['message-delete-done']; echo "
"; require_once "includes/footer.php"; return; diff --git a/app/content/rsssublist.php b/app/content/rsssublist.php index 4828e81242..11c78d7049 100644 --- a/app/content/rsssublist.php +++ b/app/content/rsssublist.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ include "root.php"; require_once "includes/require.php"; @@ -35,6 +36,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + $rss_uuid = $_GET["rss_uuid"]; $order_by = $_GET["order_by"]; $order = $_GET["order"]; @@ -48,7 +55,7 @@ require_once "includes/header.php"; echo " \n"; echo "
"; - echo " $module_title Details"; + echo " $module_title ".$text['label-details'].""; $sql = ""; $sql .= "select * from v_rss "; $sql .= "where domain_uuid = '$domain_uuid' "; @@ -81,10 +88,10 @@ require_once "includes/header.php"; //echo "".$row[rss_category].""; echo ""; - echo " Title:  "; + echo " ".$text['label-title'].":  "; echo " ".$row[rss_title].""; echo " "; - echo " "; + echo " "; echo " "; $rss_description = $row[rss_description]; //$rss_description = str_replace ("\r\n", "
", $rss_description); @@ -93,24 +100,24 @@ require_once "includes/header.php"; echo ""; - echo " Template:  "; + echo " ".$text['label-template'].":  "; echo " ".$row[rss_sub_category].""; echo ""; echo ""; - echo " Group:  "; + echo " ".$text['label-group'].":  "; echo " ".$row[rss_group].""; echo ""; if (strlen($row[rss_order]) > 0) { echo ""; - echo " Order:  "; + echo " ".text['label-order'].":  "; echo " ".$row[rss_order].""; echo ""; } //echo "".$row[rss_link].""; - echo " Description:  "; + echo " ".$text['label-description'].":  "; echo " ".$rss_description.""; //echo "".$row[rss_img].""; @@ -380,12 +387,12 @@ require_once "includes/header.php"; //echo "".$row[rss_sub_add_user].""; echo ""; - echo " "; + echo " "; echo ""; echo ""; echo "  "; - echo " "; + echo " "; echo "   \n"; //echo " Update "; echo ""; @@ -428,7 +435,7 @@ require_once "includes/header.php"; //echo "   \n"; if ($rss_sub_show == 1) { - echo "   \n"; + echo "   \n"; } echo ""; diff --git a/app/content/rsssubsearch.php b/app/content/rsssubsearch.php index c233dd2fe6..ed8366663e 100644 --- a/app/content/rsssubsearch.php +++ b/app/content/rsssubsearch.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ include "root.php"; require_once "includes/require.php"; @@ -35,6 +36,11 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } if (count($_POST)>0) { $rss_sub_uuid = check_str($_POST["rss_sub_uuid"]); @@ -109,7 +115,7 @@ if (count($_POST)>0) { $row_style["0"] = "background-color: #F5F5DC;"; $row_style["1"] = "background-color: #FFFFFF;"; - echo "Search Results
"; + echo "".$text['label-search']."
"; echo "
\n"; echo "\n"; echo ""; @@ -120,9 +126,9 @@ if (count($_POST)>0) { else { //received results echo ""; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; //echo ""; //echo ""; //echo ""; @@ -194,23 +200,23 @@ if (count($_POST)>0) { echo ""; echo "
    Sub ID        Id        Title        ".$text['label-sub-id']."        ".$text['label-id']."        ".$text['label-title']."        Link        rss_sub_description        rss_sub_optional_1   
"; echo " "; - echo " "; + echo " "; echo " "; echo " "; echo " "; - echo " "; + echo " "; echo " "; echo " "; echo " "; - echo " "; + echo " "; echo " "; echo " "; echo " "; - echo " "; + echo " "; echo " "; echo " "; echo " "; - echo " "; + echo " "; echo " "; echo " "; //echo " "; @@ -242,7 +248,7 @@ if (count($_POST)>0) { //echo " "; //echo " "; echo " "; - echo " "; + echo " "; echo " "; echo "
Sub ID:".$text['label-sub-id'].":
ID:".$text['label-id'].":
Sub Title:".$text['label-sub-title'].":
Sub Link:".text['label-sub-link'].":
Sub Desc:".$text['label-sub-desc'].":
"; echo ""; diff --git a/app/content/rsssubupdate.php b/app/content/rsssubupdate.php index 80d472efa2..cd93639cab 100644 --- a/app/content/rsssubupdate.php +++ b/app/content/rsssubupdate.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ include "root.php"; require_once "includes/require.php"; @@ -35,6 +36,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + $rss_uuid = $_GET["rss_uuid"]; if (count($_POST)>0 && $_POST["persistform"] == "0") { @@ -52,10 +59,10 @@ if (count($_POST)>0 && $_POST["persistform"] == "0") { $rss_sub_add_user = check_str($_POST["rss_sub_add_user"]); $msg = ''; - if (strlen($rss_uuid) == 0) { $msg .= "Error missing rss_uuid.
\n"; } - if (strlen($rss_sub_uuid) == 0) { $msg .= "Error missing rss_sub_uuid.
\n"; } + if (strlen($rss_uuid) == 0) { $msg .= $text['message-error-missing']." rss_uuid.
\n"; } + if (strlen($rss_sub_uuid) == 0) { $msg .= $text['message-error-missing']." rss_sub_uuid.
\n"; } //if (strlen($rss_sub_title) == 0) { $msg .= "Please provide a title.
\n"; } - if (strlen($rss_sub_description) == 0) { $msg .= "Please provide a description.
\n"; } + if (strlen($rss_sub_description) == 0) { $msg .= $text['message-description']."
\n"; } if (strlen($msg) > 0) { require_once "includes/persistform.php"; @@ -101,7 +108,7 @@ if (count($_POST)>0 && $_POST["persistform"] == "0") { require_once "includes/header.php"; echo "\n"; echo "
"; - echo "Update Complete"; + echo $text['message-update']; echo "
"; require_once "includes/footer.php"; return; @@ -151,15 +158,15 @@ else { //echo " "; //echo " "; echo " "; - echo " Sub Title:"; + echo " ".$text['label-sub-title'].":"; echo " "; echo " "; echo " "; - echo " Sub Link:"; + echo " ".$text['label-sub-link'].":"; echo " "; echo " "; echo " "; - echo " Description:"; + echo " ".$text['label-description'].":"; echo " "; echo " "; echo " "; @@ -190,7 +197,7 @@ else { echo " "; echo " "; echo " "; - echo " "; + echo " "; echo " "; echo " "; echo ""; diff --git a/app/content/rssupdate.php b/app/content/rssupdate.php index 0f53de85d0..2f68ebea0c 100644 --- a/app/content/rssupdate.php +++ b/app/content/rssupdate.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + James Rose */ include "root.php"; require_once "includes/require.php"; @@ -35,6 +36,12 @@ else { exit; } +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } + if (count($_POST)>0) { $rss_uuid = check_str($_POST["rss_uuid"]); @@ -87,7 +94,7 @@ if (count($_POST)>0) { require_once "includes/header.php"; echo "\n"; echo "
"; - echo "Update Complete"; + echo $text['message-update']; echo "
"; require_once "includes/footer.php"; return; @@ -172,8 +179,8 @@ else { echo ""; echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; //echo " "; @@ -185,16 +192,16 @@ else { //echo " "; //echo " "; echo " "; - echo " "; + echo " "; echo " "; echo " "; echo " "; - echo " "; + echo " "; echo " "; echo " "; echo " "; - echo " "; + echo " "; echo " "; - echo " "; + echo " "; echo " \n"; echo "\n"; echo ""; echo " "; echo " "; echo "
Content Edit

".$text['label-content-edit']."

Title:".$text['label-title'].":
Link:".$text['label-link'].":
Group:".$text['label-group'].":"; //echo " "; @@ -254,7 +261,7 @@ else { */ echo "
Type:".$text['label-type'].":"; echo "
\n"; - echo " Order:\n"; + echo " ".$text['label-order'].":\n"; echo "\n"; echo "
"; - echo " Content: "; + echo " ".$text['label-content'].": "; if ($rss_optional_1 == "text/html") { if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/includes/tiny_mce')) { - echo "       editor   on/off
"; + echo "       editor   ".$text['label-on-off']."
"; } echo " "; } @@ -370,7 +377,7 @@ else { //echo ""; echo " "; - echo " "; + echo " "; echo "
";