]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Resolve conflicts and convert _t( to _( where it was introduced again.
authorMike Cochrane <mikec@mikenz.geek.nz>
Thu, 10 Jul 2008 04:51:26 +0000 (00:51 -0400)
committerMike Cochrane <mikec@mikenz.geek.nz>
Thu, 10 Jul 2008 04:51:26 +0000 (00:51 -0400)
darcs-hash:20080710045126-533db-ffd9bcfe1295b3a376579ed7cd2278d5597b1884.gz

actions/login.php
actions/register.php
actions/showstream.php
classes/Notice.php
classes/Profile.php
classes/Reply.php
lib/settingsaction.php
lib/stream.php
lib/util.php

index 649f7ec9a4f695de80b4fe43bd9d0634a25b52fa..d84a0b8cb9184e5846704aa4ca77f876fcd3cafb 100644 (file)
@@ -66,7 +66,7 @@ class LoginAction extends Action {
 
                # success!
                if (!common_set_user($user)) {
-                       common_server_error(_t('Error setting user.'));
+                       common_server_error(_('Error setting user.'));
                        return;
                }
 
index 45446dce6a71717f066283ae86969a8bdc23e73c..37e787c9d05562fd36f711a32c3c4ba3fe043ee5 100644 (file)
@@ -66,7 +66,7 @@ class RegisterAction extends Action {
                } else {
                        $user = $this->register_user($nickname, $password, $email);
                        if (!$user) {
-                               $this->show_form(_t('Invalid username or password.'));
+                               $this->show_form(_('Invalid username or password.'));
                                return;
                        }
                        # success!
index 2a2d9d3b4de6d78b2f973fbfa2f8213258f1106a..b70c0b994c720c9857582361b69b83ee96b7f2ce 100644 (file)
@@ -337,7 +337,7 @@ class ShowstreamAction extends StreamAction {
                common_element('h2', NULL, _('Currently'));
 
                $notice = $profile->getCurrentNotice();
-               
+
                if ($notice) {
                        # FIXME: URL, image, video, audio
                        common_element_start('p', array('class' => 'notice_current'));
@@ -375,11 +375,19 @@ class ShowstreamAction extends StreamAction {
                                                                  'href' => $noticeurl,
                                                                  'title' => common_exact_date($notice->created)),
                                           common_date_string($notice->created));
-               common_element_start('a', 
+               if ($notice->reply_to) {
+                       $replyurl = common_local_url('shownotice', array('notice' => $notice->reply_to));
+                       common_text(' (');
+                       common_element('a', array('class' => 'inreplyto',
+                                                                         'href' => $replyurl),
+                                                  _('in reply to...'));
+                       common_text(')');
+               }
+               common_element_start('a',
                                                         array('href' => common_local_url('newnotice',
                                                                                                                          array('replyto' => $profile->nickname)),
                                                                   'onclick' => 'doreply("'.$profile->nickname.'"); return false',
-                                                                  'title' => _t('reply'),
+                                                                  'title' => _('reply'),
                                                                   'class' => 'replybutton'));
                common_raw('&rarr;');
                common_element_end('a');
index 5a500a3aa72f20de2538e1ae581bdba209b034d8..0ea9763cba64ba1d808444678d4e9bca8c491df1 100644 (file)
@@ -33,11 +33,12 @@ class Notice extends DB_DataObject
     public $id;                              // int(4)  primary_key not_null
     public $profile_id;                      // int(4)   not_null
     public $uri;                             // varchar(255)  unique_key
-    public $content;                         // varchar(140)  
-    public $url;                             // varchar(255)  
+    public $content;                         // varchar(140)
+    public $rendered;                        // text()
+    public $url;                             // varchar(255)
     public $created;                         // datetime()   not_null
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
-    public $reply_to;                        // int(4)  
+    public $reply_to;                        // int(4)
 
     /* Static get */
     function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Notice',$k,$v); }
index 827339a602f7c65cbb9596bdc8792795651e5737..dba7ca8a505e1a24a9a0beef45d13438879ff2d7 100644 (file)
@@ -31,12 +31,12 @@ class Profile extends DB_DataObject
 
     public $__table = 'profile';                         // table name
     public $id;                              // int(4)  primary_key not_null
-    public $nickname;                        // varchar(64)   not_null
-    public $fullname;                        // varchar(255)  
-    public $profileurl;                      // varchar(255)  
-    public $homepage;                        // varchar(255)  
-    public $bio;                             // varchar(140)  
-    public $location;                        // varchar(255)  
+    public $nickname;                        // varchar(64)  multiple_key not_null
+    public $fullname;                        // varchar(255)  multiple_key
+    public $profileurl;                      // varchar(255)
+    public $homepage;                        // varchar(255)  multiple_key
+    public $bio;                             // varchar(140)  multiple_key
+    public $location;                        // varchar(255)  multiple_key
     public $created;                         // datetime()   not_null
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
 
index 507782391b7a06630e72fb7e95b4d11629fa6a27..af8f0b098c57f219e52c303c5df3b817b1260802 100644 (file)
@@ -12,9 +12,9 @@ class Reply extends DB_DataObject
     public $__table = 'reply';                           // table name
     public $notice_id;                       // int(4)  primary_key not_null
     public $profile_id;                      // int(4)  primary_key not_null
-    public $replied_id;                      // int(4)  
+    public $replied_id;                      // int(4)
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
-    public $replied_id;                      // int(4)  
+    public $replied_id;                      // int(4)
 
     /* Static get */
     function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Reply',$k,$v); }
index 22be36720911d8529c1943da0f6ce904db9260c5..fe0f48a7a2f6d5c85ee9b1c6059afe5b6fb34fe8 100644 (file)
@@ -100,8 +100,8 @@ class SettingsAction extends Action {
         common_element_start('ul', array('id' => 'nav_views'));
         foreach ($menu as $menuaction => $menudesc) {
             common_menu_item(common_local_url($menuaction),
-                    _t($menudesc[0]),
-                    _t($menudesc[1]),
+                    _($menudesc[0]),
+                    _($menudesc[1]),
                     $action == $menuaction);
         }
         common_element_end('ul');
index d6180f4edde0226d52f7e6926c7fa52c8203bd60..ad65e2d2a293702231a513b0959225d68f1dd4da 100644 (file)
@@ -98,14 +98,14 @@ class StreamAction extends Action {
                        common_text(' (');
                        common_element('a', array('class' => 'inreplyto',
                                                                          'href' => $replyurl),
-                                                  _t(' in reply to...'));
+                                                  _('in reply to...'));
                        common_text(')');
                }
                common_element_start('a',
                                                         array('href' => common_local_url('newnotice',
                                                                                                                          array('replyto' => $profile->nickname)),
                                                                   'onclick' => 'doreply("'.$profile->nickname.'"); return false',
-                                                                  'title' => _t('reply'),
+                                                                  'title' => _('reply'),
                                                                   'class' => 'replybutton'));
                common_raw('&rarr;');
                common_element_end('a');
index 1af5d1177005be22c2d242ca688e8180f8861125..1d661fb4e86c5c7928cb847b3324a020b9aac4e1 100644 (file)
@@ -277,7 +277,8 @@ function common_nav_menu() {
                common_menu_item(common_local_url('all', array('nickname' => $user->nickname)),
                                                 _('Home'));
        }
-       common_menu_item(common_local_url('public'), _t('Public'));
+       common_menu_item(common_local_url('public'), _('Public'));
+       common_menu_item(common_local_url('peoplesearch'), _('Search'));
        common_menu_item(common_local_url('doc', array('title' => 'help')),
                                         _('Help'));
        if ($user) {