From 597ed4b5bc777af9e3aaf1ccad91d2c8656ad01c Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Tue, 18 Jan 2011 14:41:38 +0000 Subject: better localized payment button (wobo) --- paypal.inc.php | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/paypal.inc.php b/paypal.inc.php index ac7a97d1c..fd5a77f39 100644 --- a/paypal.inc.php +++ b/paypal.inc.php @@ -6,14 +6,29 @@ */ function html_paypal_form($lang = 'en') { - + $buttons = array( + 'en' => 'en_US', + 'fr' => 'fr_FR', + 'es' => 'es_ES', + 'de' => 'de_DE', + 'it' => 'it_IT', + 'nl' => 'nl_NL', + 'pl' => 'pl_PL', + 'zh' => 'zh_CN', + 'zh_cn' => 'zh_CN' + ); + if (!array_key_exists($lang, $buttons)) + $lang = 'en'; + + $btnLoc = $buttons[$lang]; + $html = <<

- - + +

H; -- cgit v1.2.1