Index: stock.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/stock/stock.module,v
retrieving revision 1.17.2.3.2.1
diff -u -u -p -r1.17.2.3.2.1 stock.module
--- stock.module	5 Feb 2007 15:30:54 -0000	1.17.2.3.2.1
+++ stock.module	18 Jul 2008 06:22:07 -0000
@@ -45,7 +45,25 @@ function stock_admin_settings() {
       '#description' => t('The text in the navigation link which points to the stock quote page.'),
     );
 
-  return system_settings_form($form);
+    $form['stock_save'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Save portfolio button text'),
+      '#default_value' => variable_get('stock_save', t('Save')),
+      '#size' => 35,
+      '#maxlength' => 255,
+      '#description' => t('Choose the text to show on the button that saves the portfolio.'),
+    );
+
+    $form['stock_quote'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Quote button text'),
+      '#default_value' => variable_get('stock_quote', t('Quote')),
+      '#size' => 35,
+      '#maxlength' => 255,
+      '#description' => t('Choose the text to show on the button that shows quotes.'),
+    );
+
+    return system_settings_form($form);
 }
 
 function stock_perm() {
@@ -140,14 +158,14 @@ function stock_form_definition($symbols)
 
   $form['button_quote'] = array(
     '#type' => 'button',
-    '#value' => t('Quote'),
+    '#value' => variable_get('stock_quote', t('Quote')),
   );
 
   // If user is logged in, then show him a Save button
   if ($user->uid) {
     $form['button_save'] = array(
       '#type' => 'button',
-      '#value' => t('Save'),
+      '#value' => variable_get('stock_save', t('Save')),
     );
   }
 
@@ -195,12 +213,12 @@ function stock_contents($format = 'block
       $saved_symbols = '';
       $output = variable_get('stock_description', 'This is the default stock quote page.');
 
-      if ($op == t('Save') && $user->uid) {
+      if ($op == variable_get('stock_save', t('Save')) && $user->uid) {
         // If the user pressed the Save button, and is logged in, save their preferences
         stock_save_user_quotes($symbols);
         drupal_set_message(t('Your portfolio has been saved.'));
       }
-      elseif ($op == t('Quote') && $user->uid) {
+      elseif ($op == variable_get('stock_quote', t('Quote')) && $user->uid) {
         // If the user pressed the Quote button, and is logged in, show his saved portfolio also, if it exists.
         $saved_symbols = stock_get_user_quotes();
       }
