Small patch for memo.php
Jan Kuipers <[email protected]> Thu, 26 Sep 2002 00:17:01 +0200
| Newsgroups | gmane.comp.horde.mnemo |
|---|---|
| Message-ID | <[email protected]> |
Regarding HEAD: Some gettext fixes and 'default_tasklist' changed to 'default_notepad' -- Jan Kuipers Systeembeheer Lauwers College -- Mnemo mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]
memo.php.diff.txt
(text/plain, 2.8 KB)
Index: memo.php
===================================================================
RCS file: /repository/mnemo/memo.php,v
retrieving revision 1.6
diff -u -r1.6 memo.php
--- memo.php 24 Sep 2002 21:32:23 -0000 1.6
+++ memo.php 25 Sep 2002 22:10:50 -0000
@@ -25,7 +25,7 @@
case MNEMO_ADD_MEMO:
/* Set up the note attributes. */
- $memolist_id = $prefs->getValue('default_tasklist');
+ $memolist_id = $prefs->getValue('default_notepad');
$memo_id = null;
$memo_body = '';
$memo_category = false;
@@ -61,7 +61,7 @@
$new_category = Horde::getFormData('new_category');
$memo_category = Mnemo::addCategory($new_category);
if ($memo_category == 0) {
- $notification->push(sprintf(_('Unable to create to category: %s'), $new_category), 'horde.warning');
+ $notification->push(sprintf(_("Unable to create to category: %s"), $new_category), 'horde.warning');
}
}
@@ -80,7 +80,7 @@
$storage->deleteMemo($memo_id);
if (PEAR::isError($storage->store())) {
- $notification->push(_('There was an error removing the note.'), 'horde.warning');
+ $notification->push(_("There was an error removing the note."), 'horde.warning');
}
$storage = &Mnemo_Driver::factory($conf['storage']['driver'], $notepad_target,
@@ -89,7 +89,7 @@
$memo_id = $storage->addMemo($memo_body, $memo_category);
} else {
- $notification->push(_('Access denied removing the note.'), 'horde.warning');
+ $notification->push(_("Access denied removing the note."), 'horde.warning');
}
} else {
/* Modifying the note on the same notepad */
@@ -111,7 +111,7 @@
/* Store the changes. */
if (PEAR::isError($result = $storage->store())) {
- $notification->push(_('There was an error saving the note.'), 'horde.warning');
+ $notification->push(_("There was an error saving the note."), 'horde.warning');
}
/* Return to the notepad view. */
@@ -136,12 +136,12 @@
$storage->deleteMemo($memo_id);
if (PEAR::isError($storage->store())) {
- $notification->push(_('There was an error removing the note.'), 'horde.warning');
+ $notification->push(_("There was an error removing the note."), 'horde.warning');
} else {
- $notification->push(_('The note was deleted.'), 'horde.success');
+ $notification->push(_("The note was deleted."), 'horde.success');
}
} else {
- $notification->push(_('Access denied deleteing note.'), 'horde.warning');
+ $notification->push(_("Access denied deleting note."), 'horde.warning');
}
}