]> git.mxchange.org Git - friendica.git/blobdiff - mod/network.php
translated some more strings to German
[friendica.git] / mod / network.php
index 998f8f6ec1e7e8ee0d6b3e2b6af043a5ababc9d0..68c9656e50504686d82ebb32f6fff35fb85ba1b2 100644 (file)
@@ -39,35 +39,23 @@ function network_content(&$a, $update = 0) {
        $group = 0;
 
        $nouveau = false;
+       require_once('include/acl_selectors.php');
 
-       if($update && (x($_SESSION,'netargs'))) {
-               $nouveau = $_SESSION['netargs']['nouveau'];
-               $group   = $_SESSION['netargs']['group'];
-               if(strlen($group))
+       if(($a->argc > 2) && $a->argv[2] === 'new')
+               $nouveau = true;
+
+       if($a->argc > 1) {
+               if($a->argv[1] === 'new')
+                       $nouveau = true;
+               else {
+                       $group = intval($a->argv[1]);
                        $group_acl = array('allow_gid' => '<' . $group . '>');
-               $a->pager['page'] = $_SESSION['netargs']['page'];
-               $a->set_pager_itemspage(50);
+               }
        }
 
-
        if(! $update) {
                $o .= '<script> $(document).ready(function() { $(\'#nav-network-link\').addClass(\'nav-selected\'); });</script>';
 
-               if(($a->argc > 2) && $a->argv[2] === 'new')
-                       $nouveau = true;
-
-                       // pull out the group here because the updater might have different args
-               if($a->argc > 1) {
-                       if($a->argv[1] === 'new')
-                               $nouveau = true;
-                       else {
-                               $group = intval($a->argv[1]);
-                               $group_acl = array('allow_gid' => '<' . $group . '>');
-                       }
-               }
-
-
-               $_SESSION['netarg'] = array('nouveau' => $nouveau, 'group' => $group, 'page' => $a->pager['page']);
                $_SESSION['return_url'] = $a->cmd;
 
                $geotag = (($a->user['allow_location']) ? load_view_file('view/jot_geotag.tpl') : '');
@@ -80,7 +68,6 @@ function network_content(&$a, $update = 0) {
                        '$nickname' => $a->user['nickname']
                ));
 
-               require_once('include/acl_selectors.php');
 
                $tpl = load_view_file("view/jot.tpl");
                
@@ -118,10 +105,10 @@ function network_content(&$a, $update = 0) {
                // filtering by group and also you aren't writing a comment (the last
                // criteria is discovered in javascript).
 
-//             if($a->pager['start'] == 0 && $a->argc == 1) {
                        $o .= '<div id="live-network"></div>' . "\r\n";
-                       $o .= "<script> var profile_uid = " . $_SESSION['uid'] . "; </script>\r\n";
-//             }
+                       $o .= "<script> var profile_uid = " . $_SESSION['uid'] 
+                               . "; var netargs = '" . substr($a->cmd,8) 
+                               . "'; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
 
        }
 
@@ -367,7 +354,7 @@ function network_content(&$a, $update = 0) {
                                ));
                        }
 
-                       $drop = replace_macros(load_view_file('view/wall_item_drop.tpl'), array('$id' => $item['id']));
+                       $drop = replace_macros(load_view_file('view/wall_item_drop.tpl'), array('$id' => $item['id'], '$delete' => t('Delete')));
 
 
        
@@ -425,7 +412,11 @@ function network_content(&$a, $update = 0) {
 
                        $tmp_item = replace_macros($template,array(
                                '$id' => $item['item_id'],
-                               '$title' => t('View $name\'s profile'),
+                               '$linktitle' => t('View $name\'s profile'),
+                               '$olinktitle' => t('View $owner_name\'s profile'),
+                               '$to' => t('to'),
+                               '$wall' => t('Wall-to-Wall'),
+                               '$vwall' => t('via Wall-To-Wall:'),
                                '$profile_url' => $profile_link,
                                '$name' => $profile_name,
                                '$thumb' => $profile_avatar,