App->content (content manager), added preliminary support for translations.

This commit is contained in:
James Rose
2012-11-24 19:37:34 +00:00
parent 17abb63a17
commit fede87f757
17 changed files with 259 additions and 80 deletions

View File

@@ -22,6 +22,7 @@
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
James Rose <james.o.rose@gmail.com>
*/
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 "<rss version=\"2.0\">\n";
echo "<channel>\n";
echo "<title>$module_title RSS Feed</title>\n";
echo "<title>$module_title ".$text['title-rss']."</title>\n";
//echo "<link>http://www.xul.fr/</link>\n";
echo "<description>Task List for RSS...</description>\n";
echo "<description>".$text['description-rss']."</description>\n";
echo "<language>en-US</language>\n";
//echo "<copyright></copyright>\n";
//echo "<image>\n";