Version Description
Download this release
Release Info
Developer | artstorm |
Plugin | PayPal Donations |
Version | 1.6 |
Comparing to | |
See all releases |
Code changes from version 1.5 to 1.6
- classes/settings.php +26 -2
- languages/paypal-donations-ro_RO.mo +0 -0
- languages/paypal-donations-ro_RO.po +166 -0
- languages/paypal-donations-sv_SE.mo +0 -0
- languages/paypal-donations-sv_SE.po +70 -45
- languages/paypal-donations.pot +63 -55
- paypal-donations.php +84 -58
- readme.txt +7 -3
classes/settings.php
CHANGED
@@ -15,13 +15,15 @@ class Paypal_Donations_Settings
|
|
15 |
private $currency_codes;
|
16 |
private $donate_buttons;
|
17 |
private $localized_buttons;
|
|
|
18 |
|
19 |
-
public function set_options( $options, $code, $buttons, $loc_buttons )
|
20 |
{
|
21 |
$this->plugin_options = $options;
|
22 |
$this->currency_codes = $code;
|
23 |
$this->donate_buttons = $buttons;
|
24 |
$this->localized_buttons = $loc_buttons;
|
|
|
25 |
}
|
26 |
|
27 |
public function render()
|
@@ -131,13 +133,35 @@ class Paypal_Donations_Settings
|
|
131 |
__('Disable PayPal Statistics', 'paypal-donations'),
|
132 |
'disable_stats',
|
133 |
$pd_options['disable_stats']);
|
|
|
134 |
|
135 |
$this->checkbox(
|
136 |
__('Theme CSS Override: Center Button', 'paypal-donations'),
|
137 |
'center_button',
|
138 |
$pd_options['center_button']);
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
?>
|
140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
<p class="submit">
|
142 |
<input type="submit" name="Submit" class="button-primary" value="<?php _e( 'Save Changes', 'paypal-donations' ) ?>" />
|
143 |
</p>
|
@@ -165,7 +189,7 @@ class Paypal_Donations_Settings
|
|
165 |
if ($checked)
|
166 |
echo ' checked';
|
167 |
echo ' />';
|
168 |
-
echo ' '.$label
|
169 |
}
|
170 |
|
171 |
}
|
15 |
private $currency_codes;
|
16 |
private $donate_buttons;
|
17 |
private $localized_buttons;
|
18 |
+
private $checkout_languages;
|
19 |
|
20 |
+
public function set_options( $options, $code, $buttons, $loc_buttons, $checkout_lng )
|
21 |
{
|
22 |
$this->plugin_options = $options;
|
23 |
$this->currency_codes = $code;
|
24 |
$this->donate_buttons = $buttons;
|
25 |
$this->localized_buttons = $loc_buttons;
|
26 |
+
$this->checkout_languages = $checkout_lng;
|
27 |
}
|
28 |
|
29 |
public function render()
|
133 |
__('Disable PayPal Statistics', 'paypal-donations'),
|
134 |
'disable_stats',
|
135 |
$pd_options['disable_stats']);
|
136 |
+
echo '<br/>';
|
137 |
|
138 |
$this->checkbox(
|
139 |
__('Theme CSS Override: Center Button', 'paypal-donations'),
|
140 |
'center_button',
|
141 |
$pd_options['center_button']);
|
142 |
+
echo '<br/>';
|
143 |
+
|
144 |
+
$this->checkbox(
|
145 |
+
__('Set Checkout Language:', 'paypal-donations'),
|
146 |
+
'set_checkout_language',
|
147 |
+
isset($pd_options['set_checkout_language']) ? $pd_options['set_checkout_language'] : false);
|
148 |
?>
|
149 |
|
150 |
+
<?php
|
151 |
+
if (isset($pd_options['checkout_language'])) { $checkout_language = $pd_options['checkout_language']; } else { $checkout_language = ''; }
|
152 |
+
?>
|
153 |
+
<select name="checkout_language" id="checkout_language">
|
154 |
+
<option value="">None</option>
|
155 |
+
<?php
|
156 |
+
foreach ( $this->checkout_languages as $key => $language ) {
|
157 |
+
echo '<option value="'.$key.'"';
|
158 |
+
if ($checkout_language == $key) { echo ' selected="selected"'; }
|
159 |
+
echo '>'.$language.'</option>';
|
160 |
+
}?>
|
161 |
+
</select>
|
162 |
+
<br/>
|
163 |
+
|
164 |
+
|
165 |
<p class="submit">
|
166 |
<input type="submit" name="Submit" class="button-primary" value="<?php _e( 'Save Changes', 'paypal-donations' ) ?>" />
|
167 |
</p>
|
189 |
if ($checked)
|
190 |
echo ' checked';
|
191 |
echo ' />';
|
192 |
+
echo ' '.$label;
|
193 |
}
|
194 |
|
195 |
}
|
languages/paypal-donations-ro_RO.mo
ADDED
Binary file
|
languages/paypal-donations-ro_RO.po
ADDED
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Translation of the WordPress plugin PayPal Donations 1.4.5 by Johan Steen.
|
2 |
+
# Copyright (C) 2010 Johan Steen
|
3 |
+
# This file is distributed under the same license as the PayPal Donations package.
|
4 |
+
# Traducción al español del plugin PayPal Donations - v.1.0 - 29/04/2010
|
5 |
+
# Autor: Neoshinji - <Neoshinji[at]gmail[dot]com>
|
6 |
+
# Website traducción: http://blog.tuayudainformatica.com/ - <helpdesk@tuayudainformatica.com>
|
7 |
+
#
|
8 |
+
msgid ""
|
9 |
+
msgstr ""
|
10 |
+
"Project-Id-Version: PayPal Donations 1.4.5\n"
|
11 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/paypal-donations\n"
|
12 |
+
"POT-Creation-Date: 2010-02-18 23:46+0000\n"
|
13 |
+
"PO-Revision-Date: 2012-02-16 18:19+0300\n"
|
14 |
+
"Last-Translator: Marko <mymakeit@gmail.com>\n"
|
15 |
+
"Language-Team: http://allsciencemag.com <marko.pozner@gmail.com>\n"
|
16 |
+
"MIME-Version: 1.0\n"
|
17 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
18 |
+
"Content-Transfer-Encoding: 8bit\n"
|
19 |
+
"X-Poedit-Language: Romanian\n"
|
20 |
+
"X-Poedit-Country: Romania\n"
|
21 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
22 |
+
|
23 |
+
#: paypal-donations.php:111
|
24 |
+
msgid "PayPal Donations requires WordPress version 2.7 or later!"
|
25 |
+
msgstr "Donaţii PayPal cere WordPress versiunea 2.7 sau mai tarziu!"
|
26 |
+
|
27 |
+
#: paypal-donations.php:223
|
28 |
+
msgid "The PayPal Donations settings have been updated."
|
29 |
+
msgstr "Setările PayPal Donatii au fost actualizate."
|
30 |
+
|
31 |
+
#: paypal-donations.php:234
|
32 |
+
msgid "PayPal Account"
|
33 |
+
msgstr "PayPal cont"
|
34 |
+
|
35 |
+
#: paypal-donations.php:235
|
36 |
+
msgid "Your PayPal email address or your PayPal secure merchant account ID."
|
37 |
+
msgstr "Adresa dvs. de e-mail PayPal sau PayPal sigur ID de cont de comerciant."
|
38 |
+
|
39 |
+
#: paypal-donations.php:238
|
40 |
+
msgid "Currency"
|
41 |
+
msgstr "Valută"
|
42 |
+
|
43 |
+
#: paypal-donations.php:246
|
44 |
+
msgid "The currency to use for the donations."
|
45 |
+
msgstr "Moneda de a utiliza pentru donaţii."
|
46 |
+
|
47 |
+
#: paypal-donations.php:250
|
48 |
+
msgid "Optional Settings"
|
49 |
+
msgstr "Setări opţionale"
|
50 |
+
|
51 |
+
#: paypal-donations.php:253
|
52 |
+
msgid "Page Style"
|
53 |
+
msgstr "Stil pagina"
|
54 |
+
|
55 |
+
#: paypal-donations.php:254
|
56 |
+
msgid "Specify the name of a custom payment page style from your PayPal account profile."
|
57 |
+
msgstr "Specificaţi numele unui stil personalizat pagina de plata de la profilul dvs. de cont PayPal."
|
58 |
+
|
59 |
+
#: paypal-donations.php:257
|
60 |
+
msgid "Return Page"
|
61 |
+
msgstr "Înapoi Pagina"
|
62 |
+
|
63 |
+
#: paypal-donations.php:258
|
64 |
+
msgid "URL to which the donator comes to after completing the donation; for example, a URL on your site that displays a \"Thank you for your donation\"."
|
65 |
+
msgstr "URL-ul care vine la donator după finalizarea donare, de exemplu, un URL pe site-ul dvs, care afişează un \"Va multumim pentru donatia ta\"."
|
66 |
+
|
67 |
+
#: paypal-donations.php:262
|
68 |
+
msgid "Defaults"
|
69 |
+
msgstr "Defaults"
|
70 |
+
|
71 |
+
#: paypal-donations.php:265
|
72 |
+
msgid "Amount"
|
73 |
+
msgstr "Sumă"
|
74 |
+
|
75 |
+
#: paypal-donations.php:266
|
76 |
+
msgid "The default amount for a donation (Optional)."
|
77 |
+
msgstr "Valoarea implicită pentru o donaţie (opţional)."
|
78 |
+
|
79 |
+
#: paypal-donations.php:269
|
80 |
+
msgid "Purpose"
|
81 |
+
msgstr "Scop"
|
82 |
+
|
83 |
+
#: paypal-donations.php:270
|
84 |
+
msgid "The default purpose of a donation (Optional)."
|
85 |
+
msgstr "Scopul implicit al unei donaţii (opţional)."
|
86 |
+
|
87 |
+
#: paypal-donations.php:273
|
88 |
+
msgid "Reference"
|
89 |
+
msgstr "Referinţă"
|
90 |
+
|
91 |
+
#: paypal-donations.php:274
|
92 |
+
msgid "Default reference for the donation (Optional)."
|
93 |
+
msgstr "De referinţă implicit pentru donare (opţional)."
|
94 |
+
|
95 |
+
#: paypal-donations.php:278
|
96 |
+
msgid "Donation Button"
|
97 |
+
msgstr "Donaţie buton"
|
98 |
+
|
99 |
+
#: paypal-donations.php:281
|
100 |
+
msgid "Select Button"
|
101 |
+
msgstr "Butonul de selectare"
|
102 |
+
|
103 |
+
#: paypal-donations.php:299
|
104 |
+
msgid "Custom Button:"
|
105 |
+
msgstr "Personalizat buton:"
|
106 |
+
|
107 |
+
#: paypal-donations.php:302
|
108 |
+
msgid "Enter a URL to a custom donation button."
|
109 |
+
msgstr "Introduceţi un URL de la un buton de donatie particularizat."
|
110 |
+
|
111 |
+
#: paypal-donations.php:307
|
112 |
+
msgid "Country and Language"
|
113 |
+
msgstr "Ţara şi limba"
|
114 |
+
|
115 |
+
#: paypal-donations.php:314
|
116 |
+
msgid "Localize the language and the country for the button (Updated after saving the settings)."
|
117 |
+
msgstr "Localiza limba şi ţara pentru butonul (Actualizat după salvarea setărilor)."
|
118 |
+
|
119 |
+
#: paypal-donations.php:319
|
120 |
+
msgid "Save Changes"
|
121 |
+
msgstr "Salvaţi Modificările"
|
122 |
+
|
123 |
+
#: paypal-donations.php:339
|
124 |
+
msgid "PayPal Donation Button"
|
125 |
+
msgstr "Donatie PayPal Button"
|
126 |
+
|
127 |
+
#: paypal-donations.php:392
|
128 |
+
msgid "Donate"
|
129 |
+
msgstr "Dona"
|
130 |
+
|
131 |
+
#: paypal-donations.php:396
|
132 |
+
msgid "Title:"
|
133 |
+
msgstr "Titlu:"
|
134 |
+
|
135 |
+
#: paypal-donations.php:402
|
136 |
+
msgid "Text:"
|
137 |
+
msgstr "Text:"
|
138 |
+
|
139 |
+
#: paypal-donations.php:408
|
140 |
+
msgid "Purpose:"
|
141 |
+
msgstr "Scop:"
|
142 |
+
|
143 |
+
#: paypal-donations.php:414
|
144 |
+
msgid "Reference:"
|
145 |
+
msgstr "De referinţă:"
|
146 |
+
|
147 |
+
#. Plugin Name of an extension
|
148 |
+
msgid "PayPal Donations"
|
149 |
+
msgstr "Paypal Donations"
|
150 |
+
|
151 |
+
#. Plugin URI of an extension
|
152 |
+
msgid "http://coding.cglounge.com/wordpress-plugins/paypal-donations/"
|
153 |
+
msgstr "http://coding.cglounge.com/wordpress-plugins/paypal-donations/"
|
154 |
+
|
155 |
+
#. Description of an extension
|
156 |
+
msgid "Easy and simple setup and insertion of PayPal donate buttons with a shortcode or through a sidebar Widget. Donation purpose can be set for each button. A few other customization options are available as well."
|
157 |
+
msgstr "Configurare simplă şi rapidă şi inserarea de butoane PayPal doneaza cu o scurtătură sau prin intermediul unui widget sidebar. Scopul donaţie poate fi setat pentru fiecare buton. Şi alte câteva opţiuni de personalizare sunt de asemenea disponibile."
|
158 |
+
|
159 |
+
#. Author of an extension
|
160 |
+
msgid "Johan Steen"
|
161 |
+
msgstr "Johan Steen"
|
162 |
+
|
163 |
+
#. Author URI of an extension
|
164 |
+
msgid "http://coding.cglounge.com/"
|
165 |
+
msgstr "http://coding.cglounge.com/"
|
166 |
+
|
languages/paypal-donations-sv_SE.mo
CHANGED
Binary file
|
languages/paypal-donations-sv_SE.po
CHANGED
@@ -2,7 +2,7 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: PayPal Donations\n"
|
4 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/paypal-donations\n"
|
5 |
-
"POT-Creation-Date:
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Johan Steen <artstorm@gmail.com>\n"
|
8 |
"Language-Team: <artstorm@gmail.com>\n"
|
@@ -12,139 +12,164 @@ msgstr ""
|
|
12 |
"X-Poedit-Language: Swedish\n"
|
13 |
"X-Poedit-Country: SWEDEN\n"
|
14 |
|
15 |
-
#:
|
16 |
-
msgid "PayPal Donations requires WordPress version 2.7 or later!"
|
17 |
-
msgstr "PayPal Donations kräver WordPress version 2.7 eller nyare!"
|
18 |
-
|
19 |
-
#: paypal-donations.php:201
|
20 |
-
msgid "The PayPal Donations settings have been updated."
|
21 |
-
msgstr "PayPal Donation inställningarna har uppdaterats."
|
22 |
-
|
23 |
-
#: paypal-donations.php:212
|
24 |
msgid "PayPal Account"
|
25 |
msgstr "PayPal Konto"
|
26 |
|
27 |
-
#:
|
28 |
msgid "Your PayPal email address or your PayPal secure merchant account ID."
|
29 |
msgstr "Din PayPal epost adress eller ditt PayPal secure merchant konto ID."
|
30 |
|
31 |
-
#:
|
32 |
msgid "Currency"
|
33 |
msgstr "Valuta"
|
34 |
|
35 |
-
#:
|
36 |
msgid "The currency to use for the donations."
|
37 |
msgstr "Valutan som doneringarna ska ges i."
|
38 |
|
39 |
-
#:
|
40 |
msgid "Optional Settings"
|
41 |
msgstr "Valfria inställningar"
|
42 |
|
43 |
-
#:
|
44 |
msgid "Page Style"
|
45 |
msgstr "Sido Stil"
|
46 |
|
47 |
-
#:
|
48 |
msgid "Specify the name of a custom payment page style from your PayPal account profile."
|
49 |
msgstr "Ange namnet av en egen sidostil för betalningar i din PayPal konto profil."
|
50 |
|
51 |
-
#:
|
52 |
msgid "Return Page"
|
53 |
msgstr "Återvändings Sida"
|
54 |
|
55 |
-
#:
|
56 |
msgid "URL to which the donator comes to after completing the donation; for example, a URL on your site that displays a \"Thank you for your donation\"."
|
57 |
msgstr "URL som den som har donerat kommer till efter att ha fullföljt donationen; till exempel, en URL på din sajt som visar ett \"Tack för din donation\"."
|
58 |
|
59 |
-
#:
|
60 |
msgid "Defaults"
|
61 |
msgstr "Förval"
|
62 |
|
63 |
-
#:
|
64 |
msgid "Amount"
|
65 |
msgstr "Summa"
|
66 |
|
67 |
-
#:
|
68 |
msgid "The default amount for a donation (Optional)."
|
69 |
msgstr "Den förvalda summan för en donation (Valfri)."
|
70 |
|
71 |
-
#:
|
72 |
msgid "Purpose"
|
73 |
msgstr "Syfte"
|
74 |
|
75 |
-
#:
|
76 |
msgid "The default purpose of a donation (Optional)."
|
77 |
msgstr "Det förvalda syftet för en donering (Valfri)."
|
78 |
|
79 |
-
#:
|
80 |
msgid "Reference"
|
81 |
msgstr "Referens"
|
82 |
|
83 |
-
#:
|
84 |
msgid "Default reference for the donation (Optional)."
|
85 |
msgstr "Den förvalda referensen för en donering (Valfri)."
|
86 |
|
87 |
-
#:
|
88 |
msgid "Donation Button"
|
89 |
msgstr "Donerings Knapp"
|
90 |
|
91 |
-
#:
|
92 |
msgid "Select Button"
|
93 |
msgstr "Välj Knapp"
|
94 |
|
95 |
-
#:
|
96 |
msgid "Custom Button:"
|
97 |
msgstr "Egen Knapp:"
|
98 |
|
99 |
-
#:
|
100 |
msgid "Enter a URL to a custom donation button."
|
101 |
msgstr "Ange en URL till en egen donerings knapp."
|
102 |
|
103 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
msgid "Save Changes"
|
105 |
msgstr "Spara Ändringar"
|
106 |
|
107 |
-
#: paypal-donations.php:
|
|
|
|
|
|
|
|
|
108 |
msgid "PayPal Donation Button"
|
109 |
msgstr "PayPal Donerings Knapp"
|
110 |
|
111 |
-
#: paypal-donations.php:
|
112 |
msgid "Donate"
|
113 |
msgstr "Donera"
|
114 |
|
115 |
-
#: paypal-donations.php:
|
116 |
msgid "Title:"
|
117 |
msgstr "Titel:"
|
118 |
|
119 |
-
#: paypal-donations.php:
|
120 |
msgid "Text:"
|
121 |
msgstr "Text:"
|
122 |
|
123 |
-
#: paypal-donations.php:
|
124 |
msgid "Purpose:"
|
125 |
msgstr "Syfte:"
|
126 |
|
127 |
-
#: paypal-donations.php:
|
128 |
msgid "Reference:"
|
129 |
msgstr "Referens:"
|
130 |
|
131 |
-
#. Plugin Name of
|
132 |
msgid "PayPal Donations"
|
133 |
msgstr "PayPal Donations"
|
134 |
|
135 |
-
#. Plugin URI of
|
136 |
-
msgid "http://
|
137 |
-
msgstr "http://
|
138 |
|
139 |
-
#. Description of
|
140 |
msgid "Easy and simple setup and insertion of PayPal donate buttons with a shortcode or through a sidebar Widget. Donation purpose can be set for each button. A few other customization options are available as well."
|
141 |
msgstr "Snabb och enkel installation och konfigurering av PayPal donerings knappar med en shortcode eller en Widget i sidopanelen. Syftet för doneringen kan defineras för varje knapp. Ett par andra inställningar är också tillgängliga."
|
142 |
|
143 |
-
#. Author of
|
144 |
msgid "Johan Steen"
|
145 |
msgstr "Johan Steen"
|
146 |
|
147 |
-
#. Author URI of
|
148 |
-
msgid "http://
|
149 |
-
msgstr "http://
|
|
|
|
|
|
|
150 |
|
|
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: PayPal Donations\n"
|
4 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/paypal-donations\n"
|
5 |
+
"POT-Creation-Date: 2012-03-13 19:45:48+00:00\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Johan Steen <artstorm@gmail.com>\n"
|
8 |
"Language-Team: <artstorm@gmail.com>\n"
|
12 |
"X-Poedit-Language: Swedish\n"
|
13 |
"X-Poedit-Country: SWEDEN\n"
|
14 |
|
15 |
+
#: classes/settings.php:42
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
msgid "PayPal Account"
|
17 |
msgstr "PayPal Konto"
|
18 |
|
19 |
+
#: classes/settings.php:43
|
20 |
msgid "Your PayPal email address or your PayPal secure merchant account ID."
|
21 |
msgstr "Din PayPal epost adress eller ditt PayPal secure merchant konto ID."
|
22 |
|
23 |
+
#: classes/settings.php:46
|
24 |
msgid "Currency"
|
25 |
msgstr "Valuta"
|
26 |
|
27 |
+
#: classes/settings.php:54
|
28 |
msgid "The currency to use for the donations."
|
29 |
msgstr "Valutan som doneringarna ska ges i."
|
30 |
|
31 |
+
#: classes/settings.php:58
|
32 |
msgid "Optional Settings"
|
33 |
msgstr "Valfria inställningar"
|
34 |
|
35 |
+
#: classes/settings.php:61
|
36 |
msgid "Page Style"
|
37 |
msgstr "Sido Stil"
|
38 |
|
39 |
+
#: classes/settings.php:62
|
40 |
msgid "Specify the name of a custom payment page style from your PayPal account profile."
|
41 |
msgstr "Ange namnet av en egen sidostil för betalningar i din PayPal konto profil."
|
42 |
|
43 |
+
#: classes/settings.php:65
|
44 |
msgid "Return Page"
|
45 |
msgstr "Återvändings Sida"
|
46 |
|
47 |
+
#: classes/settings.php:66
|
48 |
msgid "URL to which the donator comes to after completing the donation; for example, a URL on your site that displays a \"Thank you for your donation\"."
|
49 |
msgstr "URL som den som har donerat kommer till efter att ha fullföljt donationen; till exempel, en URL på din sajt som visar ett \"Tack för din donation\"."
|
50 |
|
51 |
+
#: classes/settings.php:70
|
52 |
msgid "Defaults"
|
53 |
msgstr "Förval"
|
54 |
|
55 |
+
#: classes/settings.php:73
|
56 |
msgid "Amount"
|
57 |
msgstr "Summa"
|
58 |
|
59 |
+
#: classes/settings.php:74
|
60 |
msgid "The default amount for a donation (Optional)."
|
61 |
msgstr "Den förvalda summan för en donation (Valfri)."
|
62 |
|
63 |
+
#: classes/settings.php:77
|
64 |
msgid "Purpose"
|
65 |
msgstr "Syfte"
|
66 |
|
67 |
+
#: classes/settings.php:78
|
68 |
msgid "The default purpose of a donation (Optional)."
|
69 |
msgstr "Det förvalda syftet för en donering (Valfri)."
|
70 |
|
71 |
+
#: classes/settings.php:81
|
72 |
msgid "Reference"
|
73 |
msgstr "Referens"
|
74 |
|
75 |
+
#: classes/settings.php:82
|
76 |
msgid "Default reference for the donation (Optional)."
|
77 |
msgstr "Den förvalda referensen för en donering (Valfri)."
|
78 |
|
79 |
+
#: classes/settings.php:86
|
80 |
msgid "Donation Button"
|
81 |
msgstr "Donerings Knapp"
|
82 |
|
83 |
+
#: classes/settings.php:89
|
84 |
msgid "Select Button"
|
85 |
msgstr "Välj Knapp"
|
86 |
|
87 |
+
#: classes/settings.php:107
|
88 |
msgid "Custom Button:"
|
89 |
msgstr "Egen Knapp:"
|
90 |
|
91 |
+
#: classes/settings.php:110
|
92 |
msgid "Enter a URL to a custom donation button."
|
93 |
msgstr "Ange en URL till en egen donerings knapp."
|
94 |
|
95 |
+
#: classes/settings.php:115
|
96 |
+
msgid "Country and Language"
|
97 |
+
msgstr "Land och Språk"
|
98 |
+
|
99 |
+
#: classes/settings.php:122
|
100 |
+
msgid "Localize the language and the country for the button (Updated after saving the settings)."
|
101 |
+
msgstr "Ställ in språk och land för knappen (Uppdateras efter inställningarna sparats)."
|
102 |
+
|
103 |
+
#: classes/settings.php:129
|
104 |
+
msgid "Extras"
|
105 |
+
msgstr "Extra"
|
106 |
+
|
107 |
+
#: classes/settings.php:133
|
108 |
+
msgid "Disable PayPal Statistics"
|
109 |
+
msgstr "Stäng av PayPals statistik insamling"
|
110 |
+
|
111 |
+
#: classes/settings.php:139
|
112 |
+
msgid "Theme CSS Override: Center Button"
|
113 |
+
msgstr "Lägg till CSS som överskrider temat: Centrera knappen"
|
114 |
+
|
115 |
+
#: classes/settings.php:145
|
116 |
+
msgid "Set Checkout Language:"
|
117 |
+
msgstr "Sätt språk för checkout"
|
118 |
+
|
119 |
+
#: classes/settings.php:166
|
120 |
msgid "Save Changes"
|
121 |
msgstr "Spara Ändringar"
|
122 |
|
123 |
+
#: paypal-donations.php:255
|
124 |
+
msgid "The PayPal Donations settings have been updated."
|
125 |
+
msgstr "PayPal Donation inställningarna har uppdaterats."
|
126 |
+
|
127 |
+
#: paypal-donations.php:283
|
128 |
msgid "PayPal Donation Button"
|
129 |
msgstr "PayPal Donerings Knapp"
|
130 |
|
131 |
+
#: paypal-donations.php:336
|
132 |
msgid "Donate"
|
133 |
msgstr "Donera"
|
134 |
|
135 |
+
#: paypal-donations.php:340
|
136 |
msgid "Title:"
|
137 |
msgstr "Titel:"
|
138 |
|
139 |
+
#: paypal-donations.php:346
|
140 |
msgid "Text:"
|
141 |
msgstr "Text:"
|
142 |
|
143 |
+
#: paypal-donations.php:352
|
144 |
msgid "Purpose:"
|
145 |
msgstr "Syfte:"
|
146 |
|
147 |
+
#: paypal-donations.php:358
|
148 |
msgid "Reference:"
|
149 |
msgstr "Referens:"
|
150 |
|
151 |
+
#. Plugin Name of the plugin/theme
|
152 |
msgid "PayPal Donations"
|
153 |
msgstr "PayPal Donations"
|
154 |
|
155 |
+
#. Plugin URI of the plugin/theme
|
156 |
+
msgid "http://wpstorm.net/wordpress-plugins/paypal-donations/"
|
157 |
+
msgstr "http://wpstorm.net/wordpress-plugins/paypal-donations/"
|
158 |
|
159 |
+
#. Description of the plugin/theme
|
160 |
msgid "Easy and simple setup and insertion of PayPal donate buttons with a shortcode or through a sidebar Widget. Donation purpose can be set for each button. A few other customization options are available as well."
|
161 |
msgstr "Snabb och enkel installation och konfigurering av PayPal donerings knappar med en shortcode eller en Widget i sidopanelen. Syftet för doneringen kan defineras för varje knapp. Ett par andra inställningar är också tillgängliga."
|
162 |
|
163 |
+
#. Author of the plugin/theme
|
164 |
msgid "Johan Steen"
|
165 |
msgstr "Johan Steen"
|
166 |
|
167 |
+
#. Author URI of the plugin/theme
|
168 |
+
msgid "http://johansteen.se/"
|
169 |
+
msgstr "http://johansteen.se/"
|
170 |
+
|
171 |
+
#~ msgid "PayPal Donations requires WordPress version 2.7 or later!"
|
172 |
+
#~ msgstr "PayPal Donations kräver WordPress version 2.7 eller nyare!"
|
173 |
|
174 |
+
#~ msgid "http://coding.cglounge.com/"
|
175 |
+
#~ msgstr "http://coding.cglounge.com/"
|
languages/paypal-donations.pot
CHANGED
@@ -1,170 +1,178 @@
|
|
1 |
-
#
|
2 |
-
# Copyright (C) 2010 Johan Steen
|
3 |
# This file is distributed under the same license as the PayPal Donations package.
|
4 |
-
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
5 |
-
#
|
6 |
-
#, fuzzy
|
7 |
msgid ""
|
8 |
msgstr ""
|
9 |
-
"Project-Id-Version: PayPal Donations 1.
|
10 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/paypal-donations\n"
|
11 |
-
"POT-Creation-Date:
|
12 |
-
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
13 |
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
"MIME-Version: 1.0\n"
|
16 |
-
"Content-Type: text/plain; charset=
|
17 |
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
|
|
|
18 |
|
19 |
-
#:
|
20 |
-
msgid "PayPal Donations requires WordPress version 2.7 or later!"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: paypal-donations.php:223
|
24 |
-
msgid "The PayPal Donations settings have been updated."
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: paypal-donations.php:234
|
28 |
msgid "PayPal Account"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#:
|
32 |
msgid "Your PayPal email address or your PayPal secure merchant account ID."
|
33 |
msgstr ""
|
34 |
|
35 |
-
#:
|
36 |
msgid "Currency"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#:
|
40 |
msgid "The currency to use for the donations."
|
41 |
msgstr ""
|
42 |
|
43 |
-
#:
|
44 |
msgid "Optional Settings"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#:
|
48 |
msgid "Page Style"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#:
|
52 |
msgid ""
|
53 |
"Specify the name of a custom payment page style from your PayPal account "
|
54 |
"profile."
|
55 |
msgstr ""
|
56 |
|
57 |
-
#:
|
58 |
msgid "Return Page"
|
59 |
msgstr ""
|
60 |
|
61 |
-
#:
|
62 |
msgid ""
|
63 |
"URL to which the donator comes to after completing the donation; for "
|
64 |
"example, a URL on your site that displays a \"Thank you for your donation\"."
|
65 |
msgstr ""
|
66 |
|
67 |
-
#:
|
68 |
msgid "Defaults"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#:
|
72 |
msgid "Amount"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#:
|
76 |
msgid "The default amount for a donation (Optional)."
|
77 |
msgstr ""
|
78 |
|
79 |
-
#:
|
80 |
msgid "Purpose"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#:
|
84 |
msgid "The default purpose of a donation (Optional)."
|
85 |
msgstr ""
|
86 |
|
87 |
-
#:
|
88 |
msgid "Reference"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#:
|
92 |
msgid "Default reference for the donation (Optional)."
|
93 |
msgstr ""
|
94 |
|
95 |
-
#:
|
96 |
msgid "Donation Button"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#:
|
100 |
msgid "Select Button"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#:
|
104 |
msgid "Custom Button:"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#:
|
108 |
msgid "Enter a URL to a custom donation button."
|
109 |
msgstr ""
|
110 |
|
111 |
-
#:
|
112 |
msgid "Country and Language"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#:
|
116 |
msgid ""
|
117 |
"Localize the language and the country for the button (Updated after saving "
|
118 |
"the settings)."
|
119 |
msgstr ""
|
120 |
|
121 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
msgid "Save Changes"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: paypal-donations.php:
|
|
|
|
|
|
|
|
|
126 |
msgid "PayPal Donation Button"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: paypal-donations.php:
|
130 |
msgid "Donate"
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: paypal-donations.php:
|
134 |
msgid "Title:"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: paypal-donations.php:
|
138 |
msgid "Text:"
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: paypal-donations.php:
|
142 |
msgid "Purpose:"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: paypal-donations.php:
|
146 |
msgid "Reference:"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#. Plugin Name of
|
150 |
msgid "PayPal Donations"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#. Plugin URI of
|
154 |
-
msgid "http://
|
155 |
msgstr ""
|
156 |
|
157 |
-
#. Description of
|
158 |
msgid ""
|
159 |
"Easy and simple setup and insertion of PayPal donate buttons with a "
|
160 |
"shortcode or through a sidebar Widget. Donation purpose can be set for each "
|
161 |
"button. A few other customization options are available as well."
|
162 |
msgstr ""
|
163 |
|
164 |
-
#. Author of
|
165 |
msgid "Johan Steen"
|
166 |
msgstr ""
|
167 |
|
168 |
-
#. Author URI of
|
169 |
-
msgid "http://
|
170 |
msgstr ""
|
1 |
+
# Copyright (C) 2012 PayPal Donations
|
|
|
2 |
# This file is distributed under the same license as the PayPal Donations package.
|
|
|
|
|
|
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: PayPal Donations 1.6\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/paypal-donations\n"
|
7 |
+
"POT-Creation-Date: 2012-03-13 19:45:48+00:00\n"
|
|
|
|
|
|
|
8 |
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2012-MO-DA HO:MI+ZONE\n"
|
12 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
+
#: classes/settings.php:42
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
msgid "PayPal Account"
|
17 |
msgstr ""
|
18 |
|
19 |
+
#: classes/settings.php:43
|
20 |
msgid "Your PayPal email address or your PayPal secure merchant account ID."
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: classes/settings.php:46
|
24 |
msgid "Currency"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: classes/settings.php:54
|
28 |
msgid "The currency to use for the donations."
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: classes/settings.php:58
|
32 |
msgid "Optional Settings"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: classes/settings.php:61
|
36 |
msgid "Page Style"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: classes/settings.php:62
|
40 |
msgid ""
|
41 |
"Specify the name of a custom payment page style from your PayPal account "
|
42 |
"profile."
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: classes/settings.php:65
|
46 |
msgid "Return Page"
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: classes/settings.php:66
|
50 |
msgid ""
|
51 |
"URL to which the donator comes to after completing the donation; for "
|
52 |
"example, a URL on your site that displays a \"Thank you for your donation\"."
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: classes/settings.php:70
|
56 |
msgid "Defaults"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: classes/settings.php:73
|
60 |
msgid "Amount"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: classes/settings.php:74
|
64 |
msgid "The default amount for a donation (Optional)."
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: classes/settings.php:77
|
68 |
msgid "Purpose"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: classes/settings.php:78
|
72 |
msgid "The default purpose of a donation (Optional)."
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: classes/settings.php:81
|
76 |
msgid "Reference"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: classes/settings.php:82
|
80 |
msgid "Default reference for the donation (Optional)."
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: classes/settings.php:86
|
84 |
msgid "Donation Button"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: classes/settings.php:89
|
88 |
msgid "Select Button"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: classes/settings.php:107
|
92 |
msgid "Custom Button:"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: classes/settings.php:110
|
96 |
msgid "Enter a URL to a custom donation button."
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: classes/settings.php:115
|
100 |
msgid "Country and Language"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: classes/settings.php:122
|
104 |
msgid ""
|
105 |
"Localize the language and the country for the button (Updated after saving "
|
106 |
"the settings)."
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: classes/settings.php:129
|
110 |
+
msgid "Extras"
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#: classes/settings.php:133
|
114 |
+
msgid "Disable PayPal Statistics"
|
115 |
+
msgstr ""
|
116 |
+
|
117 |
+
#: classes/settings.php:139
|
118 |
+
msgid "Theme CSS Override: Center Button"
|
119 |
+
msgstr ""
|
120 |
+
|
121 |
+
#: classes/settings.php:145
|
122 |
+
msgid "Set Checkout Language:"
|
123 |
+
msgstr ""
|
124 |
+
|
125 |
+
#: classes/settings.php:166
|
126 |
msgid "Save Changes"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: paypal-donations.php:255
|
130 |
+
msgid "The PayPal Donations settings have been updated."
|
131 |
+
msgstr ""
|
132 |
+
|
133 |
+
#: paypal-donations.php:283
|
134 |
msgid "PayPal Donation Button"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: paypal-donations.php:336
|
138 |
msgid "Donate"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: paypal-donations.php:340
|
142 |
msgid "Title:"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: paypal-donations.php:346
|
146 |
msgid "Text:"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: paypal-donations.php:352
|
150 |
msgid "Purpose:"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: paypal-donations.php:358
|
154 |
msgid "Reference:"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#. Plugin Name of the plugin/theme
|
158 |
msgid "PayPal Donations"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#. Plugin URI of the plugin/theme
|
162 |
+
msgid "http://wpstorm.net/wordpress-plugins/paypal-donations/"
|
163 |
msgstr ""
|
164 |
|
165 |
+
#. Description of the plugin/theme
|
166 |
msgid ""
|
167 |
"Easy and simple setup and insertion of PayPal donate buttons with a "
|
168 |
"shortcode or through a sidebar Widget. Donation purpose can be set for each "
|
169 |
"button. A few other customization options are available as well."
|
170 |
msgstr ""
|
171 |
|
172 |
+
#. Author of the plugin/theme
|
173 |
msgid "Johan Steen"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#. Author URI of the plugin/theme
|
177 |
+
msgid "http://johansteen.se/"
|
178 |
msgstr ""
|
paypal-donations.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: PayPal Donations
|
4 |
Plugin URI: http://wpstorm.net/wordpress-plugins/paypal-donations/
|
5 |
Description: Easy and simple setup and insertion of PayPal donate buttons with a shortcode or through a sidebar Widget. Donation purpose can be set for each button. A few other customization options are available as well.
|
6 |
-
Version: 1.
|
7 |
Author: Johan Steen
|
8 |
Author URI: http://johansteen.se/
|
9 |
Text Domain: paypal-donations
|
@@ -27,49 +27,74 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
27 |
|
28 |
class Paypal_Donations
|
29 |
{
|
|
|
|
|
|
|
30 |
var $plugin_options = 'paypal_donations_options';
|
31 |
-
var $donate_buttons = array(
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
public function __construct() {
|
75 |
// Define the domain for translations
|
@@ -159,7 +184,7 @@ class Paypal_Donations
|
|
159 |
if ($return_page)
|
160 |
$paypal_btn .= '<input type="hidden" name="return" value="' .$return_page. '" />'; // Return Page
|
161 |
if ($purpose)
|
162 |
-
$paypal_btn .= '<input type="hidden" name="item_name" value="' .$purpose. '" />'; // Purpose
|
163 |
if ($reference)
|
164 |
$paypal_btn .= '<input type="hidden" name="item_number" value="' .$reference. '" />'; // LightWave Plugin
|
165 |
if ($amount)
|
@@ -167,9 +192,11 @@ class Paypal_Donations
|
|
167 |
|
168 |
// More Settings
|
169 |
if (isset($pd_options['currency_code']))
|
170 |
-
$paypal_btn .=
|
171 |
if (isset($pd_options['button_localized']))
|
172 |
{ $button_localized = $pd_options['button_localized']; } else { $button_localized = 'en_US'; }
|
|
|
|
|
173 |
|
174 |
// Settings not implemented yet
|
175 |
// $paypal_btn .= '<input type="hidden" name="amount" value="20" />';
|
@@ -222,6 +249,8 @@ class Paypal_Donations
|
|
222 |
$pd_options['button_localized'] = trim( $_POST['button_localized'] );
|
223 |
$pd_options['disable_stats'] = isset($_POST['disable_stats']) ? true : false;
|
224 |
$pd_options['center_button'] = isset($_POST['center_button']) ? true : false;
|
|
|
|
|
225 |
update_option($this->plugin_options, $pd_options);
|
226 |
$this->admin_message( __( 'The PayPal Donations settings have been updated.', 'paypal-donations' ) );
|
227 |
}
|
@@ -229,7 +258,7 @@ class Paypal_Donations
|
|
229 |
|
230 |
// Render the settings screen
|
231 |
$settings = new Paypal_Donations_Settings();
|
232 |
-
$settings->set_options( get_option($this->plugin_options), $this->currency_codes, $this->donate_buttons, $this->localized_buttons);
|
233 |
$settings->render();
|
234 |
|
235 |
|
@@ -279,7 +308,7 @@ class paypal_donations_Widget extends WP_Widget {
|
|
279 |
echo $before_title . $title . $after_title;
|
280 |
if ( $text )
|
281 |
echo wpautop( $text );
|
282 |
-
echo
|
283 |
echo $after_widget;
|
284 |
}
|
285 |
|
@@ -403,6 +432,7 @@ class Paypal_Donations_Host_Environment
|
|
403 |
if (version_compare(PHP_VERSION, $this->MIN_PHP_VERSION, '<')) {
|
404 |
// Display notice
|
405 |
add_action( 'admin_notices', array(&$this, 'php_version_error') );
|
|
|
406 |
}
|
407 |
|
408 |
// Check if WordPress is too old
|
@@ -418,13 +448,10 @@ class Paypal_Donations_Host_Environment
|
|
418 |
*/
|
419 |
function php_version_error() {
|
420 |
echo '<div class="error"><p><strong>';
|
421 |
-
printf(
|
422 |
-
'Error
|
423 |
-
|
424 |
-
|
425 |
-
Your installed PHP version: %3$s',
|
426 |
-
'post-snippets'),
|
427 |
-
$this->PLUGIN_NAME, $this->MIN_PHP_VERSION, PHP_VERSION);
|
428 |
echo '</strong></p></div>';
|
429 |
}
|
430 |
|
@@ -433,10 +460,9 @@ class Paypal_Donations_Host_Environment
|
|
433 |
*/
|
434 |
function wp_version_error() {
|
435 |
echo '<div class="error"><p><strong>';
|
436 |
-
printf(
|
437 |
-
'Error:
|
438 |
-
|
439 |
-
$this->PLUGIN_NAME, $this->MIN_WP_VERSION );
|
440 |
echo '</strong></p></div>';
|
441 |
}
|
442 |
}
|
3 |
Plugin Name: PayPal Donations
|
4 |
Plugin URI: http://wpstorm.net/wordpress-plugins/paypal-donations/
|
5 |
Description: Easy and simple setup and insertion of PayPal donate buttons with a shortcode or through a sidebar Widget. Donation purpose can be set for each button. A few other customization options are available as well.
|
6 |
+
Version: 1.6
|
7 |
Author: Johan Steen
|
8 |
Author URI: http://johansteen.se/
|
9 |
Text Domain: paypal-donations
|
27 |
|
28 |
class Paypal_Donations
|
29 |
{
|
30 |
+
// -------------------------------------------------------------------------
|
31 |
+
// Define constant variables and data arrays
|
32 |
+
// -------------------------------------------------------------------------
|
33 |
var $plugin_options = 'paypal_donations_options';
|
34 |
+
var $donate_buttons = array(
|
35 |
+
'small' => 'https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif',
|
36 |
+
'large' => 'https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif',
|
37 |
+
'cards' => 'https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif'
|
38 |
+
);
|
39 |
+
var $currency_codes = array(
|
40 |
+
'AUD' => 'Australian Dollars (A $)',
|
41 |
+
'CAD' => 'Canadian Dollars (C $)',
|
42 |
+
'EUR' => 'Euros (€)',
|
43 |
+
'GBP' => 'Pounds Sterling (£)',
|
44 |
+
'JPY' => 'Yen (¥)',
|
45 |
+
'USD' => 'U.S. Dollars ($)',
|
46 |
+
'NZD' => 'New Zealand Dollar ($)',
|
47 |
+
'CHF' => 'Swiss Franc',
|
48 |
+
'HKD' => 'Hong Kong Dollar ($)',
|
49 |
+
'SGD' => 'Singapore Dollar ($)',
|
50 |
+
'SEK' => 'Swedish Krona',
|
51 |
+
'DKK' => 'Danish Krone',
|
52 |
+
'PLN' => 'Polish Zloty',
|
53 |
+
'NOK' => 'Norwegian Krone',
|
54 |
+
'HUF' => 'Hungarian Forint',
|
55 |
+
'CZK' => 'Czech Koruna',
|
56 |
+
'ILS' => 'Israeli Shekel',
|
57 |
+
'MXN' => 'Mexican Peso',
|
58 |
+
'BRL' => 'Brazilian Real',
|
59 |
+
'TWD' => 'Taiwan New Dollar',
|
60 |
+
'PHP' => 'Philippine Peso',
|
61 |
+
'TRY' => 'Turkish Lira',
|
62 |
+
'THB' => 'Thai Baht'
|
63 |
+
);
|
64 |
+
var $localized_buttons = array(
|
65 |
+
'en_AU' => 'Australia - Australian English',
|
66 |
+
'de_DE/AT' => 'Austria - German',
|
67 |
+
'nl_NL/BE' => 'Belgium - Dutch',
|
68 |
+
'fr_XC' => 'Canada - French',
|
69 |
+
'zh_XC' => 'China - Simplified Chinese',
|
70 |
+
'fr_FR/FR' => 'France - French',
|
71 |
+
'de_DE/DE' => 'Germany - German',
|
72 |
+
'it_IT/IT' => 'Italy - Italian',
|
73 |
+
'ja_JP/JP' => 'Japan - Japanese',
|
74 |
+
'es_XC' => 'Mexico - Spanish',
|
75 |
+
'nl_NL/NL' => 'Netherlands - Dutch',
|
76 |
+
'pl_PL/PL' => 'Poland - Polish',
|
77 |
+
'es_ES/ES' => 'Spain - Spanish',
|
78 |
+
'de_DE/CH' => 'Switzerland - German',
|
79 |
+
'fr_FR/CH' => 'Switzerland - French',
|
80 |
+
'en_US' => 'United States - U.S. English'
|
81 |
+
);
|
82 |
+
public $checkout_languages = array(
|
83 |
+
'AU' => 'Australia',
|
84 |
+
'AT' => 'Austria',
|
85 |
+
'BR' => 'Brazil',
|
86 |
+
'CA' => 'Canada',
|
87 |
+
'CN' => 'China',
|
88 |
+
'FR' => 'France',
|
89 |
+
'DE' => 'Germany',
|
90 |
+
'IT' => 'Italy',
|
91 |
+
'NL' => 'Netherlands',
|
92 |
+
'ES' => 'Spain',
|
93 |
+
'SE' => 'Sweden',
|
94 |
+
'GB' => 'United Kingdom',
|
95 |
+
'US' => 'United States',
|
96 |
+
);
|
97 |
+
|
98 |
|
99 |
public function __construct() {
|
100 |
// Define the domain for translations
|
184 |
if ($return_page)
|
185 |
$paypal_btn .= '<input type="hidden" name="return" value="' .$return_page. '" />'; // Return Page
|
186 |
if ($purpose)
|
187 |
+
$paypal_btn .= apply_filters('paypal_donations_purpose_html', '<input type="hidden" name="item_name" value="' .$purpose. '" />'); // Purpose
|
188 |
if ($reference)
|
189 |
$paypal_btn .= '<input type="hidden" name="item_number" value="' .$reference. '" />'; // LightWave Plugin
|
190 |
if ($amount)
|
192 |
|
193 |
// More Settings
|
194 |
if (isset($pd_options['currency_code']))
|
195 |
+
$paypal_btn .= '<input type="hidden" name="currency_code" value="' .$pd_options['currency_code']. '" />';
|
196 |
if (isset($pd_options['button_localized']))
|
197 |
{ $button_localized = $pd_options['button_localized']; } else { $button_localized = 'en_US'; }
|
198 |
+
if (isset($pd_options['set_checkout_language']) and $pd_options['set_checkout_language'] == true)
|
199 |
+
$paypal_btn .= '<input type="hidden" name="lc" value="' .$pd_options['checkout_language']. '" />';
|
200 |
|
201 |
// Settings not implemented yet
|
202 |
// $paypal_btn .= '<input type="hidden" name="amount" value="20" />';
|
249 |
$pd_options['button_localized'] = trim( $_POST['button_localized'] );
|
250 |
$pd_options['disable_stats'] = isset($_POST['disable_stats']) ? true : false;
|
251 |
$pd_options['center_button'] = isset($_POST['center_button']) ? true : false;
|
252 |
+
$pd_options['set_checkout_language'] = isset($_POST['set_checkout_language']) ? true : false;
|
253 |
+
$pd_options['checkout_language'] = trim( $_POST['checkout_language'] );
|
254 |
update_option($this->plugin_options, $pd_options);
|
255 |
$this->admin_message( __( 'The PayPal Donations settings have been updated.', 'paypal-donations' ) );
|
256 |
}
|
258 |
|
259 |
// Render the settings screen
|
260 |
$settings = new Paypal_Donations_Settings();
|
261 |
+
$settings->set_options( get_option($this->plugin_options), $this->currency_codes, $this->donate_buttons, $this->localized_buttons, $this->checkout_languages);
|
262 |
$settings->render();
|
263 |
|
264 |
|
308 |
echo $before_title . $title . $after_title;
|
309 |
if ( $text )
|
310 |
echo wpautop( $text );
|
311 |
+
echo $paypal_donations->generate_html( $purpose, $reference );
|
312 |
echo $after_widget;
|
313 |
}
|
314 |
|
432 |
if (version_compare(PHP_VERSION, $this->MIN_PHP_VERSION, '<')) {
|
433 |
// Display notice
|
434 |
add_action( 'admin_notices', array(&$this, 'php_version_error') );
|
435 |
+
$this->passed = false;
|
436 |
}
|
437 |
|
438 |
// Check if WordPress is too old
|
448 |
*/
|
449 |
function php_version_error() {
|
450 |
echo '<div class="error"><p><strong>';
|
451 |
+
printf(
|
452 |
+
'Error: PayPal Donations requires PHP version %1$s or greater.<br/>'.
|
453 |
+
'Your installed PHP version: %2$s',
|
454 |
+
$this->MIN_PHP_VERSION, PHP_VERSION);
|
|
|
|
|
|
|
455 |
echo '</strong></p></div>';
|
456 |
}
|
457 |
|
460 |
*/
|
461 |
function wp_version_error() {
|
462 |
echo '<div class="error"><p><strong>';
|
463 |
+
printf(
|
464 |
+
'Error: PayPal Donations requires WordPress version %s or greater.',
|
465 |
+
$this->MIN_WP_VERSION );
|
|
|
466 |
echo '</strong></p></div>';
|
467 |
}
|
468 |
}
|
readme.txt
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
=== PayPal Donations ===
|
2 |
Contributors: artstorm
|
3 |
-
Donate link: http://wpstorm.net/wordpress-plugins/paypal-donations/#donation
|
4 |
Tags: paypal, donation, shortcode, widget, donate, button, sidebar
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 3.3.1
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
Easy, simple setup to add a PayPal Donation button as a Widget or with a shortcode.
|
10 |
|
@@ -60,7 +59,12 @@ Please visit [PayPal Donations' Comments](http://wpstorm.net/wordpress-plugins/p
|
|
60 |
|
61 |
== Changelog ==
|
62 |
|
63 |
-
|
|
|
|
|
|
|
|
|
|
|
64 |
= Version 1.5 - 9 Jan 2012 =
|
65 |
* Added an option to disable PayPal statistics tracking image.
|
66 |
* Added an option to center the button by overriding the theme CSS.
|
1 |
=== PayPal Donations ===
|
2 |
Contributors: artstorm
|
|
|
3 |
Tags: paypal, donation, shortcode, widget, donate, button, sidebar
|
4 |
Requires at least: 2.7
|
5 |
Tested up to: 3.3.1
|
6 |
+
Stable tag: 1.6
|
7 |
|
8 |
Easy, simple setup to add a PayPal Donation button as a Widget or with a shortcode.
|
9 |
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= Version 1.6 - 13 Mar 2012 =
|
63 |
+
* Added an option under extras to set a PayPal checkout language.
|
64 |
+
* Added filter `paypal_donations_purpose_html`, to allow replacing the default
|
65 |
+
hidden form element for purpose with some other form input type.
|
66 |
+
* Included Romanian translation by Marko Pozner.
|
67 |
+
|
68 |
= Version 1.5 - 9 Jan 2012 =
|
69 |
* Added an option to disable PayPal statistics tracking image.
|
70 |
* Added an option to center the button by overriding the theme CSS.
|