]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix and add translator documentation
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 19 Aug 2011 14:40:45 +0000 (16:40 +0200)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 19 Aug 2011 14:40:45 +0000 (16:40 +0200)
Fix i18n domain where needed.
Whitespace updates.

plugins/Blog/BlogPlugin.php
plugins/Blog/blogentryform.php
plugins/Blog/showblogentry.php

index 04eef36e04195df00469abf217c5d39330cdda95..0f1c34bff1832e9dcf324c5b42ca790f5520a7c0 100644 (file)
@@ -120,13 +120,15 @@ class BlogPlugin extends MicroAppPlugin
                             'author' => 'Evan Prodromou',
                             'homepage' => 'http://status.net/wiki/Plugin:Blog',
                             'rawdescription' =>
+                            // TRANS: Plugin description.
                             _m('Let users write and share long-form texts.'));
         return true;
     }
 
     function appTitle()
     {
-        return _m('Blog');
+        // TRANS: Blog application title.
+        return _m('TITLE','Blog');
     }
 
     function tag()
@@ -149,7 +151,7 @@ class BlogPlugin extends MicroAppPlugin
         $entryObj = $activity->objects[0];
 
         if ($entryObj->type != Blog_entry::TYPE) {
-            // TRANS: Exception thrown when blog plugin comes across a non-event type object.
+            // TRANS: Exception thrown when blog plugin comes across a non-blog entry type object.
             throw new ClientException(_m('Wrong type for object.'));
         }
 
@@ -175,7 +177,8 @@ class BlogPlugin extends MicroAppPlugin
         $entry = Blog_entry::fromNotice($notice);
 
         if (empty($entry)) {
-            throw new ClientException(sprintf(_('No blog entry for notice %s'),
+            // TRANS: Exception thrown when requesting a non-existing blog entry for notice.
+            throw new ClientException(sprintf(_m('No blog entry for notice %s.'),
                         $notice->id));
         }
 
@@ -204,7 +207,7 @@ class BlogPlugin extends MicroAppPlugin
         if ($notice->object_type == Blog_entry::TYPE) {
             return new BlogEntryListItem($nli);
         }
-        
+
         return null;
     }
 
index b21e76a7e8e53cff1fe8fd4b572fa758f235e4f3..2da2a1397e1d7c7d18b2507000b242ed132edcae 100644 (file)
@@ -44,7 +44,6 @@ if (!defined('STATUSNET')) {
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
  * @link      http://status.net/
  */
-
 class BlogEntryForm extends Form
 {
     /**
@@ -96,13 +95,13 @@ class BlogEntryForm extends Form
                           _m('Title of the blog entry.'),
                           'title');
         $this->unli();
-        
+
         $this->li();
         $this->out->textarea('blog-entry-content',
-                             // TRANS: Field label on event form.
+                             // TRANS: Field label on blog entry form.
                              _m('LABEL','Text'),
                             null,
-                            // TRANS: Field title on event form.
+                            // TRANS: Field title on blog entry form.
                             _m('Text of the blog entry.'),
                             'content');
         $this->unli();
@@ -124,8 +123,8 @@ class BlogEntryForm extends Form
      */
     function formActions()
     {
-        // TRANS: Button text to save an event..
         $this->out->submit('blog-entry-submit',
+                           // TRANS: Button text to save a blog entry.
                            _m('BUTTON', 'Save'),
                            'submit',
                            'submit');
index c5aa54a4c289394f42f75390709674ff5059d1f3..288527b42a19e71567175649a664c81b7aea84e0 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (C) 2011, StatusNet, Inc.
  *
  * Show a blog entry
- * 
+ *
  * PHP version 5
  *
  * This program is free software: you can redistribute it and/or modify
@@ -44,12 +44,11 @@ if (!defined('STATUSNET')) {
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
  * @link      http://status.net/
  */
-
 class ShowblogentryAction extends ShownoticeAction
 {
     protected $id;
     protected $entry;
-    
+
     function getNotice()
     {
         $this->id = $this->trimmed('id');
@@ -81,6 +80,7 @@ class ShowblogentryAction extends ShownoticeAction
     function title()
     {
         // XXX: check for double-encoding
+        // TRANS: Title for a blog entry without a title.
         return (empty($this->entry->title)) ? _m('Untitled') : $this->entry->title;
     }
 }