瀏覽代碼

! If possible, use the right language when we get to PayPal.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 年之前
父節點
當前提交
bc88a93e8f
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 3 0
      Sources/Subscriptions-PayPal.php
  2. 4 1
      Themes/default/languages/ManagePaid.english.php

+ 3 - 0
Sources/Subscriptions-PayPal.php

@@ -99,6 +99,9 @@ class paypal_display
 		$return_data['hidden']['src'] = 1;
 		$return_data['hidden']['notify_url'] = $boardurl . '/subscriptions.php';
 
+		// If possible let's use the language we know we need.
+		$return_data['hidden']['lc'] = !empty($txt['lang_paypal']) ? $txt['lang_paypal'] : 'US';
+
 		// Now stuff dependant on what we're doing.
 		if ($sub_data['flexible'])
 		{

+ 4 - 1
Themes/default/languages/ManagePaid.english.php

@@ -3,6 +3,9 @@
 
 global $boardurl;
 
+// Some payment gateways need language specific information.
+$txt['lang_paypal'] = 'US';
+
 // Symbols.
 $txt['usd_symbol'] = '$%1.2f';
 $txt['eur_symbol'] = '&euro;%1.2f';
@@ -205,4 +208,4 @@ $txt['pending_payments_value'] = 'Value';
 $txt['pending_payments_accept'] = 'Accept';
 $txt['pending_payments_remove'] = 'Remove';
 
-?>
+?>