Index: pro-violet-viettel/sourcecode/application/modules/services/controllers/recharge.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/services/controllers/recharge.php	(revision 633)
+++ pro-violet-viettel/sourcecode/application/modules/services/controllers/recharge.php	(revision 636)
@@ -9,4 +9,6 @@
 		$this->load->helper('lockfile');
 		$this->load->model('services_model');
+		$this->load->helper('language');
+		$this->lang->load('messages', 'message');
 	}
 	
@@ -33,6 +35,9 @@
 		$result['tmp'] = $maxReach;
 		
-		$lockedMsg = 'QuÃœ vá» ÄÃ£ nháº­p sai thÃŽng tin tháº» cÃ o '. $maxReach .' láº§n liÃªn tiáº¿p.<br />Xin chá» '. $timeToUnlock .' phÃºt sau Äá» thao tÃ¡c láº¡i!';
-		$chargErrMsg = 'MÃ£ tháº» hoáº·c Serial khÃŽng ÄÃºng hoáº·c ÄÃ£ ÄÆ°á»£c sá»­ dá»¥ng. QuÃœ vá» vui lÃ²ng kiá»m tra láº¡i!';
+		//$lockedMsg = 'QuÃœ vá» ÄÃ£ nháº­p sai thÃŽng tin tháº» cÃ o '. $maxReach .' láº§n liÃªn tiáº¿p.<br />Xin chá» '. $timeToUnlock .' phÃºt sau Äá» thao tÃ¡c láº¡i!';
+		$aryPatterns = array('/:maxReach:/', '/:timeToUnlock:/');
+		$lockedMsg = preg_replace($aryPatterns, array($maxReach, $timeToUnlock), lang('_SBG_CHARGING_FROM_CARD_LOCKED_MSG'));
+		//$chargErrMsg = 'MÃ£ tháº» hoáº·c Serial khÃŽng ÄÃºng hoáº·c ÄÃ£ ÄÆ°á»£c sá»­ dá»¥ng. QuÃœ vá» vui lÃ²ng kiá»m tra láº¡i!';
+		$chargErrMsg = lang('_SBG_CHARGING_FROM_CARD_FAIL_MSG');
 		$errMsg = '';
 		
@@ -59,7 +64,9 @@
 			
 			if ($chargCard == _SBG_CARD_PAY_SUCCESS){
-				$result['username'] = $user['cellphone'];
+				//$result['username'] = $user['cellphone'];
 				$result['acc_balanced'] = $user['acc_balanced'];
-				$result['amount'] = $amount;
+				//$result['amount'] = $amount;
+				$aryPatterns = array('/:amount:/', '/:username:/', '/:acc_balanced:/');
+				$result['message'] = preg_replace($aryPatterns, array($amount, $user['cellphone'], $user['acc_balanced']), lang('_SBG_CHARGING_FROM_CARD_SUCCESS_MSG'));
 				$this->objUserModel->insertPaidlog($user['cellphone'], $user['cellphone'], $paidType, $amount, $paidTime);
 				releaseLockFile($lockFilePreFix, $lockFilePath);
Index: pro-violet-viettel/sourcecode/application/modules/services/models/services_model.php
===================================================================
--- pro-violet-viettel/sourcecode/application/modules/services/models/services_model.php	(revision 633)
+++ pro-violet-viettel/sourcecode/application/modules/services/models/services_model.php	(revision 636)
@@ -43,4 +43,6 @@
 if ( ! defined('_SBG_SERVICE_COMMAND_CODE')) define('_SBG_SERVICE_COMMAND_CODE', 'SBG');
 if ( ! defined('_SBG_SERVICE_SERVICEID')) define('_SBG_SERVICE_SERVICEID', '8062');
+
+if ( ! defined('_SBG_MO_PROCCESS_ERR')) define('_SBG_MO_PROCCESS_ERR', 0);
 
 Class Services_model extends CI_Model 
@@ -62,4 +64,6 @@
 	public function __construct(){
 		parent::__construct();
+		$this->load->helper('language');
+		$this->lang->load('messages', 'message');
 	}
 	
@@ -147,5 +151,5 @@
 				if ($case == _SBG_MO_REGISTER_FOR) {
 					if (!preg_match('/^([0-9]{10,11}$)$/', $aryContents[2])) {
-						$smsReturn = '0|So dien thoai khach hang khong hop le. Vui long kiem tra lai.';
+						$smsReturn = _SBG_MO_PROCCESS_ERR.'|'.lang('_SBG_MO_PHONENUM_WRONG_FORMAT_MSG');
 						break;
 					}
@@ -169,5 +173,5 @@
 			case _SBG_MO_PHONENUM_CHANGE:
 				if (!preg_match('/^(09\d{8}|01\d{9})$/', $aryContents[2])) {
-					$smsReturn = '0|So dien thoai khach hang khong hop le. Vui long kiem tra lai.';
+					$smsReturn = _SBG_MO_PROCCESS_ERR.'|'.lang('_SBG_MO_PHONENUM_WRONG_FORMAT_MSG');
 					break;
 				}
@@ -180,5 +184,7 @@
 				$changeResult = (int)$arySMS[0];
 				
-				$sms = 'Ban da doi thanh cong so dien thoai tren SBG Online sang so dien thoai ' .$sentNumber. '. Tran trong.';
+				//$sms = 'Ban da doi thanh cong so dien thoai tren SBG Online sang so dien thoai ' .$sentNumber. '. Tran trong.';
+				$aryPatterns = array('/:sentNumber:/');
+				$sms = preg_replace($aryPatterns, array($sentNumber), lang('_SBG_MO_USER_OLD_PHONENUM_CHANGE_SUCCESS_MSG'));
 				$sendMT = $changeResult == 1 ? $this->sendMT($this->formatPhoneNumber($oldPhoneNumber, -1), $sms) : '';
 				break;
@@ -199,5 +205,5 @@
 				
 				if ($case == _SBG_MO_PAY_TO_ACCOUNT_FOR && !preg_match('/^(09\d{8}|01\d{9})$/', $userName)) {
-					$smsReturn = '0|So dien thoai khach hang khong hop le. Vui long kiem tra lai.';
+					$smsReturn = _SBG_MO_PROCCESS_ERR.'|'.lang('_SBG_MO_PHONENUM_WRONG_FORMAT_MSG');
 					break;
 				}
@@ -205,5 +211,5 @@
 				$amount = $aryContents[2];
 				if (!preg_match('/^[0-9]{3,}$/', $amount)) {
-					$smsReturn = '0|So tien nap khong hop le. Vui long kiem tra lai.';
+					$smsReturn = _SBG_MO_PROCCESS_ERR.'|'.lang('_SBG_MO_AMOUNT_WRONG_FORMAT_MSG');
 					break;
 				}
@@ -215,5 +221,7 @@
 					if ($case == _SBG_MO_PAY_TO_ACCOUNT_FOR) {
 						$arySmsReturn = explode ('|', $smsReturn);
-						$smsMT = 'Ban da nap thanh cong ' .$amount . 'VND vao tai khoan ' .$username. ' tren SBG Online tu thue bao ' .$sentNumber. '. Tran trong.';
+						//$smsMT = 'Ban da nap thanh cong ' .$amount . 'VND vao tai khoan ' .$username. ' tren SBG Online tu thue bao ' .$sentNumber. '. Tran trong.';
+						$aryPatterns = array('/:amount:/', '/:username:/', '/:sentNumber:/');
+						$smsMT = preg_replace($aryPatterns, array($amount, $username, $sentNumber), lang('_SBG_MO_PAY_TO_ACCOUNT_FOR_MSG'));
 						$sendMT = $this->sendMT($this->formatPhoneNumber($userName, -1), $smsMT);
 					}
@@ -226,16 +234,18 @@
 					//$smsReturn = preg_replace($aryPatterns, array($sentNumber, $amount, $userName), _SBG_CHARGING_FAIL_NOT_ENOUGH_MSG);
 					$aryPatterns = array ('/:amount:/', '/:username:/');
-					$smsReturn = preg_replace($aryPatterns, array($amount, $userName), _SBG_CHARGING_FAIL_NOT_ENOUGH_MSG);
-					$smsReturn = '0|'.$smsReturn;
+					//$smsReturn = preg_replace($aryPatterns, array($amount, $userName), _SBG_CHARGING_FAIL_NOT_ENOUGH_MSG);
+					$smsReturn = preg_replace($aryPatterns, array($amount, $userName), lang('_SBG_MO_CHARGING_FAIL_NOT_ENOUGH_MSG'));
+					$smsReturn = _SBG_MO_PROCCESS_ERR.'|'.$smsReturn;
 				}
 				else if ($result == _SBG_CHARGING_FAIL_MORETHAN_LIMIT) {
 					$aryPatterns = array ('/:sendid:/');
-					$smsReturn = preg_replace($aryPatterns, array($sentNumber), _SBG_CHARGING_FAIL_MORETHAN_LIMIT_MSG);
-					$smsReturn = '0|'.$smsReturn;
+					//$smsReturn = preg_replace($aryPatterns, array($sentNumber), _SBG_CHARGING_FAIL_MORETHAN_LIMIT_MSG);
+					$smsReturn = preg_replace($aryPatterns, array($sentNumber), lang('_SBG_MO_CHARGING_FAIL_MORETHAN_LIMIT_MSG'));
+					$smsReturn = _SBG_MO_PROCCESS_ERR.'|'.$smsReturn;
 				}else if ($result == _SBG_CHARGING_FAIL_NOT_VIETTEL || $result == _SBG_CHARGING_NUMBER_NOT_EXISTED || $result == _SBG_CHARGING_NUMBER_NOT_AVAILABLE) {
-					$smsReturn = '0|'._SBG_CHARGING_FAIL_NOT_VIETTEL_MSG;
+					$smsReturn = _SBG_MO_PROCCESS_ERR.'|'.lang('_SBG_MO_CHARGING_FAIL_NOT_VIETTEL_MSG');
 				}				
 				else {
-					$smsReturn = '0|Loi, khong thanh toan duoc tu tai khoan goc';
+					$smsReturn = _SBG_MO_PROCCESS_ERR.'|'.lang('_SBG_MO_CHARGING_FAIL_MSG');
 				}
 				break;
@@ -243,5 +253,5 @@
 			case _SBG_MO_SYNTAX_ERR:
 			default:
-				$smsReturn = '0|'._SBG_MO_SYNTAX_ERR_MSG;
+				$smsReturn = _SBG_MO_PROCCESS_ERR.'|'.lang('_SBG_MO_SYNTAX_ERR_MSG');
 				break;
 		}
