[Vtigercrm-commits] [vtiger-commits] r10431 - in /vtigercrm/branches/5.0.3/modules/Products: Save.php language/en_us.lang.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Mar 14 06:23:43 EDT 2007


Author: saraj
Date: Wed Mar 14 04:23:37 2007
New Revision: 10431

Log:
fix for i18n issue - Notification email - Stock Level is Low. Fixes #3046

Modified:
    vtigercrm/branches/5.0.3/modules/Products/Save.php
    vtigercrm/branches/5.0.3/modules/Products/language/en_us.lang.php

Modified: vtigercrm/branches/5.0.3/modules/Products/Save.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Products/Save.php (original)
+++ vtigercrm/branches/5.0.3/modules/Products/Save.php Wed Mar 14 04:23:37 2007
@@ -24,7 +24,7 @@
 require_once('modules/Products/Products.php');
 require_once('include/logging.php');
 require_once('include/database/PearDatabase.php');
-global $log,$current_user;
+global $log,$current_user,$mod_strings;
 $currencyid=fetchCurrency($current_user->id);
 $rate_symbol = getCurrencySymbolandCRate($currencyid);
 $rate = $rate_symbol['rate'];
@@ -139,14 +139,14 @@
 			$handler_name = getUserName($handler);
 			$sender_name = getUserName($current_user->id);
 			$to_address= getUserEmail($handler);
-			$subject =  $productname.' Stock Level is Low';
-			$body = 'Dear '.$handler_name.',
+			$subject =  $productname.' '.$mod_strings['MSG_STOCK_LEVEL'];
+			$body = $mod_strings['MSG_DEAR'].' '.$handler_name.',<br><br>'.
 
-					The current stock of '.$productname.' in our warehouse is '.$qty_stk.'. Kindly procure required number of units as the stock level is below reorder level '.$reord.'.
+					$mod_strings['MSG_CURRENT_STOCK'].' '.$productname.' '.$mod_strings['MSG_IN_OUR_WAREHOUSE'].' '.$qty_stk.'. '.$mod_strings['MSG_PROCURE_REQUIRED_NUMBER'].' '.$reord.'.<br> '.
 
-					Severity: Major 
-				Thanks,
-				'.$sender_name; 
+					$mod_strings['MSG_SEVERITY'].'<br><br> '.
+				$mod_strings['MSG_THANKS'].'<br> '.
+				$sender_name;
 
 			include("modules/Emails/mail.php");
 			$mail_status = send_mail("Products",$to_address,$current_user->user_name,$current_user->email1,$subject,$body);

Modified: vtigercrm/branches/5.0.3/modules/Products/language/en_us.lang.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Products/language/en_us.lang.php (original)
+++ vtigercrm/branches/5.0.3/modules/Products/language/en_us.lang.php Wed Mar 14 04:23:37 2007
@@ -209,6 +209,15 @@
 'Spiral Binder'=>'Spiral Binder',
 'Sq Ft'=>'Sq Ft',
 
+//Added for 5.0.3
+'MSG_STOCK_LEVEL'=>'Stock Level is Low',
+'MSG_DEAR'=>'Dear',
+'MSG_CURRENT_STOCK'=>'The current stock of',
+'MSG_IN_OUR_WAREHOUSE'=>'in our warehouse is',
+'MSG_PROCURE_REQUIRED_NUMBER'=>'Kindly procure required number of units as the stock level is below reorder level',
+'MSG_SEVERITY'=>'Severity: Major',
+'MSG_THANKS'=>'Thanks,',
+
 );
 
 ?>





More information about the vtigercrm-commits mailing list