[dev] [turba-patch] improve the label of the reset buttons in Turba

Francois Marier francois at nit.ca
Tue Aug 3 13:05:24 PDT 2004


This patch renames the Reset buttons in Turba to "Undo Changes" or
"Reset to Defaults" depending on the context (edit v. add) in order to
make it clear what "reset" means.

Francois
-------------- next part --------------
diff -rpuN -X ../ignorelist ../build/turba/add.php turba/add.php
--- ../build/turba/add.php	Thu Feb 26 08:02:08 2004
+++ turba/add.php	Tue Jul 13 23:07:32 2004
@@ -44,7 +44,7 @@ if (empty($sources)) {
 
 /* Set up the form. */
 $form = &Horde_Form::singleton('', $vars, _("New Contact"));
-$form->setButtons(_("Save"), true);
+$form->setButtons(_("Save"), _("Reset to Defaults"));
 $form->addHidden('', 'url', 'text', false);
 $form->addHidden('', 'key', 'text', false);
 
diff -rpuN -X ../ignorelist ../build/turba/edit.php turba/edit.php
--- ../build/turba/edit.php	Thu Feb 26 08:02:08 2004
+++ turba/edit.php	Tue Jul 13 23:09:10 2004
@@ -55,7 +55,7 @@ $title = sprintf(_("Edit entry for %s"),
 
 /* Get the form object. */
 $form = &Horde_Form::singleton('', $vars, $title);
-$form->setButtons(_("Save"), true);
+$form->setButtons(_("Save"), _("Undo Changes"));
 $form->addHidden('', 'url', 'text', false);
 $form->addHidden('', 'source', 'text', true);
 $form->addHidden('', 'key', 'text', false);
diff -rpuN -X ../ignorelist ../build/turba/templates/browse/search.inc turba/templates/browse/search.inc
--- ../build/turba/templates/browse/search.inc	Mon Jan 19 16:43:02 2004
+++ turba/templates/browse/search.inc	Tue Jul 13 23:00:52 2004
@@ -122,7 +122,7 @@ function updateCriterias()
     <td>&nbsp;</td>
     <td>
         <input type="submit" class="button" name="search" value="<?php echo _("Search") ?>" />
-        <input type="reset" class="button" name="reset" value="<?php echo _("Reset") ?>" />
+        <input type="reset" class="button" name="reset" value="<?php echo _("Reset to Defaults") ?>" />
     </td>
 </tr>
 


More information about the dev mailing list