[dev] [kronolith-patch] changed title of unnamed events

Francois Marier francois at nit.ca
Mon Aug 2 16:09:07 PDT 2004


This patch simply changes the string that is displayed when an event
doesn't have a name.

Instead of "[none]", it displays "[Unnamed event]", which is longer
but slightly clearer.

Francois
-------------- next part --------------
diff -rpuN -X ../ignorelist ../build/kronolith/lib/Driver.php kronolith/lib/Driver.php
--- ../build/kronolith/lib/Driver.php	Thu Jul 22 22:45:48 2004
+++ kronolith/lib/Driver.php	Mon Aug  2 19:02:42 2004
@@ -1088,7 +1088,7 @@ class Kronolith_Event {
     function getTitle()
     {
         if (isset($this->taskID) || isset($this->remoteCal) || isset($this->meetingID)) {
-            return !empty($this->title) ? $this->title : _("[none]");
+            return !empty($this->title) ? $this->title : _("[Unnamed event]");
         }
 
         if (!$this->isInitialized()) {
@@ -1097,7 +1097,7 @@ class Kronolith_Event {
 
         $share = $GLOBALS['all_calendars'][$this->getCalendar()];
         if (!is_a($share, 'PEAR_Error') && $share->hasPermission(Auth::getAuth(), PERMS_READ, $this->getCreatorID())) {
-            return !empty($this->title) ? $this->title : _("[none]");
+            return !empty($this->title) ? $this->title : _("[Unnamed event]");
         } else {
             global $prefs;
             return sprintf(_("Event from %s to %s"),


More information about the dev mailing list