WP to Twitter - Version 2.2.2

Version Description

  • Fixed a bug where new Pages did not Tweet.
  • Minor text changes to try and clarify OAuth process.
  • Fixed bug where any post with a customized status update would post, regardless of settings.
  • Fixed faulty shortening when new links were added.
Download this release

Release Info

Developer joedolson
Plugin Icon 128x128 WP to Twitter
Version 2.2.2
Comparing to
See all releases

Code changes from version 2.1.3 to 2.2.2

OAuth.php ADDED
@@ -0,0 +1,878 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // vim: foldmethod=marker
3
+
4
+ if (!class_exists('OAuthException')) {
5
+
6
+ /* Generic exception class
7
+ */
8
+ class OAuthException extends Exception {
9
+ // pass
10
+ }
11
+
12
+ class OAuthConsumer {
13
+ public $key;
14
+ public $secret;
15
+
16
+ function __construct($key, $secret, $callback_url=NULL) {
17
+ $this->key = $key;
18
+ $this->secret = $secret;
19
+ $this->callback_url = $callback_url;
20
+ }
21
+
22
+ function __toString() {
23
+ return "OAuthConsumer[key=$this->key,secret=$this->secret]";
24
+ }
25
+ }
26
+
27
+ class OAuthToken {
28
+ // access tokens and request tokens
29
+ public $key;
30
+ public $secret;
31
+
32
+ /**
33
+ * key = the token
34
+ * secret = the token secret
35
+ */
36
+ function __construct($key, $secret) {
37
+ $this->key = $key;
38
+ $this->secret = $secret;
39
+ }
40
+
41
+ /**
42
+ * generates the basic string serialization of a token that a server
43
+ * would respond to request_token and access_token calls with
44
+ */
45
+ function to_string() {
46
+ return "oauth_token=" .
47
+ OAuthUtil::urlencode_rfc3986($this->key) .
48
+ "&oauth_token_secret=" .
49
+ OAuthUtil::urlencode_rfc3986($this->secret);
50
+ }
51
+
52
+ function __toString() {
53
+ return $this->to_string();
54
+ }
55
+ }
56
+
57
+ /**
58
+ * A class for implementing a Signature Method
59
+ * See section 9 ("Signing Requests") in the spec
60
+ */
61
+ abstract class OAuthSignatureMethod {
62
+ /**
63
+ * Needs to return the name of the Signature Method (ie HMAC-SHA1)
64
+ * @return string
65
+ */
66
+ abstract public function get_name();
67
+
68
+ /**
69
+ * Build up the signature
70
+ * NOTE: The output of this function MUST NOT be urlencoded.
71
+ * the encoding is handled in OAuthRequest when the final
72
+ * request is serialized
73
+ * @param OAuthRequest $request
74
+ * @param OAuthConsumer $consumer
75
+ * @param OAuthToken $token
76
+ * @return string
77
+ */
78
+ abstract public function build_signature($request, $consumer, $token);
79
+
80
+ /**
81
+ * Verifies that a given signature is correct
82
+ * @param OAuthRequest $request
83
+ * @param OAuthConsumer $consumer
84
+ * @param OAuthToken $token
85
+ * @param string $signature
86
+ * @return bool
87
+ */
88
+ public function check_signature($request, $consumer, $token, $signature) {
89
+ $built = $this->build_signature($request, $consumer, $token);
90
+ return $built == $signature;
91
+ }
92
+ }
93
+
94
+ /**
95
+ * The HMAC-SHA1 signature method uses the HMAC-SHA1 signature algorithm as defined in [RFC2104]
96
+ * where the Signature Base String is the text and the key is the concatenated values (each first
97
+ * encoded per Parameter Encoding) of the Consumer Secret and Token Secret, separated by an '&'
98
+ * character (ASCII code 38) even if empty.
99
+ * - Chapter 9.2 ("HMAC-SHA1")
100
+ */
101
+ class OAuthSignatureMethod_HMAC_SHA1 extends OAuthSignatureMethod {
102
+ function get_name() {
103
+ return "HMAC-SHA1";
104
+ }
105
+
106
+ public function build_signature($request, $consumer, $token) {
107
+ $base_string = $request->get_signature_base_string();
108
+ $request->base_string = $base_string;
109
+
110
+ $key_parts = array(
111
+ $consumer->secret,
112
+ ($token) ? $token->secret : ""
113
+ );
114
+
115
+ $key_parts = OAuthUtil::urlencode_rfc3986($key_parts);
116
+ $key = implode('&', $key_parts);
117
+
118
+ return base64_encode(hash_hmac('sha1', $base_string, $key, true));
119
+ }
120
+ }
121
+
122
+ /**
123
+ * The PLAINTEXT method does not provide any security protection and SHOULD only be used
124
+ * over a secure channel such as HTTPS. It does not use the Signature Base String.
125
+ * - Chapter 9.4 ("PLAINTEXT")
126
+ */
127
+ class OAuthSignatureMethod_PLAINTEXT extends OAuthSignatureMethod {
128
+ public function get_name() {
129
+ return "PLAINTEXT";
130
+ }
131
+
132
+ /**
133
+ * oauth_signature is set to the concatenated encoded values of the Consumer Secret and
134
+ * Token Secret, separated by a '&' character (ASCII code 38), even if either secret is
135
+ * empty. The result MUST be encoded again.
136
+ * - Chapter 9.4.1 ("Generating Signatures")
137
+ *
138
+ * Please note that the second encoding MUST NOT happen in the SignatureMethod, as
139
+ * OAuthRequest handles this!
140
+ */
141
+ public function build_signature($request, $consumer, $token) {
142
+ $key_parts = array(
143
+ $consumer->secret,
144
+ ($token) ? $token->secret : ""
145
+ );
146
+
147
+ $key_parts = OAuthUtil::urlencode_rfc3986($key_parts);
148
+ $key = implode('&', $key_parts);
149
+ $request->base_string = $key;
150
+
151
+ return $key;
152
+ }
153
+ }
154
+
155
+ /**
156
+ * The RSA-SHA1 signature method uses the RSASSA-PKCS1-v1_5 signature algorithm as defined in
157
+ * [RFC3447] section 8.2 (more simply known as PKCS#1), using SHA-1 as the hash function for
158
+ * EMSA-PKCS1-v1_5. It is assumed that the Consumer has provided its RSA public key in a
159
+ * verified way to the Service Provider, in a manner which is beyond the scope of this
160
+ * specification.
161
+ * - Chapter 9.3 ("RSA-SHA1")
162
+ */
163
+ abstract class OAuthSignatureMethod_RSA_SHA1 extends OAuthSignatureMethod {
164
+ public function get_name() {
165
+ return "RSA-SHA1";
166
+ }
167
+
168
+ // Up to the SP to implement this lookup of keys. Possible ideas are:
169
+ // (1) do a lookup in a table of trusted certs keyed off of consumer
170
+ // (2) fetch via http using a url provided by the requester
171
+ // (3) some sort of specific discovery code based on request
172
+ //
173
+ // Either way should return a string representation of the certificate
174
+ protected abstract function fetch_public_cert(&$request);
175
+
176
+ // Up to the SP to implement this lookup of keys. Possible ideas are:
177
+ // (1) do a lookup in a table of trusted certs keyed off of consumer
178
+ //
179
+ // Either way should return a string representation of the certificate
180
+ protected abstract function fetch_private_cert(&$request);
181
+
182
+ public function build_signature($request, $consumer, $token) {
183
+ $base_string = $request->get_signature_base_string();
184
+ $request->base_string = $base_string;
185
+
186
+ // Fetch the private key cert based on the request
187
+ $cert = $this->fetch_private_cert($request);
188
+
189
+ // Pull the private key ID from the certificate
190
+ $privatekeyid = openssl_get_privatekey($cert);
191
+
192
+ // Sign using the key
193
+ $ok = openssl_sign($base_string, $signature, $privatekeyid);
194
+
195
+ // Release the key resource
196
+ openssl_free_key($privatekeyid);
197
+
198
+ return base64_encode($signature);
199
+ }
200
+
201
+ public function check_signature($request, $consumer, $token, $signature) {
202
+ $decoded_sig = base64_decode($signature);
203
+
204
+ $base_string = $request->get_signature_base_string();
205
+
206
+ // Fetch the public key cert based on the request
207
+ $cert = $this->fetch_public_cert($request);
208
+
209
+ // Pull the public key ID from the certificate
210
+ $publickeyid = openssl_get_publickey($cert);
211
+
212
+ // Check the computed signature against the one passed in the query
213
+ $ok = openssl_verify($base_string, $decoded_sig, $publickeyid);
214
+
215
+ // Release the key resource
216
+ openssl_free_key($publickeyid);
217
+
218
+ return $ok == 1;
219
+ }
220
+ }
221
+
222
+ class OAuthRequest {
223
+ private $parameters;
224
+ private $http_method;
225
+ private $http_url;
226
+ // for debug purposes
227
+ public $base_string;
228
+ public static $version = '1.0';
229
+ public static $POST_INPUT = 'php://input';
230
+
231
+ function __construct($http_method, $http_url, $parameters=NULL) {
232
+ @$parameters or $parameters = array();
233
+ $parameters = array_merge( OAuthUtil::parse_parameters(parse_url($http_url, PHP_URL_QUERY)), $parameters);
234
+ $this->parameters = $parameters;
235
+ $this->http_method = $http_method;
236
+ $this->http_url = $http_url;
237
+ }
238
+
239
+
240
+ /**
241
+ * attempt to build up a request from what was passed to the server
242
+ */
243
+ public static function from_request($http_method=NULL, $http_url=NULL, $parameters=NULL) {
244
+ $scheme = (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != "on")
245
+ ? 'http'
246
+ : 'https';
247
+ @$http_url or $http_url = $scheme .
248
+ '://' . $_SERVER['HTTP_HOST'] .
249
+ ':' .
250
+ $_SERVER['SERVER_PORT'] .
251
+ $_SERVER['REQUEST_URI'];
252
+ @$http_method or $http_method = $_SERVER['REQUEST_METHOD'];
253
+
254
+ // We weren't handed any parameters, so let's find the ones relevant to
255
+ // this request.
256
+ // If you run XML-RPC or similar you should use this to provide your own
257
+ // parsed parameter-list
258
+ if (!$parameters) {
259
+ // Find request headers
260
+ $request_headers = OAuthUtil::get_headers();
261
+
262
+ // Parse the query-string to find GET parameters
263
+ $parameters = OAuthUtil::parse_parameters($_SERVER['QUERY_STRING']);
264
+
265
+ // It's a POST request of the proper content-type, so parse POST
266
+ // parameters and add those overriding any duplicates from GET
267
+ if ($http_method == "POST"
268
+ && @strstr($request_headers["Content-Type"],
269
+ "application/x-www-form-urlencoded")
270
+ ) {
271
+ $post_data = OAuthUtil::parse_parameters(
272
+ file_get_contents(self::$POST_INPUT)
273
+ );
274
+ $parameters = array_merge($parameters, $post_data);
275
+ }
276
+
277
+ // We have a Authorization-header with OAuth data. Parse the header
278
+ // and add those overriding any duplicates from GET or POST
279
+ if (@substr($request_headers['Authorization'], 0, 6) == "OAuth ") {
280
+ $header_parameters = OAuthUtil::split_header(
281
+ $request_headers['Authorization']
282
+ );
283
+ $parameters = array_merge($parameters, $header_parameters);
284
+ }
285
+
286
+ }
287
+
288
+ return new OAuthRequest($http_method, $http_url, $parameters);
289
+ }
290
+
291
+ /**
292
+ * pretty much a helper function to set up the request
293
+ */
294
+ public static function from_consumer_and_token($consumer, $token, $http_method, $http_url, $parameters=NULL) {
295
+ @$parameters or $parameters = array();
296
+ $defaults = array("oauth_version" => OAuthRequest::$version,
297
+ "oauth_nonce" => OAuthRequest::generate_nonce(),
298
+ "oauth_timestamp" => OAuthRequest::generate_timestamp(),
299
+ "oauth_consumer_key" => $consumer->key);
300
+ if ($token)
301
+ $defaults['oauth_token'] = $token->key;
302
+
303
+ $parameters = array_merge($defaults, $parameters);
304
+
305
+ return new OAuthRequest($http_method, $http_url, $parameters);
306
+ }
307
+
308
+ public function set_parameter($name, $value, $allow_duplicates = true) {
309
+ if ($allow_duplicates && isset($this->parameters[$name])) {
310
+ // We have already added parameter(s) with this name, so add to the list
311
+ if (is_scalar($this->parameters[$name])) {
312
+ // This is the first duplicate, so transform scalar (string)
313
+ // into an array so we can add the duplicates
314
+ $this->parameters[$name] = array($this->parameters[$name]);
315
+ }
316
+
317
+ $this->parameters[$name][] = $value;
318
+ } else {
319
+ $this->parameters[$name] = $value;
320
+ }
321
+ }
322
+
323
+ public function get_parameter($name) {
324
+ return isset($this->parameters[$name]) ? $this->parameters[$name] : null;
325
+ }
326
+
327
+ public function get_parameters() {
328
+ return $this->parameters;
329
+ }
330
+
331
+ public function unset_parameter($name) {
332
+ unset($this->parameters[$name]);
333
+ }
334
+
335
+ /**
336
+ * The request parameters, sorted and concatenated into a normalized string.
337
+ * @return string
338
+ */
339
+ public function get_signable_parameters() {
340
+ // Grab all parameters
341
+ $params = $this->parameters;
342
+
343
+ // Remove oauth_signature if present
344
+ // Ref: Spec: 9.1.1 ("The oauth_signature parameter MUST be excluded.")
345
+ if (isset($params['oauth_signature'])) {
346
+ unset($params['oauth_signature']);
347
+ }
348
+
349
+ return OAuthUtil::build_http_query($params);
350
+ }
351
+
352
+ /**
353
+ * Returns the base string of this request
354
+ *
355
+ * The base string defined as the method, the url
356
+ * and the parameters (normalized), each urlencoded
357
+ * and the concated with &.
358
+ */
359
+ public function get_signature_base_string() {
360
+ $parts = array(
361
+ $this->get_normalized_http_method(),
362
+ $this->get_normalized_http_url(),
363
+ $this->get_signable_parameters()
364
+ );
365
+
366
+ $parts = OAuthUtil::urlencode_rfc3986($parts);
367
+
368
+ return implode('&', $parts);
369
+ }
370
+
371
+ /**
372
+ * just uppercases the http method
373
+ */
374
+ public function get_normalized_http_method() {
375
+ return strtoupper($this->http_method);
376
+ }
377
+
378
+ /**
379
+ * parses the url and rebuilds it to be
380
+ * scheme://host/path
381
+ */
382
+ public function get_normalized_http_url() {
383
+ $parts = parse_url($this->http_url);
384
+
385
+ $port = @$parts['port'];
386
+ $scheme = $parts['scheme'];
387
+ $host = $parts['host'];
388
+ $path = @$parts['path'];
389
+
390
+ $port or $port = ($scheme == 'https') ? '443' : '80';
391
+
392
+ if (($scheme == 'https' && $port != '443')
393
+ || ($scheme == 'http' && $port != '80')) {
394
+ $host = "$host:$port";
395
+ }
396
+ return "$scheme://$host$path";
397
+ }
398
+
399
+ /**
400
+ * builds a url usable for a GET request
401
+ */
402
+ public function to_url() {
403
+ $post_data = $this->to_postdata();
404
+ $out = $this->get_normalized_http_url();
405
+ if ($post_data) {
406
+ $out .= '?'.$post_data;
407
+ }
408
+ return $out;
409
+ }
410
+
411
+ /**
412
+ * builds the data one would send in a POST request
413
+ */
414
+ public function to_postdata() {
415
+ return OAuthUtil::build_http_query($this->parameters);
416
+ }
417
+
418
+ /**
419
+ * builds the Authorization: header
420
+ */
421
+ public function to_header($realm=null) {
422
+ $first = true;
423
+ if($realm) {
424
+ $out = 'Authorization: OAuth realm="' . OAuthUtil::urlencode_rfc3986($realm) . '"';
425
+ $first = false;
426
+ } else
427
+ $out = 'Authorization: OAuth';
428
+
429
+ $total = array();
430
+ foreach ($this->parameters as $k => $v) {
431
+ if (substr($k, 0, 5) != "oauth") continue;
432
+ if (is_array($v)) {
433
+ throw new OAuthException('Arrays not supported in headers');
434
+ }
435
+ $out .= ($first) ? ' ' : ',';
436
+ $out .= OAuthUtil::urlencode_rfc3986($k) .
437
+ '="' .
438
+ OAuthUtil::urlencode_rfc3986($v) .
439
+ '"';
440
+ $first = false;
441
+ }
442
+ return $out;
443
+ }
444
+
445
+ public function __toString() {
446
+ return $this->to_url();
447
+ }
448
+
449
+
450
+ public function sign_request($signature_method, $consumer, $token) {
451
+ $this->set_parameter(
452
+ "oauth_signature_method",
453
+ $signature_method->get_name(),
454
+ false
455
+ );
456
+ $signature = $this->build_signature($signature_method, $consumer, $token);
457
+ $this->set_parameter("oauth_signature", $signature, false);
458
+ }
459
+
460
+ public function build_signature($signature_method, $consumer, $token) {
461
+ $signature = $signature_method->build_signature($this, $consumer, $token);
462
+ return $signature;
463
+ }
464
+
465
+ /**
466
+ * util function: current timestamp
467
+ */
468
+ private static function generate_timestamp() {
469
+ return time();
470
+ }
471
+
472
+ /**
473
+ * util function: current nonce
474
+ */
475
+ private static function generate_nonce() {
476
+ $mt = microtime();
477
+ $rand = mt_rand();
478
+
479
+ return md5($mt . $rand); // md5s look nicer than numbers
480
+ }
481
+ }
482
+
483
+ class OAuthServer {
484
+ protected $timestamp_threshold = 300; // in seconds, five minutes
485
+ protected $version = '1.0'; // hi blaine
486
+ protected $signature_methods = array();
487
+
488
+ protected $data_store;
489
+
490
+ function __construct($data_store) {
491
+ $this->data_store = $data_store;
492
+ }
493
+
494
+ public function add_signature_method($signature_method) {
495
+ $this->signature_methods[$signature_method->get_name()] =
496
+ $signature_method;
497
+ }
498
+
499
+ // high level functions
500
+
501
+ /**
502
+ * process a request_token request
503
+ * returns the request token on success
504
+ */
505
+ public function fetch_request_token(&$request) {
506
+ $this->get_version($request);
507
+
508
+ $consumer = $this->get_consumer($request);
509
+
510
+ // no token required for the initial token request
511
+ $token = NULL;
512
+
513
+ $this->check_signature($request, $consumer, $token);
514
+
515
+ // Rev A change
516
+ $callback = $request->get_parameter('oauth_callback');
517
+ $new_token = $this->data_store->new_request_token($consumer, $callback);
518
+
519
+ return $new_token;
520
+ }
521
+
522
+ /**
523
+ * process an access_token request
524
+ * returns the access token on success
525
+ */
526
+ public function fetch_access_token(&$request) {
527
+ $this->get_version($request);
528
+
529
+ $consumer = $this->get_consumer($request);
530
+
531
+ // requires authorized request token
532
+ $token = $this->get_token($request, $consumer, "request");
533
+
534
+ $this->check_signature($request, $consumer, $token);
535
+
536
+ // Rev A change
537
+ $verifier = $request->get_parameter('oauth_verifier');
538
+ $new_token = $this->data_store->new_access_token($token, $consumer, $verifier);
539
+
540
+ return $new_token;
541
+ }
542
+
543
+ /**
544
+ * verify an api call, checks all the parameters
545
+ */
546
+ public function verify_request(&$request) {
547
+ $this->get_version($request);
548
+ $consumer = $this->get_consumer($request);
549
+ $token = $this->get_token($request, $consumer, "access");
550
+ $this->check_signature($request, $consumer, $token);
551
+ return array($consumer, $token);
552
+ }
553
+
554
+ // Internals from here
555
+ /**
556
+ * version 1
557
+ */
558
+ private function get_version(&$request) {
559
+ $version = $request->get_parameter("oauth_version");
560
+ if (!$version) {
561
+ // Service Providers MUST assume the protocol version to be 1.0 if this parameter is not present.
562
+ // Chapter 7.0 ("Accessing Protected Ressources")
563
+ $version = '1.0';
564
+ }
565
+ if ($version !== $this->version) {
566
+ throw new OAuthException("OAuth version '$version' not supported");
567
+ }
568
+ return $version;
569
+ }
570
+
571
+ /**
572
+ * figure out the signature with some defaults
573
+ */
574
+ private function get_signature_method(&$request) {
575
+ $signature_method =
576
+ @$request->get_parameter("oauth_signature_method");
577
+
578
+ if (!$signature_method) {
579
+ // According to chapter 7 ("Accessing Protected Ressources") the signature-method
580
+ // parameter is required, and we can't just fallback to PLAINTEXT
581
+ throw new OAuthException('No signature method parameter. This parameter is required');
582
+ }
583
+
584
+ if (!in_array($signature_method,
585
+ array_keys($this->signature_methods))) {
586
+ throw new OAuthException(
587
+ "Signature method '$signature_method' not supported " .
588
+ "try one of the following: " .
589
+ implode(", ", array_keys($this->signature_methods))
590
+ );
591
+ }
592
+ return $this->signature_methods[$signature_method];
593
+ }
594
+
595
+ /**
596
+ * try to find the consumer for the provided request's consumer key
597
+ */
598
+ private function get_consumer(&$request) {
599
+ $consumer_key = @$request->get_parameter("oauth_consumer_key");
600
+ if (!$consumer_key) {
601
+ throw new OAuthException("Invalid consumer key");
602
+ }
603
+
604
+ $consumer = $this->data_store->lookup_consumer($consumer_key);
605
+ if (!$consumer) {
606
+ throw new OAuthException("Invalid consumer");
607
+ }
608
+
609
+ return $consumer;
610
+ }
611
+
612
+ /**
613
+ * try to find the token for the provided request's token key
614
+ */
615
+ private function get_token(&$request, $consumer, $token_type="access") {
616
+ $token_field = @$request->get_parameter('oauth_token');
617
+ $token = $this->data_store->lookup_token(
618
+ $consumer, $token_type, $token_field
619
+ );
620
+ if (!$token) {
621
+ throw new OAuthException("Invalid $token_type token: $token_field");
622
+ }
623
+ return $token;
624
+ }
625
+
626
+ /**
627
+ * all-in-one function to check the signature on a request
628
+ * should guess the signature method appropriately
629
+ */
630
+ private function check_signature(&$request, $consumer, $token) {
631
+ // this should probably be in a different method
632
+ $timestamp = @$request->get_parameter('oauth_timestamp');
633
+ $nonce = @$request->get_parameter('oauth_nonce');
634
+
635
+ $this->check_timestamp($timestamp);
636
+ $this->check_nonce($consumer, $token, $nonce, $timestamp);
637
+
638
+ $signature_method = $this->get_signature_method($request);
639
+
640
+ $signature = $request->get_parameter('oauth_signature');
641
+ $valid_sig = $signature_method->check_signature(
642
+ $request,
643
+ $consumer,
644
+ $token,
645
+ $signature
646
+ );
647
+
648
+ if (!$valid_sig) {
649
+ throw new OAuthException("Invalid signature");
650
+ }
651
+ }
652
+
653
+ /**
654
+ * check that the timestamp is new enough
655
+ */
656
+ private function check_timestamp($timestamp) {
657
+ if( ! $timestamp )
658
+ throw new OAuthException(
659
+ 'Missing timestamp parameter. The parameter is required'
660
+ );
661
+
662
+ // verify that timestamp is recentish
663
+ $now = time();
664
+ if (abs($now - $timestamp) > $this->timestamp_threshold) {
665
+ throw new OAuthException(
666
+ "Expired timestamp, yours $timestamp, ours $now"
667
+ );
668
+ }
669
+ }
670
+
671
+ /**
672
+ * check that the nonce is not repeated
673
+ */
674
+ private function check_nonce($consumer, $token, $nonce, $timestamp) {
675
+ if( ! $nonce )
676
+ throw new OAuthException(
677
+ 'Missing nonce parameter. The parameter is required'
678
+ );
679
+
680
+ // verify that the nonce is uniqueish
681
+ $found = $this->data_store->lookup_nonce(
682
+ $consumer,
683
+ $token,
684
+ $nonce,
685
+ $timestamp
686
+ );
687
+ if ($found) {
688
+ throw new OAuthException("Nonce already used: $nonce");
689
+ }
690
+ }
691
+
692
+ }
693
+
694
+ class OAuthDataStore {
695
+ function lookup_consumer($consumer_key) {
696
+ // implement me
697
+ }
698
+
699
+ function lookup_token($consumer, $token_type, $token) {
700
+ // implement me
701
+ }
702
+
703
+ function lookup_nonce($consumer, $token, $nonce, $timestamp) {
704
+ // implement me
705
+ }
706
+
707
+ function new_request_token($consumer, $callback = null) {
708
+ // return a new token attached to this consumer
709
+ }
710
+
711
+ function new_access_token($token, $consumer, $verifier = null) {
712
+ // return a new access token attached to this consumer
713
+ // for the user associated with this token if the request token
714
+ // is authorized
715
+ // should also invalidate the request token
716
+ }
717
+
718
+ }
719
+
720
+ class OAuthUtil {
721
+ public static function urlencode_rfc3986($input) {
722
+ if (is_array($input)) {
723
+ return array_map(array('OAuthUtil', 'urlencode_rfc3986'), $input);
724
+ } else if (is_scalar($input)) {
725
+ return str_replace(
726
+ '+',
727
+ ' ',
728
+ str_replace('%7E', '~', rawurlencode($input))
729
+ );
730
+ } else {
731
+ return '';
732
+ }
733
+ }
734
+
735
+
736
+ // This decode function isn't taking into consideration the above
737
+ // modifications to the encoding process. However, this method doesn't
738
+ // seem to be used anywhere so leaving it as is.
739
+ public static function urldecode_rfc3986($string) {
740
+ return urldecode($string);
741
+ }
742
+
743
+ // Utility function for turning the Authorization: header into
744
+ // parameters, has to do some unescaping
745
+ // Can filter out any non-oauth parameters if needed (default behaviour)
746
+ public static function split_header($header, $only_allow_oauth_parameters = true) {
747
+ $pattern = '/(([-_a-z]*)=("([^"]*)"|([^,]*)),?)/';
748
+ $offset = 0;
749
+ $params = array();
750
+ while (preg_match($pattern, $header, $matches, PREG_OFFSET_CAPTURE, $offset) > 0) {
751
+ $match = $matches[0];
752
+ $header_name = $matches[2][0];
753
+ $header_content = (isset($matches[5])) ? $matches[5][0] : $matches[4][0];
754
+ if (preg_match('/^oauth_/', $header_name) || !$only_allow_oauth_parameters) {
755
+ $params[$header_name] = OAuthUtil::urldecode_rfc3986($header_content);
756
+ }
757
+ $offset = $match[1] + strlen($match[0]);
758
+ }
759
+
760
+ if (isset($params['realm'])) {
761
+ unset($params['realm']);
762
+ }
763
+
764
+ return $params;
765
+ }
766
+
767
+ // helper to try to sort out headers for people who aren't running apache
768
+ public static function get_headers() {
769
+ if (function_exists('apache_request_headers')) {
770
+ // we need this to get the actual Authorization: header
771
+ // because apache tends to tell us it doesn't exist
772
+ $headers = apache_request_headers();
773
+
774
+ // sanitize the output of apache_request_headers because
775
+ // we always want the keys to be Cased-Like-This and arh()
776
+ // returns the headers in the same case as they are in the
777
+ // request
778
+ $out = array();
779
+ foreach( $headers AS $key => $value ) {
780
+ $key = str_replace(
781
+ " ",
782
+ "-",
783
+ ucwords(strtolower(str_replace("-", " ", $key)))
784
+ );
785
+ $out[$key] = $value;
786
+ }
787
+ } else {
788
+ // otherwise we don't have apache and are just going to have to hope
789
+ // that $_SERVER actually contains what we need
790
+ $out = array();
791
+ if( isset($_SERVER['CONTENT_TYPE']) )
792
+ $out['Content-Type'] = $_SERVER['CONTENT_TYPE'];
793
+ if( isset($_ENV['CONTENT_TYPE']) )
794
+ $out['Content-Type'] = $_ENV['CONTENT_TYPE'];
795
+
796
+ foreach ($_SERVER as $key => $value) {
797
+ if (substr($key, 0, 5) == "HTTP_") {
798
+ // this is chaos, basically it is just there to capitalize the first
799
+ // letter of every word that is not an initial HTTP and strip HTTP
800
+ // code from przemek
801
+ $key = str_replace(
802
+ " ",
803
+ "-",
804
+ ucwords(strtolower(str_replace("_", " ", substr($key, 5))))
805
+ );
806
+ $out[$key] = $value;
807
+ }
808
+ }
809
+ }
810
+ return $out;
811
+ }
812
+
813
+ // This function takes a input like a=b&a=c&d=e and returns the parsed
814
+ // parameters like this
815
+ // array('a' => array('b','c'), 'd' => 'e')
816
+ public static function parse_parameters( $input ) {
817
+ if (!isset($input) || !$input) return array();
818
+
819
+ $pairs = explode('&', $input);
820
+
821
+ $parsed_parameters = array();
822
+ foreach ($pairs as $pair) {
823
+ $split = explode('=', $pair, 2);
824
+ $parameter = OAuthUtil::urldecode_rfc3986($split[0]);
825
+ $value = isset($split[1]) ? OAuthUtil::urldecode_rfc3986($split[1]) : '';
826
+
827
+ if (isset($parsed_parameters[$parameter])) {
828
+ // We have already recieved parameter(s) with this name, so add to the list
829
+ // of parameters with this name
830
+
831
+ if (is_scalar($parsed_parameters[$parameter])) {
832
+ // This is the first duplicate, so transform scalar (string) into an array
833
+ // so we can add the duplicates
834
+ $parsed_parameters[$parameter] = array($parsed_parameters[$parameter]);
835
+ }
836
+
837
+ $parsed_parameters[$parameter][] = $value;
838
+ } else {
839
+ $parsed_parameters[$parameter] = $value;
840
+ }
841
+ }
842
+ return $parsed_parameters;
843
+ }
844
+
845
+ public static function build_http_query($params) {
846
+ if (!$params) return '';
847
+
848
+ // Urlencode both keys and values
849
+ $keys = OAuthUtil::urlencode_rfc3986(array_keys($params));
850
+ $values = OAuthUtil::urlencode_rfc3986(array_values($params));
851
+ $params = array_combine($keys, $values);
852
+
853
+ // Parameters are sorted by name, using lexicographical byte value ordering.
854
+ // Ref: Spec: 9.1.1 (1)
855
+ uksort($params, 'strcmp');
856
+
857
+ $pairs = array();
858
+ foreach ($params as $parameter => $value) {
859
+ if (is_array($value)) {
860
+ // If two or more parameters share the same name, they are sorted by their value
861
+ // Ref: Spec: 9.1.1 (1)
862
+ natsort($value);
863
+ foreach ($value as $duplicate_value) {
864
+ $pairs[] = $parameter . '=' . $duplicate_value;
865
+ }
866
+ } else {
867
+ $pairs[] = $parameter . '=' . $value;
868
+ }
869
+ }
870
+ // For each parameter, the name is separated from the corresponding value by an '=' character (ASCII code 61)
871
+ // Each name-value pair is separated by an '&' character (ASCII code 38)
872
+ return implode('&', $pairs);
873
+ }
874
+ }
875
+
876
+ } // class_exists check
877
+
878
+ ?>
functions.php CHANGED
@@ -16,16 +16,27 @@ function jd_remote_json( $url, $array=true ) {
16
  // TODO: some error handling ?
17
  }
18
 
 
 
 
 
 
 
 
19
  // Fetch a remote page. Input url, return content
20
  function jd_fetch_url( $url, $method='GET', $body='', $headers='', $return='body' ) {
21
  $request = new WP_Http;
22
  $result = $request->request( $url , array( 'method'=>$method, 'body'=>$body, 'headers'=>$headers, 'user-agent'=>'WP to Twitter http://www.joedolson.com/articles/wp-to-twitter/' ) );
23
  // Success?
24
  if ( !is_wp_error($result) && isset($result['body']) ) {
25
- if ($return == 'body') {
26
- return $result['body'];
 
 
 
 
27
  } else {
28
- return $result;
29
  }
30
  // Failure (server problem...)
31
  } else {
@@ -190,7 +201,6 @@ $options = array(
190
  'jd_shortener'=>get_option( 'jd_shortener' ),
191
 
192
  // Error checking
193
- 'jd-functions-checked'=>get_option( 'jd-functions-checked' ),
194
  'wp_twitter_failure'=>get_option( 'wp_twitter_failure' ),
195
  'wp_url_failure' =>get_option( 'wp_url_failure' ),
196
  'twitterInitialised'=>get_option( 'twitterInitialised' ),
@@ -200,8 +210,8 @@ $options = array(
200
  'tweet_categories'=>get_option('tweet_categories' ),
201
  'disable_url_failure'=>get_option('disable_url_failure' ),
202
  'disable_twitter_failure'=>get_option('disable_twitter_failure' ),
203
- 'wp_bitly_error'=>get_option( 'wp_bitly_error' )
204
-
205
  );
206
 
207
  echo "<div class=\"settings\">";
16
  // TODO: some error handling ?
17
  }
18
 
19
+ function is_valid_url( $url ) {
20
+ if (is_string($url)) {
21
+ return preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url);
22
+ } else {
23
+ return false;
24
+ }
25
+ }
26
  // Fetch a remote page. Input url, return content
27
  function jd_fetch_url( $url, $method='GET', $body='', $headers='', $return='body' ) {
28
  $request = new WP_Http;
29
  $result = $request->request( $url , array( 'method'=>$method, 'body'=>$body, 'headers'=>$headers, 'user-agent'=>'WP to Twitter http://www.joedolson.com/articles/wp-to-twitter/' ) );
30
  // Success?
31
  if ( !is_wp_error($result) && isset($result['body']) ) {
32
+ if ( $result['code'] != 200 ) {
33
+ if ($return == 'body') {
34
+ return $result['body'];
35
+ } else {
36
+ return $result;
37
+ }
38
  } else {
39
+ return $result['code'];
40
  }
41
  // Failure (server problem...)
42
  } else {
201
  'jd_shortener'=>get_option( 'jd_shortener' ),
202
 
203
  // Error checking
 
204
  'wp_twitter_failure'=>get_option( 'wp_twitter_failure' ),
205
  'wp_url_failure' =>get_option( 'wp_url_failure' ),
206
  'twitterInitialised'=>get_option( 'twitterInitialised' ),
210
  'tweet_categories'=>get_option('tweet_categories' ),
211
  'disable_url_failure'=>get_option('disable_url_failure' ),
212
  'disable_twitter_failure'=>get_option('disable_twitter_failure' ),
213
+ 'wp_bitly_error'=>get_option( 'wp_bitly_error' ),
214
+ 'wp_cligs_error'=>get_option( 'wp_cligs_error' )
215
  );
216
 
217
  echo "<div class=\"settings\">";
jd_twitterOAuth.php ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Abraham Williams (abraham@abrah.am) http://abrah.am
4
+ *
5
+ * The first PHP Library to support OAuth for Twitter's REST API.
6
+ */
7
+
8
+ /* Load OAuth lib. You can find it at http://oauth.net */
9
+ require_once('OAuth.php');
10
+
11
+ if (!class_exists('jd_TwitterOAuth')) {
12
+
13
+ /**
14
+ * Twitter OAuth class
15
+ */
16
+ class jd_TwitterOAuth {
17
+ /* Contains the last HTTP status code returned. */
18
+ public $http_code;
19
+ /* Contains the last API call. */
20
+ public $url;
21
+ /* Set up the API root URL. */
22
+ public $host = "https://api.twitter.com/1/";
23
+ /* Set timeout default. */
24
+ public $timeout = 30;
25
+ /* Set connect timeout. */
26
+ public $connecttimeout = 30;
27
+ /* Verify SSL Cert. */
28
+ public $ssl_verifypeer = FALSE;
29
+ /* Respons format. */
30
+ public $format = 'json';
31
+ /* Decode returned json data. */
32
+ public $decode_json = false;
33
+ /* Contains the last HTTP headers returned. */
34
+ public $http_info;
35
+ /* Set the useragnet. */
36
+ public $useragent = 'TwitterOAuth v0.2.0-beta2';
37
+ /* Immediately retry the API call if the response was not successful. */
38
+ //public $retry = TRUE;
39
+
40
+
41
+
42
+
43
+ /**
44
+ * Set API URLS
45
+ */
46
+ function accessTokenURL() { return 'https://api.twitter.com/oauth/access_token'; }
47
+ function authenticateURL() { return 'https://twitter.com/oauth/authenticate'; }
48
+ function authorizeURL() { return 'https://twitter.com/oauth/authorize'; }
49
+ function requestTokenURL() { return 'https://api.twitter.com/oauth/request_token'; }
50
+
51
+ /**
52
+ * Debug helpers
53
+ */
54
+ function lastStatusCode() { return $this->http_status; }
55
+ function lastAPICall() { return $this->last_api_call; }
56
+
57
+ /**
58
+ * construct TwitterOAuth object
59
+ */
60
+ function __construct($consumer_key, $consumer_secret, $oauth_token = NULL, $oauth_token_secret = NULL) {
61
+ $this->sha1_method = new OAuthSignatureMethod_HMAC_SHA1();
62
+ $this->consumer = new OAuthConsumer($consumer_key, $consumer_secret);
63
+ if (!empty($oauth_token) && !empty($oauth_token_secret)) {
64
+ $this->token = new OAuthConsumer($oauth_token, $oauth_token_secret);
65
+ } else {
66
+ $this->token = NULL;
67
+ }
68
+ }
69
+
70
+
71
+ /**
72
+ * Get a request_token from Twitter
73
+ *
74
+ * @returns a key/value array containing oauth_token and oauth_token_secret
75
+ */
76
+ function getRequestToken($oauth_callback = NULL) {
77
+ $parameters = array();
78
+ if (!empty($oauth_callback)) {
79
+ $parameters['oauth_callback'] = $oauth_callback;
80
+ }
81
+ $request = $this->oAuthRequest($this->requestTokenURL(), 'GET', $parameters);
82
+ $token = OAuthUtil::parse_parameters($request);
83
+ $this->token = new OAuthConsumer($token['oauth_token'], $token['oauth_token_secret']);
84
+ return $token;
85
+ }
86
+
87
+ /**
88
+ * Get the authorize URL
89
+ *
90
+ * @returns a string
91
+ */
92
+ function getAuthorizeURL($token, $sign_in_with_twitter = TRUE) {
93
+ if (is_array($token)) {
94
+ $token = $token['oauth_token'];
95
+ }
96
+ if (empty($sign_in_with_twitter)) {
97
+ return $this->authorizeURL() . "?oauth_token={$token}";
98
+ } else {
99
+ return $this->authenticateURL() . "?oauth_token={$token}";
100
+ }
101
+ }
102
+
103
+ /**
104
+ * Exchange request token and secret for an access token and
105
+ * secret, to sign API calls.
106
+ *
107
+ * @returns array("oauth_token" => "the-access-token",
108
+ * "oauth_token_secret" => "the-access-secret",
109
+ * "user_id" => "9436992",
110
+ * "screen_name" => "abraham")
111
+ */
112
+ function getAccessToken($oauth_verifier = FALSE) {
113
+ $parameters = array();
114
+ if (!empty($oauth_verifier)) {
115
+ $parameters['oauth_verifier'] = $oauth_verifier;
116
+ }
117
+ $request = $this->oAuthRequest($this->accessTokenURL(), 'GET', $parameters);
118
+ $token = OAuthUtil::parse_parameters($request);
119
+ $this->token = new OAuthConsumer($token['oauth_token'], $token['oauth_token_secret']);
120
+ return $token;
121
+ }
122
+
123
+ /**
124
+ * One time exchange of username and password for access token and secret.
125
+ *
126
+ * @returns array("oauth_token" => "the-access-token",
127
+ * "oauth_token_secret" => "the-access-secret",
128
+ * "user_id" => "9436992",
129
+ * "screen_name" => "abraham",
130
+ * "x_auth_expires" => "0")
131
+ */
132
+ function getXAuthToken($username, $password) {
133
+ $parameters = array();
134
+ $parameters['x_auth_username'] = $username;
135
+ $parameters['x_auth_password'] = $password;
136
+ $parameters['x_auth_mode'] = 'client_auth';
137
+ $request = $this->oAuthRequest($this->accessTokenURL(), 'POST', $parameters);
138
+ $token = OAuthUtil::parse_parameters($request);
139
+ $this->token = new OAuthConsumer($token['oauth_token'], $token['oauth_token_secret']);
140
+ return $token;
141
+ }
142
+
143
+ /**
144
+ * GET wrapper for oAuthRequest.
145
+ */
146
+ function get($url, $parameters = array()) {
147
+ $response = $this->oAuthRequest($url, 'GET', $parameters);
148
+ if ($this->format === 'json' && $this->decode_json) {
149
+ return json_decode($response);
150
+ }
151
+ return $response;
152
+ }
153
+
154
+ /**
155
+ * POST wrapper for oAuthRequest.
156
+ */
157
+ function post($url, $parameters = array()) {
158
+ $response = $this->oAuthRequest($url, 'POST', $parameters);
159
+ if ($this->format === 'json' && $this->decode_json) {
160
+ return json_decode($response);
161
+ }
162
+ return $response;
163
+ }
164
+
165
+ /**
166
+ * DELETE wrapper for oAuthReqeust.
167
+ */
168
+ function delete($url, $parameters = array()) {
169
+ $response = $this->oAuthRequest($url, 'DELETE', $parameters);
170
+ if ($this->format === 'json' && $this->decode_json) {
171
+ return json_decode($response);
172
+ }
173
+ return $response;
174
+ }
175
+
176
+ /**
177
+ * Format and sign an OAuth / API request
178
+ */
179
+ function oAuthRequest($url, $method, $parameters) {
180
+ if (strrpos($url, 'https://') !== 0 && strrpos($url, 'http://') !== 0) {
181
+ $url = "{$this->host}{$url}.{$this->format}";
182
+ }
183
+ $request = OAuthRequest::from_consumer_and_token($this->consumer, $this->token, $method, $url, $parameters);
184
+ $request->sign_request($this->sha1_method, $this->consumer, $this->token);
185
+ switch ($method) {
186
+ case 'GET':
187
+ return $this->http($request->to_url(), 'GET');
188
+ default:
189
+ return $this->http($request->get_normalized_http_url(), $method, $request->to_postdata());
190
+ }
191
+ }
192
+
193
+ /**
194
+ * Make an HTTP request
195
+ *
196
+ * @return API results
197
+ */
198
+ function http($url, $method, $postfields = NULL) {
199
+ $this->http_info = array();
200
+ $ci = curl_init();
201
+ /* Curl settings */
202
+ curl_setopt($ci, CURLOPT_USERAGENT, $this->useragent);
203
+ curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, $this->connecttimeout);
204
+ curl_setopt($ci, CURLOPT_TIMEOUT, $this->timeout);
205
+ curl_setopt($ci, CURLOPT_RETURNTRANSFER, TRUE);
206
+ curl_setopt($ci, CURLOPT_HTTPHEADER, array('Expect:'));
207
+ curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, $this->ssl_verifypeer);
208
+ curl_setopt($ci, CURLOPT_HEADERFUNCTION, array($this, 'getHeader'));
209
+ curl_setopt($ci, CURLOPT_HEADER, FALSE);
210
+
211
+ switch ($method) {
212
+ case 'POST':
213
+ curl_setopt($ci, CURLOPT_POST, TRUE);
214
+ if (!empty($postfields)) {
215
+ curl_setopt($ci, CURLOPT_POSTFIELDS, $postfields);
216
+ }
217
+ break;
218
+ case 'DELETE':
219
+ curl_setopt($ci, CURLOPT_CUSTOMREQUEST, 'DELETE');
220
+ if (!empty($postfields)) {
221
+ $url = "{$url}?{$postfields}";
222
+ }
223
+ }
224
+
225
+ curl_setopt($ci, CURLOPT_URL, $url);
226
+ $response = curl_exec($ci);
227
+ $this->http_code = curl_getinfo($ci, CURLINFO_HTTP_CODE);
228
+ $this->http_info = array_merge($this->http_info, curl_getinfo($ci));
229
+ $this->url = $url;
230
+ curl_close ($ci);
231
+ return $response;
232
+ }
233
+
234
+ /**
235
+ * Get the header info to store.
236
+ */
237
+ function getHeader($ch, $header) {
238
+ $i = strpos($header, ':');
239
+ if (!empty($i)) {
240
+ $key = str_replace('-', '_', strtolower(substr($header, 0, $i)));
241
+ $value = trim(substr($header, $i + 2));
242
+ $this->http_header[$key] = $value;
243
+ }
244
+ return strlen($header);
245
+ }
246
+ }
247
+
248
+ } // class_exists check
249
+ ?>
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: joedolson
3
  Donate link: http://www.joedolson.com/donate.php
4
  Tags: twitter, microblogging, cligs, bitly, yourls, redirect, shortener, post, links
5
- Requires at least: 2.7
6
- Tested up to: 3.0
7
  Stable tag: trunk
8
 
9
  Posts a Twitter status update when you update your WordPress blog or post to your blogroll, using your chosen URL shortening service.
@@ -18,24 +18,89 @@ The plugin can send a default message for updating or editing posts or pages, bu
18
 
19
  Any status update you write which is longer than the available space will automatically be truncated by the plugin. This applies to both the default messages and to your custom messages.
20
 
21
- WP to Twitter can also post to any other service using the Twitter-compatible API.
22
-
23
  Credits:
24
 
25
- Although it now bears very little resemblance to the original sources, this plugin was originally based on the Twitter Updater plugin by [Jonathan Dingman](http://www.firesidemedia.net/dev/), which he adapted from a plugin by Victoria Chan. Other contributions by [Thor Erik](http://www.thorerik.net), Bill Berry and [Andrea Baccega](http://www.andreabaccega.com). Thanks to [Cory LaViska](http://abeautifulsite.net/notebook/71) for PHP 4 compatible `json_decode` and `json_encode`. Thanks to [Michal Migurski](http://mike.teczno.com) for authoring the JSON class. Other bug fixes and related citations can be found in the changelog.
26
 
27
  Translations:
28
 
29
  * Italian: [Gianni Diurno](http://www.gidibao.net)
30
- * German: [Melvin](http://www.toxicavenger.de/)
31
  * Spanish: [David Gil P&eacute;rez](http://www.sohelet.com)
32
  * Russian: [Burkov Boris](http://chernobog.ru)
33
  * French: [Fr&eacute;d&eacute;ric Million](http://www.traducteurs.com)
 
 
 
34
 
35
  New translations are always welcome! The translation file is in the download.
36
 
37
  == Changelog ==
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  = 2.1.3 =
40
 
41
  * Fixed copy typo.
@@ -349,8 +414,7 @@ Only posts which you scheduled or edited *after* installing the plugin will be T
349
 
350
  == Upgrade Notice ==
351
 
352
- Please check your WP to Twitter settings after upgrading.
353
-
354
 
355
  == Screenshots ==
356
 
2
  Contributors: joedolson
3
  Donate link: http://www.joedolson.com/donate.php
4
  Tags: twitter, microblogging, cligs, bitly, yourls, redirect, shortener, post, links
5
+ Requires at least: 2.9.2
6
+ Tested up to: 3.1-alpha
7
  Stable tag: trunk
8
 
9
  Posts a Twitter status update when you update your WordPress blog or post to your blogroll, using your chosen URL shortening service.
18
 
19
  Any status update you write which is longer than the available space will automatically be truncated by the plugin. This applies to both the default messages and to your custom messages.
20
 
 
 
21
  Credits:
22
 
23
+ Although it now bears almost no resemblance to the original sources, this plugin was originally based on the Twitter Updater plugin by [Jonathan Dingman](http://www.firesidemedia.net/dev/), which he adapted from a plugin by Victoria Chan. Other contributions by [Thor Erik](http://www.thorerik.net), Bill Berry and [Andrea Baccega](http://www.andreabaccega.com). Thanks to [Cory LaViska](http://abeautifulsite.net/notebook/71) for PHP 4 compatible `json_decode` and `json_encode`. Thanks to [Michal Migurski](http://mike.teczno.com) for authoring the JSON class. Other bug fixes and related citations can be found in the changelog.
24
 
25
  Translations:
26
 
27
  * Italian: [Gianni Diurno](http://www.gidibao.net)
 
28
  * Spanish: [David Gil P&eacute;rez](http://www.sohelet.com)
29
  * Russian: [Burkov Boris](http://chernobog.ru)
30
  * French: [Fr&eacute;d&eacute;ric Million](http://www.traducteurs.com)
31
+ * Estonian: [Raivo Ratsep](http://raivoratsep.com)
32
+ * Simplified Chinese: [Joe Francis](http://blog.francistm.com)
33
+ * Dutch: [Rene at WPwebshop](http://wpwebshop.com/premium-wordpress-plugins/)
34
 
35
  New translations are always welcome! The translation file is in the download.
36
 
37
  == Changelog ==
38
 
39
+ = 2.2.2 =
40
+
41
+ * Fixed a bug where new Pages did not Tweet.
42
+ * Minor text changes to try and clarify OAuth process.
43
+ * Fixed bug where any post with a customized status update would post, regardless of settings.
44
+ * Fixed faulty shortening when new links were added.
45
+
46
+ = 2.2.1 =
47
+
48
+ * Not a Beta anymore.
49
+ * Fixed issue with non-shortening links when using XMLRPC clients
50
+ * Fixed issue with double-urlencoding of links before shortening
51
+ * Added Dutch translation
52
+ * Updated Italian translation
53
+
54
+
55
+ = 2.2.0 (beta 7) =
56
+
57
+ * Significantly improved error reporting.
58
+ * Completely revamped secondary author support to give some value in Twitter.
59
+ * Completely eliminated secondary posting service support. Too much trouble, too little application.
60
+ * Removed the custom post meta data clutter; WP to Twitter's post meta data is now private to the plugin.
61
+ * Fixed a couple of error situations with Bit.ly
62
+ * Made it possible for contributor posts to be Tweeted
63
+ * This is the last beta version.
64
+
65
+ = 2.2.0 (beta 6) =
66
+
67
+ * Fixed bug where errors were reported on categories not intended to be sent to Twitter
68
+ * Allowed OAuth notice to be disabled for users not intending to use that service.
69
+ * Added a debugging option to output some process data if OAuth connection fails
70
+ * Fixed bug which prevented posting of edited status updates
71
+
72
+ = 2.2.0 (beta 5) =
73
+
74
+ * Eliminated an incompatibility with alternate versions of twitterOAuth class
75
+ * Significant revisions of error message processes and details
76
+ * Fixed some URL shortener problems
77
+ * Added simplified Chinese translation
78
+
79
+ = 2.2.0 (beta 4) =
80
+
81
+ * Fixed long-standing issue with serialization of option arrays
82
+ * Fixed trimming of white space from authentication keys
83
+ * Clarification of some texts to help explain some of the changes
84
+ * Clarification of some texts to help explain how to connect to Twitter with OAuth
85
+ * Added credit for Estonian translation by Raivo Ratsep.
86
+
87
+ = 2.2.0 (beta 3) =
88
+
89
+ * Fixed issue with failing to post to Twitter.
90
+
91
+ = 2.2.0 (beta 2) =
92
+
93
+ * Fixed false positive error message on Twitter check routine failure
94
+ * Adjusted twitteroauth file to hopefully avoid certain errors
95
+
96
+ = 2.2.0 (beta) =
97
+
98
+ * Added OAuth support
99
+ * Fixed problem with default Tweet status not defaulting to 'no.'
100
+ * Revised a few other minor issues
101
+ * No longer supporting WordPress versions below 2.9.2
102
+ * Eliminated features: Author's Twitter account posting; Use of additional service to post to Twitter on a second account. These features are not possible with simple OAuth authentication; they require XAuth. This makes the features of extremely limited value, since you, as the user, would be required to apply for XAuth permissions on your own installation. I regret the necessity to remove these features. Both options will still function with Twitter-compatible API services using Basic authentication.
103
+
104
  = 2.1.3 =
105
 
106
  * Fixed copy typo.
414
 
415
  == Upgrade Notice ==
416
 
417
+ This is a beta release with OAuth support. Please read the changelog before upgrading.
 
418
 
419
  == Screenshots ==
420
 
uninstall.php CHANGED
@@ -75,6 +75,14 @@ delete_option( 'jd-twitter-char-limit' );
75
  delete_option( 'jd_use_both_services' );
76
  delete_option( 'x-twitterlogin' );
77
  delete_option( 'x-twitterpw' );
 
 
 
 
 
 
 
 
78
  //dymamic analytics
79
  delete_option( 'jd_dynamic_analytics' );
80
  delete_option( 'use_dynamic_analytics' );
75
  delete_option( 'jd_use_both_services' );
76
  delete_option( 'x-twitterlogin' );
77
  delete_option( 'x-twitterpw' );
78
+ delete_option( 'x-pw' );
79
+ delete_option( 'x-login' );
80
+ delete_option( 'x_jd_api_post_status' );
81
+ delete_option('app_consumer_key');
82
+ delete_option('app_consumer_secret');
83
+ delete_option('oauth_token');
84
+ delete_option('oauth_token_secret');
85
+
86
  //dymamic analytics
87
  delete_option( 'jd_dynamic_analytics' );
88
  delete_option( 'use_dynamic_analytics' );
wp-to-twitter-et_ET.mo ADDED
Binary file
wp-to-twitter-et_ET.po ADDED
@@ -0,0 +1,759 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Translation of the WordPress plugin WP to Twitter 2.1.1 by Joseph Dolson.
2
+ # Copyright (C) 2010 Joseph Dolson
3
+ # This file is distributed under the same license as the WP to Twitter package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: WP to Twitter 2.1.1\n"
9
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-to-twitter\n"
10
+ "POT-Creation-Date: 2010-05-13 21:26+0000\n"
11
+ "PO-Revision-Date: 2010-07-06 21:01-0600\n"
12
+ "Last-Translator: Raivo Ratsep\n"
13
+ "Language-Team: Raivo Ratsep <raivo.ratsep@gmail.com>\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "X-Poedit-Language: Estonian\n"
18
+ "X-Poedit-Country: ESTONIA\n"
19
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
20
+
21
+ #: functions.php:248
22
+ msgid "[<a href='options-general.php?page=wp-to-twitter/wp-to-twitter.php'>Hide</a>] If you're experiencing trouble, please copy these settings into any request for support."
23
+ msgstr "[<a href='options-general.php?page=wp-to-twitter/wp-to-twitter.php'>Peida</a>] Kui sul on probleeme, kopeeri need seaded tehnilise toe abipalvesse."
24
+
25
+ #: wp-to-twitter-manager.php:76
26
+ msgid "Please <a href='#twitterpw'>add your Twitter password</a>. "
27
+ msgstr "Palun <a href='#twitterpw'>lisa oma Twitter'i salasõna</a>. "
28
+
29
+ #: wp-to-twitter-manager.php:82
30
+ msgid "WP to Twitter Errors Cleared"
31
+ msgstr "WP to Twitter Parandatud Vead"
32
+
33
+ #: wp-to-twitter-manager.php:93
34
+ msgid "Twitter API settings reset. You may need to change your username and password settings, if they are not the same as the alternate service previously in use."
35
+ msgstr "Twitter API seaded nullida. Teil võib tekkida vajadus muuta oma kasutajanime ja parooli seadeid, kui nad ei ole samad, mis varem kasutusel olnud asendusteenuses ."
36
+
37
+ #: wp-to-twitter-manager.php:103
38
+ msgid "Twitter-compatible API settings updated. "
39
+ msgstr "Twitteriga ühilduva API seaded uuendatud."
40
+
41
+ #: wp-to-twitter-manager.php:105
42
+ msgid "You have configured WP to Twitter to use both Twitter and your selected service. Remember to add your username and login information for both services."
43
+ msgstr "Sa oled konfigureerinud WP to Twitter kasutama nii Twitter'it kui sinu valitud teenust. Ära unusta lisamast oma kasutajanime ja sisselogimise informatsiooni mõlema teenuse jaoks."
44
+
45
+ #: wp-to-twitter-manager.php:114
46
+ msgid "Sorry! I couldn't get in touch with the Twitter servers to post your new blog post. Your tweet has been stored in a custom field attached to the post, so you can Tweet it manually if you wish! "
47
+ msgstr "Vabanda! Ma ei saanud ühendust Twitter serveriga, et postitada su uut blogi sissekannet. Su Säuts (tweet) on salvestatud postituse juures asuvasse kohandatud välja nii, et saad seda säutsu käsitsi säutsuda (Tweetida), kui soovid!"
48
+
49
+ #: wp-to-twitter-manager.php:116
50
+ msgid "Sorry! I couldn't get in touch with the Twitter servers to post your <strong>new link</strong>! You'll have to post it manually, I'm afraid. "
51
+ msgstr "Vabandust! Ei saanud postitada su <strong>uut linki</strong>, sest ei saanud ühendust Twitteri serveritega. Pead selle vist kahjuks käsitsi postitama."
52
+
53
+ #: wp-to-twitter-manager.php:145
54
+ msgid "WP to Twitter Advanced Options Updated"
55
+ msgstr "WP to Twitter Täiendavad võimalused uuendatud."
56
+
57
+ #: wp-to-twitter-manager.php:162
58
+ msgid "You must add your Bit.ly login and API key in order to shorten URLs with Bit.ly."
59
+ msgstr "Peate lisama oma Bit.ly login'i ja API salasõna, et lühendada URL'e Bit.ly.'ga."
60
+
61
+ #: wp-to-twitter-manager.php:166
62
+ msgid "You must add your YOURLS remote URL, login, and password in order to shorten URLs with a remote installation of YOURLS."
63
+ msgstr "Peate lisama oma YOURLS'i serveri URL'i, kasutajatunnuse ja salasõna, et URL'e lühendada YOURLS'i kauginstallatsiooniga."
64
+
65
+ #: wp-to-twitter-manager.php:170
66
+ msgid "You must add your YOURLS server path in order to shorten URLs with a remote installation of YOURLS."
67
+ msgstr "Peate lisama oma YOURLS serveriaadressi, et URL'e lühendada YOURLS'i kauginstallatsiooniga / et lühendada YOURLS'i kauginstallatsiooniga URL'e."
68
+
69
+ #: wp-to-twitter-manager.php:174
70
+ msgid "WP to Twitter Options Updated"
71
+ msgstr "WP to Twitter valikud uuendatud"
72
+
73
+ #: wp-to-twitter-manager.php:184
74
+ msgid "Category limits updated."
75
+ msgstr "Kategooriapiirangud uuendatud."
76
+
77
+ #: wp-to-twitter-manager.php:188
78
+ msgid "Category limits unset."
79
+ msgstr "Kategooriapiirangud pole määratud."
80
+
81
+ #: wp-to-twitter-manager.php:209
82
+ msgid "Twitter login and password updated. "
83
+ msgstr "Twitteri kasutajanimi ja salasõna uuendatud."
84
+
85
+ #: wp-to-twitter-manager.php:211
86
+ msgid "You need to provide your Twitter login and password! "
87
+ msgstr "Pead kasutama oma Twitteri kasutajanime ja salasõna!"
88
+
89
+ #: wp-to-twitter-manager.php:218
90
+ msgid "YOURLS password updated. "
91
+ msgstr "YOURLS salasõna uuendatud."
92
+
93
+ #: wp-to-twitter-manager.php:221
94
+ msgid "YOURLS password deleted. You will be unable to use your remote YOURLS account to create short URLS."
95
+ msgstr "YOURLS kasutajatunnus kustutatud. Sa ei saa kasutada Bit.ly API't ilma oma kasutajatunnuseta."
96
+
97
+ #: wp-to-twitter-manager.php:223
98
+ msgid "Failed to save your YOURLS password! "
99
+ msgstr "Ei õnnestunud salvestada sinu YOURLS salasõna!"
100
+
101
+ #: wp-to-twitter-manager.php:227
102
+ msgid "YOURLS username added. "
103
+ msgstr "YOURLS kasutajanimi lisatud."
104
+
105
+ #: wp-to-twitter-manager.php:231
106
+ msgid "YOURLS API url added. "
107
+ msgstr "YOURLS API URL lisatud."
108
+
109
+ #: wp-to-twitter-manager.php:236
110
+ msgid "YOURLS local server path added. "
111
+ msgstr "YOURLS kohaliku serveri viide lisatud."
112
+
113
+ #: wp-to-twitter-manager.php:238
114
+ msgid "The path to your YOURLS installation is not correct. "
115
+ msgstr "viide sy YOURLS installatsioonifailidele pole korrektne."
116
+
117
+ #: wp-to-twitter-manager.php:243
118
+ msgid "YOURLS will use Post ID for short URL slug."
119
+ msgstr "YOURLS kasutab postituse ID'd lühikese URL'i juhuslikult genereeritud märgendi (URL slug) jaoks. "
120
+
121
+ #: wp-to-twitter-manager.php:246
122
+ msgid "YOURLS will not use Post ID for the short URL slug."
123
+ msgstr "YOURLS ei kasuta postituse ID'd lühikese URL'i juhuslikult genereeritud märgendi (URL slug) jaoks. "
124
+
125
+ #: wp-to-twitter-manager.php:253
126
+ msgid "Cligs API Key Updated"
127
+ msgstr "Cligs API kood uuendatud"
128
+
129
+ #: wp-to-twitter-manager.php:256
130
+ msgid "Cli.gs API Key deleted. Cli.gs created by WP to Twitter will no longer be associated with your account. "
131
+ msgstr "Cligs API kood kustutatud. WP to Twitter'i poolt loodud Cli.gs ei ole enam sinu kontoga seotud. "
132
+
133
+ #: wp-to-twitter-manager.php:258
134
+ msgid "Cli.gs API Key not added - <a href='http://cli.gs/user/api/'>get one here</a>! "
135
+ msgstr "Cligs API koodi pole lisatud - <a href='http://cli.gs/user/api/'> saad selle siit</a>! "
136
+
137
+ #: wp-to-twitter-manager.php:264
138
+ msgid "Bit.ly API Key Updated."
139
+ msgstr "Bit.ly API kood uuendatud."
140
+
141
+ #: wp-to-twitter-manager.php:267
142
+ msgid "Bit.ly API Key deleted. You cannot use the Bit.ly API without an API key. "
143
+ msgstr "Bit.ly API kood kustutatud. Sa ei saa Bit.ly API't kasutada ilma API koodita."
144
+
145
+ #: wp-to-twitter-manager.php:269
146
+ msgid "Bit.ly API Key not added - <a href='http://bit.ly/account/'>get one here</a>! An API key is required to use the Bit.ly URL shortening service."
147
+ msgstr "Bit.ly API koodi pole lisatud - <a href='http://bit.ly/account/'> saad selle siit </a>! Bit.ly URL'i lühendamise teenuseks on vaja API koodi."
148
+
149
+ #: wp-to-twitter-manager.php:273
150
+ msgid " Bit.ly User Login Updated."
151
+ msgstr "Bit.ly kasutajatunnus uuendatud."
152
+
153
+ #: wp-to-twitter-manager.php:276
154
+ msgid "Bit.ly User Login deleted. You cannot use the Bit.ly API without providing your username. "
155
+ msgstr "Bit.ly kasutajatunnus kustutatud. Sa ei saa kasutada Bit.ly API't ilma oma kasutajatunnuseta."
156
+
157
+ #: wp-to-twitter-manager.php:278
158
+ msgid "Bit.ly Login not added - <a href='http://bit.ly/account/'>get one here</a>! "
159
+ msgstr "Bit.ly kasutajatunnust pole lisatud - <a href='http://bit.ly/account/'> saad selle siit</a>! "
160
+
161
+ #: wp-to-twitter-manager.php:372
162
+ msgid "<li><strong>Your selected URL shortener does not require testing.</strong></li>"
163
+ msgstr "<li><strong>Sinu poolt valitud URL lühendaja ei vaja testimist.</strong></li>"
164
+
165
+ #: wp-to-twitter-manager.php:375
166
+ msgid "<li class=\"error\"><strong>WP to Twitter was unable to contact your selected URL shortening service.</strong></li>"
167
+ msgstr "<li class=\"error\"><strong>WP to Twitter ei saavutanud ühenduslt sinu poolt valitud URL lühendusteenusega.</strong></li>"
168
+
169
+ #: wp-to-twitter-manager.php:379
170
+ msgid "<li><strong>WP to Twitter successfully contacted your selected URL shortening service.</strong> The following link should point to your blog homepage:"
171
+ msgstr "<li><strong>WP to Twitter saavutas edukalt ühenduse sinu poolt valitud URL lühendusteenusega.</strong> Järgnev link peaks viitama sinu blogi kodulehele:"
172
+
173
+ #: wp-to-twitter-manager.php:390
174
+ msgid "<li><strong>WP to Twitter successfully submitted a status update to your primary update service.</strong></li>"
175
+ msgstr "<li><strong> WP to Twitter saatis edukalt staatuse värskenduse su peamisele uuendusteenusele.</strong></li>"
176
+
177
+ #: wp-to-twitter-manager.php:393
178
+ msgid "<li class=\"error\"><strong>WP to Twitter failed to submit an update to your primary update service.</strong></li>"
179
+ msgstr "<li class=\"error\"><strong>WP to Twitter WP to Twitter ei suutnud saata värskendust su peamisele uuendusteenusele.</strong></li>"
180
+
181
+ #: wp-to-twitter-manager.php:394
182
+ msgid "Twitter returned this error:"
183
+ msgstr "Twitter saatis sellise veateate:"
184
+
185
+ #: wp-to-twitter-manager.php:398
186
+ msgid "<li class=\"error\"><strong>WP to Twitter failed to contact your primary update service.</strong></li>"
187
+ msgstr "<li class=\"error\"><strong>WP to Twitter WP to Twitter ei suutnud saada ühendust su peamise uuendusteenusega.</strong></li>"
188
+
189
+ #: wp-to-twitter-manager.php:399
190
+ msgid "No error was returned."
191
+ msgstr "Veateateid ei edastatud."
192
+
193
+ #: wp-to-twitter-manager.php:406
194
+ msgid "<li><strong>WP to Twitter successfully submitted a status update to your secondary update service.</strong></li>"
195
+ msgstr "<li><strong>WP to Twitter saatis staatuse värskenduse edukalt su sekundaarsele uuendusteenusele.</strong></li>"
196
+
197
+ #: wp-to-twitter-manager.php:409
198
+ msgid "<li class=\"error\"><strong>WP to Twitter failed to submit an update to your secondary update service.</strong></li>"
199
+ msgstr "<li class=\"error\"><strong>WP to Twitter ei suutnud saata värskendust su sekundaarsele uuendusteenusele.</strong></li>"
200
+
201
+ #: wp-to-twitter-manager.php:410
202
+ msgid "The service returned this error:"
203
+ msgstr "Teenus edastas järgmise veateate:"
204
+
205
+ #: wp-to-twitter-manager.php:417
206
+ msgid "<li><strong>Your server should run WP to Twitter successfully.</strong></li>"
207
+ msgstr "<li><strong>Sinu server peaks WP to Twitter'it edukalt jooksutama.</strong></li>"
208
+
209
+ #: wp-to-twitter-manager.php:420
210
+ msgid "<li class=\"error\"><strong>Your server does not appear to support the required methods for WP to Twitter to function.</strong> You can try it anyway - these tests aren't perfect.</li>"
211
+ msgstr "<li class=\"error\"><strong>Tundub, et sinu server ei toeta meetodeid, mis on vajalikud WP to Twitteri töötamiseks .</strong> Võid seda siiski proovida - kasutusele olevad testid ei ole täiuslikud.</li>"
212
+
213
+ #: wp-to-twitter-manager.php:430
214
+ msgid "This plugin may not fully work in your server environment. The plugin failed to contact both a URL shortener API and the Twitter service API."
215
+ msgstr "See plugin ei pruugi sinu serveri keskkonnas täielikult töötada. Plugin ei saanud ühendust URL'i lühendava API'ga ega Twitteri API teenusega."
216
+
217
+ #: wp-to-twitter-manager.php:444
218
+ msgid "WP to Twitter Options"
219
+ msgstr "WP to Twitter Valikud"
220
+
221
+ #: wp-to-twitter-manager.php:452
222
+ #: wp-to-twitter.php:925
223
+ msgid "Get Support"
224
+ msgstr "Abi"
225
+
226
+ #: wp-to-twitter-manager.php:453
227
+ msgid "Export Settings"
228
+ msgstr "Ekspordi seaded"
229
+
230
+ #: wp-to-twitter-manager.php:454
231
+ #: wp-to-twitter.php:925
232
+ msgid "Make a Donation"
233
+ msgstr "Tee annetus"
234
+
235
+ #: wp-to-twitter-manager.php:469
236
+ msgid "Shortcodes available in post update templates:"
237
+ msgstr "Lühendkoodid on saadaval uuendusjärgsetes mallides"
238
+
239
+ #: wp-to-twitter-manager.php:471
240
+ msgid "<code>#title#</code>: the title of your blog post"
241
+ msgstr "<code>#title#</code>: Blogipostituse pealkiri"
242
+
243
+ #: wp-to-twitter-manager.php:472
244
+ msgid "<code>#blog#</code>: the title of your blog"
245
+ msgstr "<code>#blog#</code>: Blogi nimi või pealkiri"
246
+
247
+ #: wp-to-twitter-manager.php:473
248
+ msgid "<code>#post#</code>: a short excerpt of the post content"
249
+ msgstr "<code>#post#</code>: lühike väljavõte postituse sisust"
250
+
251
+ #: wp-to-twitter-manager.php:474
252
+ msgid "<code>#category#</code>: the first selected category for the post"
253
+ msgstr "<code>#category#</code>: postituse sisu esimene valitud kategooria"
254
+
255
+ #: wp-to-twitter-manager.php:475
256
+ msgid "<code>#date#</code>: the post date"
257
+ msgstr "<code>#date#</code>: postituse kuupäev"
258
+
259
+ #: wp-to-twitter-manager.php:476
260
+ msgid "<code>#url#</code>: the post URL"
261
+ msgstr "<code>#url#</code>: postituse URL"
262
+
263
+ #: wp-to-twitter-manager.php:477
264
+ msgid "<code>#author#</code>: the post author'"
265
+ msgstr "<code>#author#</code>: postituse autor'"
266
+
267
+ #: wp-to-twitter-manager.php:479
268
+ msgid "You can also create custom shortcodes to access WordPress custom fields. Use doubled square brackets surrounding the name of your custom field to add the value of that custom field to your status update. Example: <code>[[custom_field]]</code></p>"
269
+ msgstr "Võite luua ka kohandatud lühendkoode, et kasutada WordPressi kohandatud välju. Oma staatuse värskendusele kohandatud välja väärtuse lisamiseks kasuta oma kohandatud välja ümber kahekordseid kandilisi sulge. Näide: <code>[[custom_field]]</code></p>"
270
+
271
+ #: wp-to-twitter-manager.php:484
272
+ msgid "<p>One or more of your last posts has failed to send it's status update to Twitter. Your Tweet has been saved in your post custom fields, and you can re-Tweet it at your leisure.</p>"
273
+ msgstr "<p> Üks või rohkem sinu viimastest postitustest ei suutnud staatuse värskendamist Twitterile saata. Sinu Säuts on salvestatud postituse kohandatud väljadele ning võite seda soovi korral uuesti Säutsuda. </p>"
274
+
275
+ #: wp-to-twitter-manager.php:487
276
+ msgid "<p>The query to the URL shortener API failed, and your URL was not shrunk. The full post URL was attached to your Tweet. Check with your URL shortening provider to see if there are any known issues. [<a href=\"http://blog.cli.gs\">Cli.gs Blog</a>] [<a href=\"http://blog.bit.ly\">Bit.ly Blog</a>]</p>"
277
+ msgstr "<p> Päring URL'i lühendava API suhtes ebaõnnestus ning sinu URL'i ei lühendatud. Sinu Säutsule lisati täispikkuses URL. Kontrolli, kas sinu URL'ide lühendamisteenuse pakkujal esineb levinud probleeme. [<a href=\"http://blog.cli.gs\">Cli.gs Blog</a>] [<a href=\"http://blog.bit.ly\">Bit.ly Blog</a>]</p>"
278
+
279
+ #: wp-to-twitter-manager.php:494
280
+ msgid "Clear 'WP to Twitter' Error Messages"
281
+ msgstr "Puhasta 'WP to Twitter' veateated"
282
+
283
+ #: wp-to-twitter-manager.php:507
284
+ msgid "Basic Settings"
285
+ msgstr "Põhiseaded"
286
+
287
+ #: wp-to-twitter-manager.php:513
288
+ msgid "Tweet Templates"
289
+ msgstr "Säutsumallid"
290
+
291
+ #: wp-to-twitter-manager.php:516
292
+ msgid "Update when a post is published"
293
+ msgstr "Uuenda, kui tehakse uus postitus"
294
+
295
+ #: wp-to-twitter-manager.php:516
296
+ msgid "Text for new post updates:"
297
+ msgstr "Tekst uute postituste jaoks:"
298
+
299
+ #: wp-to-twitter-manager.php:521
300
+ msgid "Update when a post is edited"
301
+ msgstr "Uuenda, kui postitust muudetakse"
302
+
303
+ #: wp-to-twitter-manager.php:521
304
+ msgid "Text for editing updates:"
305
+ msgstr "Tekst postituste muutmise jaoks:"
306
+
307
+ #: wp-to-twitter-manager.php:525
308
+ msgid "Update Twitter when new Wordpress Pages are published"
309
+ msgstr "Värskenda Twitterit pärast uute Wordpressi lehekülgede avaldamist"
310
+
311
+ #: wp-to-twitter-manager.php:525
312
+ msgid "Text for new page updates:"
313
+ msgstr "Värske lehe uuenduse tekst:"
314
+
315
+ #: wp-to-twitter-manager.php:529
316
+ msgid "Update Twitter when WordPress Pages are edited"
317
+ msgstr "Värskenda Twitterit, kui muudetakse WordPressi lehekülgi"
318
+
319
+ #: wp-to-twitter-manager.php:529
320
+ msgid "Text for page edit updates:"
321
+ msgstr "Lehekülje muudatuste tekst:"
322
+
323
+ #: wp-to-twitter-manager.php:533
324
+ msgid "Update Twitter when you post a Blogroll link"
325
+ msgstr "Värskenda Twitterit, kui postitad Blogrolli lingi"
326
+
327
+ #: wp-to-twitter-manager.php:534
328
+ msgid "Text for new link updates:"
329
+ msgstr "Tekst uute lingivärskenduste jaoks:"
330
+
331
+ #: wp-to-twitter-manager.php:534
332
+ msgid "Available shortcodes: <code>#url#</code>, <code>#title#</code>, and <code>#description#</code>."
333
+ msgstr "Olemasolevad lühikoodid: <code>#url#</code>, <code>#title#</code>, ja <code>#description#</code>."
334
+
335
+ #: wp-to-twitter-manager.php:538
336
+ msgid "Choose your short URL service (account settings below)"
337
+ msgstr "Vali oma lühikese URL'i teenus (kontoseaded all)"
338
+
339
+ #: wp-to-twitter-manager.php:541
340
+ msgid "Use Cli.gs for my URL shortener."
341
+ msgstr "Kasuta Cli.gs'i oma URL'ide lühendajana."
342
+
343
+ #: wp-to-twitter-manager.php:542
344
+ msgid "Use Bit.ly for my URL shortener."
345
+ msgstr "Kasuta Bit.ly'd oma URL'ide lühendajana."
346
+
347
+ #: wp-to-twitter-manager.php:543
348
+ msgid "YOURLS (installed on this server)"
349
+ msgstr "YOURLS (installeeritud sellesse serverisse)"
350
+
351
+ #: wp-to-twitter-manager.php:544
352
+ msgid "YOURLS (installed on a remote server)"
353
+ msgstr "YOURLS (installeeritud kaugserverisse)"
354
+
355
+ #: wp-to-twitter-manager.php:545
356
+ msgid "Use WordPress as a URL shortener."
357
+ msgstr "Kasuta WordPressi URL'ide lühendajana."
358
+
359
+ #: wp-to-twitter-manager.php:546
360
+ msgid "Don't shorten URLs."
361
+ msgstr "Ära lühenda URL'e."
362
+
363
+ #: wp-to-twitter-manager.php:548
364
+ msgid "Using WordPress as a URL shortener will send URLs to Twitter in the default URL format for WordPress: <code>http://domain.com/wpdir/?p=123</code>. Google Analytics is not available when using WordPress shortened URLs."
365
+ msgstr "Kasutades URL'ide lühendamiseks WordPressi saadad URL'i Twitterisse, kasutades Wordpressi vaikevalikuga määratud URL formaati: <code>http://domain.com/wpdir/?p=123</code>. Google Analytics'it ei saa kasutada, kui kasutate WordPressi poolt lühendatud URL'e."
366
+
367
+ #: wp-to-twitter-manager.php:554
368
+ msgid "Save WP->Twitter Options"
369
+ msgstr "Salvesta WP->Twitter seaded"
370
+
371
+ #: wp-to-twitter-manager.php:580
372
+ #: wp-to-twitter-manager.php:599
373
+ msgid "(<em>Saved</em>)"
374
+ msgstr "(<em>Salvestatud</em>)"
375
+
376
+ #: wp-to-twitter-manager.php:584
377
+ #: wp-to-twitter-manager.php:603
378
+ msgid "&raquo; <small>Don't have a Twitter account? <a href='http://www.twitter.com'>Get one for free here</a>"
379
+ msgstr "&raquo; <small> Sul puudubTwitter'i konto? <a href='http://www.twitter.com'> Siit saad selle tasuta</a>"
380
+
381
+ #: wp-to-twitter-manager.php:590
382
+ msgid "Your Twitter account details"
383
+ msgstr "Sinu Twitteri konto detailid"
384
+
385
+ #: wp-to-twitter-manager.php:591
386
+ msgid "These are your settings for Twitter as a second update service."
387
+ msgstr "Need on sinu seaded Twitterile kui sekundaarsele uuendusteenusele."
388
+
389
+ #: wp-to-twitter-manager.php:595
390
+ msgid "Your Twitter username:"
391
+ msgstr "Sinu Twitteri kasutajanimi:"
392
+
393
+ #: wp-to-twitter-manager.php:599
394
+ msgid "Your Twitter password:"
395
+ msgstr "Sinu Twitteri salasõna:"
396
+
397
+ #: wp-to-twitter-manager.php:603
398
+ msgid "Save Twitter Login Info"
399
+ msgstr "Salvesta Twitteri login-info"
400
+
401
+ #: wp-to-twitter-manager.php:609
402
+ msgid "Your Cli.gs account details"
403
+ msgstr "Sinu Cli.gs konto detailid"
404
+
405
+ #: wp-to-twitter-manager.php:614
406
+ msgid "Your Cli.gs <abbr title='application programming interface'>API</abbr> Key:"
407
+ msgstr "Sinu Cli.gs <abbr title='application programming interface'>API</abbr> kood:"
408
+
409
+ #: wp-to-twitter-manager.php:620
410
+ msgid "Don't have a Cli.gs account or Cligs API key? <a href='http://cli.gs/user/api/'>Get one free here</a>!<br />You'll need an API key in order to associate the Cligs you create with your Cligs account."
411
+ msgstr "Sul puudub Cli.gs konto või Cligs API kood? <a href='http://cli.gs/user/api/'>Siit saad selle tasuta! </a>!<br /> Vajate API koodi, et seostada oma Cligs postitusi oma Cligs kontoga."
412
+
413
+ #: wp-to-twitter-manager.php:626
414
+ msgid "Your Bit.ly account details"
415
+ msgstr "Teie Bit.ly konto detailid:"
416
+
417
+ #: wp-to-twitter-manager.php:631
418
+ msgid "Your Bit.ly username:"
419
+ msgstr "Sinu Bit.ly kasutajanimi:"
420
+
421
+ #: wp-to-twitter-manager.php:635
422
+ msgid "Your Bit.ly <abbr title='application programming interface'>API</abbr> Key:"
423
+ msgstr "Sinu Bit.ly <abbr title='application programming interface'>API</abbr> kood:"
424
+
425
+ #: wp-to-twitter-manager.php:642
426
+ msgid "Save Bit.ly API Key"
427
+ msgstr "Salvesta Bit.ly API kood"
428
+
429
+ #: wp-to-twitter-manager.php:642
430
+ msgid "Clear Bit.ly API Key"
431
+ msgstr "Puhasta Bit.ly API kood"
432
+
433
+ #: wp-to-twitter-manager.php:642
434
+ msgid "A Bit.ly API key and username is required to shorten URLs via the Bit.ly API and WP to Twitter."
435
+ msgstr " Bit.ly API ja WP to Twitter abil URL'ide lühendamiseks on vaja Bit.ly API koodi ja kasutajanime."
436
+
437
+ #: wp-to-twitter-manager.php:647
438
+ msgid "Your YOURLS account details"
439
+ msgstr "Sinu YOURLS konto detailid"
440
+
441
+ #: wp-to-twitter-manager.php:651
442
+ msgid "Path to the YOURLS config file (Local installations)"
443
+ msgstr "Viide YOURLS konfiguratsioonifailile (kohalikud installatsioonid)"
444
+
445
+ #: wp-to-twitter-manager.php:652
446
+ #: wp-to-twitter-manager.php:656
447
+ msgid "Example:"
448
+ msgstr "Näide:"
449
+
450
+ #: wp-to-twitter-manager.php:655
451
+ msgid "URI to the YOURLS API (Remote installations)"
452
+ msgstr "YOURLS API (kauginstallatsioon) URI"
453
+
454
+ #: wp-to-twitter-manager.php:659
455
+ msgid "Your YOURLS username:"
456
+ msgstr "Sinu YOURLS kasutajanimi:"
457
+
458
+ #: wp-to-twitter-manager.php:663
459
+ msgid "Your YOURLS password:"
460
+ msgstr "Sinu YOURLS salasõna:"
461
+
462
+ #: wp-to-twitter-manager.php:663
463
+ msgid "<em>Saved</em>"
464
+ msgstr "<em>Salvestatud</em>"
465
+
466
+ #: wp-to-twitter-manager.php:667
467
+ msgid "Use Post ID for YOURLS url slug."
468
+ msgstr "Kasuta postituse ID'd YOURLS URL'i juhuslikult genereeritud märgendite (URL slug) jaoks. "
469
+
470
+ #: wp-to-twitter-manager.php:672
471
+ msgid "Save YOURLS Account Info"
472
+ msgstr "Salvesta YOURLS kontoinfo"
473
+
474
+ #: wp-to-twitter-manager.php:672
475
+ msgid "Clear YOURLS password"
476
+ msgstr "Nulli YOURLS salasõna"
477
+
478
+ #: wp-to-twitter-manager.php:672
479
+ msgid "A YOURLS password and username is required to shorten URLs via the remote YOURLS API and WP to Twitter."
480
+ msgstr "URL'ide lühendaimseks kaug-YOURLS API ja WP to Twitter'i abil on vaja YOURLS salasõna ja kasutajanime."
481
+
482
+ #: wp-to-twitter-manager.php:677
483
+ msgid "Change Twitter-compatible Service"
484
+ msgstr "Muuda Twitteriga ühilduvat teenust"
485
+
486
+ #: wp-to-twitter-manager.php:681
487
+ msgid "URI for Twitter-compatible Post Status API"
488
+ msgstr "Twitteriga ühilduva postituse staatuse API URI "
489
+
490
+ #: wp-to-twitter-manager.php:685
491
+ msgid "Service Name"
492
+ msgstr "Teenuse nimi"
493
+
494
+ #: wp-to-twitter-manager.php:689
495
+ msgid "Status Update Character Limit"
496
+ msgstr "Staatuse värskenduse tähemärkide limiit"
497
+
498
+ #: wp-to-twitter-manager.php:693
499
+ msgid "Post status updates to both services."
500
+ msgstr "Postita staatusevärskendus mõlemasse teenusesse."
501
+
502
+ #: wp-to-twitter-manager.php:696
503
+ msgid "Reset to normal Twitter settings"
504
+ msgstr "Taasta Twitteri algseaded"
505
+
506
+ #: wp-to-twitter-manager.php:699
507
+ msgid "Update Twitter Compatible Service"
508
+ msgstr "Uuenda Twitteriga ühilduvat teenust:"
509
+
510
+ #: wp-to-twitter-manager.php:699
511
+ msgid "&raquo; <small>You can use any service using the Twitter-compatible REST API returning data in JSON format with this plugin. Twitter-compatible services include <a href='http://identi.ca'>Identi.ca</a>, <a href='http://shoutem.com'>Shoutem.com</a> and <a href='http://chirup.com'>Chirup.com</a>. <strong>No support will be provided for services other than Twitter.</strong>"
512
+ msgstr "&raquo; <small>Selle pluginiga võite kasutada ükskõik millist teenust, mis kasutab Twitteriga ühilduvat REST API't, mis tagastab andmeid JSON formaadis. Twitteriga ühilduvate teeunste hulka kuuluvad <a href='http://identi.ca'>Identi.ca</a>, <a href='http://shoutem.com'>Shoutem.com</a> ja <a href='http://chirup.com'>Chirup.com</a>. <strong> Tuge pakutakse ainult Twitteri teenustele.</strong>"
513
+
514
+ #: wp-to-twitter-manager.php:716
515
+ msgid "Advanced Settings"
516
+ msgstr "Täpsemad seaded"
517
+
518
+ #: wp-to-twitter-manager.php:723
519
+ msgid "Advanced Tweet settings"
520
+ msgstr "Täpsemad Säutsuseaded"
521
+
522
+ #: wp-to-twitter-manager.php:726
523
+ msgid "Add tags as hashtags on Tweets"
524
+ msgstr "Lisa Säutsudele märgendeid räsidena (hashtag)."
525
+
526
+ #: wp-to-twitter-manager.php:727
527
+ msgid "Spaces replaced with:"
528
+ msgstr "Tühikud asendatatakse sellega:"
529
+
530
+ #: wp-to-twitter-manager.php:728
531
+ msgid "Default replacement is an underscore (<code>_</code>). Use <code>[ ]</code> to remove spaces entirely."
532
+ msgstr "Asendamiseks on vaikevalikuna kasutusel alakriips (<code>_</code>). Kasuta <code>[ ]</code> tühikute täielikuks eemaldamiseks."
533
+
534
+ #: wp-to-twitter-manager.php:731
535
+ msgid "Maximum number of tags to include:"
536
+ msgstr "Maksimaalne kaasatavate märgendite arv:"
537
+
538
+ #: wp-to-twitter-manager.php:732
539
+ msgid "Maximum length in characters for included tags:"
540
+ msgstr "Kaasatavate märgendite maksimumpikkus tähemärkides:"
541
+
542
+ #: wp-to-twitter-manager.php:733
543
+ msgid "These options allow you to restrict the length and number of WordPress tags sent to Twitter as hashtags. Set to <code>0</code> or leave blank to allow any and all tags."
544
+ msgstr "Need valikud võimaldavad sul piirata pikkust ja arvu WordPressi märgenditel, mis on Twitterisse saadetud räsidena (hashtag). Määra <code>0</code> või jäta tühjaks, et lubada kõiki ja igasuguseid märgendeid."
545
+
546
+ #: wp-to-twitter-manager.php:736
547
+ msgid "Length of post excerpt (in characters):"
548
+ msgstr "Postituse väljavõtte pikkus tähemärkides:"
549
+
550
+ #: wp-to-twitter-manager.php:736
551
+ msgid "By default, extracted from the post itself. If you use the 'Excerpt' field, that will be used instead."
552
+ msgstr "Vaikeseadete järgi postitusest välja võetud. Seda kasutatakse siis, kui kasutate 'Excerpt'-välja."
553
+
554
+ #: wp-to-twitter-manager.php:739
555
+ msgid "WP to Twitter Date Formatting:"
556
+ msgstr "WP to Twitter vormindamine:"
557
+
558
+ #: wp-to-twitter-manager.php:740
559
+ msgid "Default is from your general settings. <a href='http://codex.wordpress.org/Formatting_Date_and_Time'>Date Formatting Documentation</a>."
560
+ msgstr "Vaikeseaded lähtuvad sinu üldseadetest. <a href='http://codex.wordpress.org/Formatting_Date_and_Time'>Date Formatting Documentation</a>."
561
+
562
+ #: wp-to-twitter-manager.php:744
563
+ msgid "Custom text before all Tweets:"
564
+ msgstr "Kohandatud tekst enne kõiki Säutse:"
565
+
566
+ #: wp-to-twitter-manager.php:745
567
+ msgid "Custom text after all Tweets:"
568
+ msgstr "Kohandatud tekst kõigile Säutsudele:"
569
+
570
+ #: wp-to-twitter-manager.php:748
571
+ msgid "Custom field for an alternate URL to be shortened and Tweeted:"
572
+ msgstr "Kohandatud väli lühendatavale ja Säutsutavale alternatiivsele URL'ile:"
573
+
574
+ #: wp-to-twitter-manager.php:749
575
+ msgid "You can use a custom field to send an alternate URL for your post. The value is the name of a custom field containing your external URL."
576
+ msgstr "Võite kasutada kohandatud välja, et oma postitusse saata alternatiivne URL. Väärtuseks on kohandatud välja nimi, mis sisaldab serveri URL'i."
577
+
578
+ #: wp-to-twitter-manager.php:753
579
+ msgid "Special Cases when WordPress should send a Tweet"
580
+ msgstr "Erijuhtumid, mille puhul Wordpress peaks saatma Säutsu."
581
+
582
+ #: wp-to-twitter-manager.php:756
583
+ msgid "Do not post status updates by default"
584
+ msgstr "Staatuse värskenduste postitamine on vaikseaseadena väljalülitatud."
585
+
586
+ #: wp-to-twitter-manager.php:757
587
+ msgid "By default, all posts meeting other requirements will be posted to Twitter. Check this to change your setting."
588
+ msgstr "Vaikeseadena postitatakse Twitterisse kõik postitused, mis vastavad teistele nõuetele. Märgi see valik oma seadistuse muutmiseks."
589
+
590
+ #: wp-to-twitter-manager.php:761
591
+ msgid "Send Twitter Updates on remote publication (Post by Email or XMLRPC Client)"
592
+ msgstr "Saada Twitteri värskendused kaug-avaldamisega (postita e-mailiga või XMLRPC kliendiga)"
593
+
594
+ #: wp-to-twitter-manager.php:765
595
+ msgid "Update Twitter when a post is published using QuickPress"
596
+ msgstr "Värskenda Twitterit, kui tehakse postitus kasutades QuickPress'i"
597
+
598
+ #: wp-to-twitter-manager.php:769
599
+ msgid "Google Analytics Settings"
600
+ msgstr "Google Analytics'i seaded"
601
+
602
+ #: wp-to-twitter-manager.php:770
603
+ msgid "You can track the response from Twitter using Google Analytics by defining a campaign identifier here. You can either define a static identifier or a dynamic identifier. Static identifiers don't change from post to post; dynamic identifiers are derived from information relevant to the specific post. Dynamic identifiers will allow you to break down your statistics by an additional variable."
604
+ msgstr "Saate järgida Twitteri vastukaja, kasutades Google Analytics'it, ning defineerides siin kampaania identifikaatori. Võite kasutada staatilist või dünaamilist identifikaatorit. Staatilised identifikaatorid ei muutu erinevate postituste puhul kuid dünaamilised identifikaatorid tuletatakse iga posti suhtes relevantsest informatsioonist. Dünaamilised identifikaatorid võimaldavad sul statistikat lisamuutujate abil täpsustada."
605
+
606
+ #: wp-to-twitter-manager.php:774
607
+ msgid "Use a Static Identifier with WP-to-Twitter"
608
+ msgstr "Kasuta staatilist identifikaatorit koos WP-to-Twitter'iga."
609
+
610
+ #: wp-to-twitter-manager.php:775
611
+ msgid "Static Campaign identifier for Google Analytics:"
612
+ msgstr "Staatiline kampaania identifikaator Google Analytics'i jaoks"
613
+
614
+ #: wp-to-twitter-manager.php:779
615
+ msgid "Use a dynamic identifier with Google Analytics and WP-to-Twitter"
616
+ msgstr "Kasuta Google Analytics'i ja WP-to-Twitter'iga dünaamilist identifikaatorit. "
617
+
618
+ #: wp-to-twitter-manager.php:780
619
+ msgid "What dynamic identifier would you like to use?"
620
+ msgstr "Millist dünaamilist identifikaatorit soovid kasutada?"
621
+
622
+ #: wp-to-twitter-manager.php:782
623
+ msgid "Category"
624
+ msgstr "Kategooria"
625
+
626
+ #: wp-to-twitter-manager.php:783
627
+ msgid "Post ID"
628
+ msgstr "Postituse ID"
629
+
630
+ #: wp-to-twitter-manager.php:784
631
+ msgid "Post Title"
632
+ msgstr "Postituse pealkiri"
633
+
634
+ #: wp-to-twitter-manager.php:785
635
+ msgid "Author"
636
+ msgstr "Autor"
637
+
638
+ #: wp-to-twitter-manager.php:790
639
+ msgid "Individual Authors"
640
+ msgstr "Autorid"
641
+
642
+ #: wp-to-twitter-manager.php:793
643
+ msgid "Authors have individual Twitter accounts"
644
+ msgstr "Autoritel on oma Twitteri kontod"
645
+
646
+ #: wp-to-twitter-manager.php:793
647
+ msgid "Authors can set their own Twitter username and password in their user profile."
648
+ msgstr "Autorid saavad oma Twitteri kasutajanime ja salasõna oma kasutajaprofiilist ise määrata."
649
+
650
+ #: wp-to-twitter-manager.php:797
651
+ msgid "Disable Error Messages"
652
+ msgstr "Keela veateated"
653
+
654
+ #: wp-to-twitter-manager.php:800
655
+ msgid "Disable global URL shortener error messages."
656
+ msgstr "Lülita välja globaalse URL lühendaja veateated."
657
+
658
+ #: wp-to-twitter-manager.php:804
659
+ msgid "Disable global Twitter API error messages."
660
+ msgstr "Lülita välja globaalsed Twitter API veateated."
661
+
662
+ #: wp-to-twitter-manager.php:810
663
+ msgid "Save Advanced WP->Twitter Options"
664
+ msgstr "Salvesta täiendavad WP->Twitter seaded"
665
+
666
+ #: wp-to-twitter-manager.php:824
667
+ msgid "Limit Updating Categories"
668
+ msgstr "Piira Värskendamise Kategooriaid"
669
+
670
+ #: wp-to-twitter-manager.php:828
671
+ msgid "Select which blog categories will be Tweeted. "
672
+ msgstr "Määra, milliseid blogikategooriaid tahad Säutsuda."
673
+
674
+ #: wp-to-twitter-manager.php:831
675
+ msgid "<em>Category limits are disabled.</em>"
676
+ msgstr "<em>Kategooriapiirangud on välja lülitatud.</em>"
677
+
678
+ #: wp-to-twitter-manager.php:845
679
+ msgid "Check Support"
680
+ msgstr "Kontrolli toe olemasolu"
681
+
682
+ #: wp-to-twitter-manager.php:845
683
+ msgid "Check whether your server supports <a href=\"http://www.joedolson.com/articles/wp-to-twitter/\">WP to Twitter's</a> queries to the Twitter and URL shortening APIs. This test will send a status update to Twitter and shorten a URL using your selected methods."
684
+ msgstr "Kontrolli, kas server toetab <a href=\"http://www.joedolson.com/articles/wp-to-twitter/\">WP to Twitter'i</a> päringuid Twitterile ja URL'e lühendavaid API'sid. See test saadab staatuse värskenduse Twitterile ja lühendab URL'e, kasutades sinu valitud meetodeid."
685
+
686
+ #. #-#-#-#-# plugin.pot (WP to Twitter 2.1.1) #-#-#-#-#
687
+ #. Plugin Name of the plugin/theme
688
+ #: wp-to-twitter.php:853
689
+ msgid "WP to Twitter"
690
+ msgstr "WP to Twitter"
691
+
692
+ #: wp-to-twitter.php:928
693
+ msgid "Don't Tweet this post."
694
+ msgstr "Ära Säutsu seda postitust"
695
+
696
+ #: wp-to-twitter.php:938
697
+ msgid "This URL is direct and has not been shortened: "
698
+ msgstr "See URL on otsene ning seda pole lühendatud:"
699
+
700
+ #: wp-to-twitter.php:990
701
+ #: wp-to-twitter.php:1009
702
+ msgid "WP to Twitter User Settings"
703
+ msgstr "WP to Twitter kasutajaseaded"
704
+
705
+ #: wp-to-twitter.php:1001
706
+ #: wp-to-twitter.php:1014
707
+ msgid "Enter your own Twitter username."
708
+ msgstr "Sisestage oma Twitteri kasutajanimi"
709
+
710
+ #: wp-to-twitter.php:1005
711
+ #: wp-to-twitter.php:1018
712
+ msgid "Enter your own Twitter password."
713
+ msgstr "Sisestage oma Twitteri salasõna"
714
+
715
+ #: wp-to-twitter.php:1005
716
+ #: wp-to-twitter.php:1018
717
+ msgid "<em>Password saved</em>"
718
+ msgstr "<em>Salasõna salvestatud</em>"
719
+
720
+ #: wp-to-twitter.php:1013
721
+ msgid "Your Twitter Username"
722
+ msgstr "Sinu Twitteri kasutajanimi"
723
+
724
+ #: wp-to-twitter.php:1017
725
+ msgid "Your Twitter Password"
726
+ msgstr "Sinu Twitteri salasõna"
727
+
728
+ #: wp-to-twitter.php:1061
729
+ msgid "Check the categories you want to tweet:"
730
+ msgstr "Märgi ära kategooriad, mille teemal tahad Säutsuda:"
731
+
732
+ #: wp-to-twitter.php:1078
733
+ msgid "Set Categories"
734
+ msgstr "Määra kategooriad"
735
+
736
+ #: wp-to-twitter.php:1147
737
+ msgid "<p>Couldn't locate the settings page.</p>"
738
+ msgstr "<p> Ei leidnud sätete lehekülge </p>"
739
+
740
+ #: wp-to-twitter.php:1152
741
+ msgid "Settings"
742
+ msgstr "Seaded"
743
+
744
+ #. Plugin URI of the plugin/theme
745
+ msgid "http://www.joedolson.com/articles/wp-to-twitter/"
746
+ msgstr "http://www.joedolson.com/articles/wp-to-twitter/"
747
+
748
+ #. Description of the plugin/theme
749
+ msgid "Updates Twitter when you create a new blog post or add to your blogroll using Cli.gs. With a Cli.gs API key, creates a clig in your Cli.gs account with the name of your post as the title."
750
+ msgstr "Värskendab Twitterit, kui teete uue blogipostituse või lisate midagi oma blogrollile, kasutades Cli.gs.'i. CLi.gs API koodiga saate luua clig'i oma Cli.gs kontole nii, et selle pealkirjaks on teie postituse pealkiri."
751
+
752
+ #. Author of the plugin/theme
753
+ msgid "Joseph Dolson"
754
+ msgstr "Joseph Dolson"
755
+
756
+ #. Author URI of the plugin/theme
757
+ msgid "http://www.joedolson.com/"
758
+ msgstr "http://www.joedolson.com/"
759
+
wp-to-twitter-it_IT.mo CHANGED
Binary file
wp-to-twitter-it_IT.po CHANGED
@@ -7,8 +7,8 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WP to Twitter in italiano\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-to-twitter\n"
10
- "POT-Creation-Date: 2010-05-13 21:26+0000\n"
11
- "PO-Revision-Date: 2010-06-25 12:21+0100\n"
12
  "Last-Translator: Gianni Diurno (aka gidibao) <gidibao[at]gmail[dot]com>\n"
13
  "Language-Team: Gianni Diurno | gidibao.net <gidibao[at]gmail[dot]com>\n"
14
  "MIME-Version: 1.0\n"
@@ -16,727 +16,800 @@ msgstr ""
16
  "Content-Transfer-Encoding: 8bit\n"
17
  "X-Poedit-Language: Italian\n"
18
  "X-Poedit-Country: ITALY\n"
 
 
 
19
 
20
- #: functions.php:248
21
  msgid "[<a href='options-general.php?page=wp-to-twitter/wp-to-twitter.php'>Hide</a>] If you're experiencing trouble, please copy these settings into any request for support."
22
  msgstr "[<a href='options-general.php?page=wp-to-twitter/wp-to-twitter.php'>Nascondi</a>] Qualora avessi riscontrato dei problemi, allega queste impostazioni alle richieste di supporto."
23
 
24
- #: wp-to-twitter-manager.php:76
25
- msgid "Please <a href='#twitterpw'>add your Twitter password</a>. "
26
- msgstr "Aggiungi la tua <a href='#twitterpw'>password per Twitter</a>. "
27
 
28
  #: wp-to-twitter-manager.php:82
29
- msgid "WP to Twitter Errors Cleared"
30
- msgstr "Gli errori WP to Twitter sono stati azzerati"
31
-
32
- #: wp-to-twitter-manager.php:93
33
- msgid "Twitter API settings reset. You may need to change your username and password settings, if they are not the same as the alternate service previously in use."
34
- msgstr "Ripristino impostazioni API Twitter API. Dovrai cambiare le impostazioni per il tuo nome utente e password nel caso in cui esse non fossero le stesse del servizio alternativo utilizzato in precedenza."
35
 
36
- #: wp-to-twitter-manager.php:103
37
- msgid "Twitter-compatible API settings updated. "
38
- msgstr "Le impostazioni compatibilità API Twittersono state aggiornate."
39
 
40
- #: wp-to-twitter-manager.php:105
41
- msgid "You have configured WP to Twitter to use both Twitter and your selected service. Remember to add your username and login information for both services."
42
- msgstr "Hai configurato WP to Twitter in modo tale che esso possa utilizzare Twitter ed il tuo servizio selezionato. Ricordati di aggiungere ad entrambi i servizi il tuo nome utente e le informazioni per il login."
43
 
44
- #: wp-to-twitter-manager.php:114
45
  msgid "Sorry! I couldn't get in touch with the Twitter servers to post your new blog post. Your tweet has been stored in a custom field attached to the post, so you can Tweet it manually if you wish! "
46
  msgstr "Non é stato possibile contattare i server di Twitter per comunicare l'aggiornamento avvenuto. Il tuo messaggio é stato inserito in un campo personalizzato in allegato all'articolo in modo tale che tu possa compiere manualmente l'operazione!"
47
 
48
- #: wp-to-twitter-manager.php:116
49
  msgid "Sorry! I couldn't get in touch with the Twitter servers to post your <strong>new link</strong>! You'll have to post it manually, I'm afraid. "
50
  msgstr "Non é stato possibile contattare i server di Twitter per comunicare il tuo <strong>nuovo link</strong>. Prova a compiere manualmente l'operazione."
51
 
52
- #: wp-to-twitter-manager.php:145
53
  msgid "WP to Twitter Advanced Options Updated"
54
  msgstr "Le opzioni avanzate di WP to Twitter sono state aggiornate"
55
 
56
- #: wp-to-twitter-manager.php:162
57
  msgid "You must add your Bit.ly login and API key in order to shorten URLs with Bit.ly."
58
  msgstr "E' necessario che tu inserisca i dati per il login e la chiave API di Bit.ly in modo da potere abbreviare gli URL con Bit.ly."
59
 
60
- #: wp-to-twitter-manager.php:166
61
  msgid "You must add your YOURLS remote URL, login, and password in order to shorten URLs with a remote installation of YOURLS."
62
  msgstr "E' necessario che tu inserisca il tuo URL remoto a YOURLS, il login e la password in modo da potere abbreviare gli URL attraverso la tua installazione remota di YOURLS."
63
 
64
- #: wp-to-twitter-manager.php:170
65
  msgid "You must add your YOURLS server path in order to shorten URLs with a remote installation of YOURLS."
66
  msgstr "E' necessario che tu inserisca il percorso al server del tuo YOURLS in modo da potere abbreviare gli URL attraverso la tua installazione remota di YOURLS."
67
 
68
- #: wp-to-twitter-manager.php:174
69
  msgid "WP to Twitter Options Updated"
70
  msgstr "Le opzioni di WP to Twitter sono state aggiornate"
71
 
72
- #: wp-to-twitter-manager.php:184
73
  msgid "Category limits updated."
74
  msgstr "I limiti per la categoria sono stati aggiornati."
75
 
76
- #: wp-to-twitter-manager.php:188
77
  msgid "Category limits unset."
78
  msgstr "Le limitazioni alle categorie non sono state impostate."
79
 
80
- #: wp-to-twitter-manager.php:209
81
- msgid "Twitter login and password updated. "
82
- msgstr "Il login e la password di Twitter sono state aggiornate."
83
-
84
- #: wp-to-twitter-manager.php:211
85
- msgid "You need to provide your Twitter login and password! "
86
- msgstr "E' necessario fornire i dati login e password di Twitter!"
87
-
88
- #: wp-to-twitter-manager.php:218
89
  msgid "YOURLS password updated. "
90
  msgstr "La password di YOURLS é stata aggiornata."
91
 
92
- #: wp-to-twitter-manager.php:221
93
  msgid "YOURLS password deleted. You will be unable to use your remote YOURLS account to create short URLS."
94
  msgstr "La tua password di YOURLS é stata cancellata. Non potrai utilizzare il tuo account remoto YOURLS per la creazione di URL brevi."
95
 
96
- #: wp-to-twitter-manager.php:223
97
  msgid "Failed to save your YOURLS password! "
98
  msgstr "Non é stato possibile salvare la tua password di YOURLS!"
99
 
100
- #: wp-to-twitter-manager.php:227
101
  msgid "YOURLS username added. "
102
  msgstr "Il nome utente YOURLS é stato aggiunto."
103
 
104
- #: wp-to-twitter-manager.php:231
105
  msgid "YOURLS API url added. "
106
  msgstr "L'url alla API YOURLS é stato aggiunto. "
107
 
108
- #: wp-to-twitter-manager.php:236
 
 
 
 
109
  msgid "YOURLS local server path added. "
110
  msgstr "Il percorso al server locale di YOURLS é stato aggiunto. "
111
 
112
- #: wp-to-twitter-manager.php:238
113
  msgid "The path to your YOURLS installation is not correct. "
114
  msgstr "Il percorso alla tua installazione di YOURLS non é corretto. "
115
 
116
- #: wp-to-twitter-manager.php:243
 
 
 
 
117
  msgid "YOURLS will use Post ID for short URL slug."
118
  msgstr "YOURLS utilizzerà Post ID per lo slug degli URL brevi."
119
 
120
- #: wp-to-twitter-manager.php:246
121
  msgid "YOURLS will not use Post ID for the short URL slug."
122
  msgstr "YOURLS non utilizzerà Post ID per lo slug degli URL brevi."
123
 
124
- #: wp-to-twitter-manager.php:253
125
  msgid "Cligs API Key Updated"
126
  msgstr "La chiave API di Cligs é stata aggiornata."
127
 
128
- #: wp-to-twitter-manager.php:256
129
  msgid "Cli.gs API Key deleted. Cli.gs created by WP to Twitter will no longer be associated with your account. "
130
  msgstr "La chiave API di Cli.gs é stata cancellata. I Cli.gs creati da WP to Twitter non saranno più associati al tuo account. "
131
 
132
- #: wp-to-twitter-manager.php:258
133
  msgid "Cli.gs API Key not added - <a href='http://cli.gs/user/api/'>get one here</a>! "
134
  msgstr "Non é stata inserita la chiave API di Cli.gs - <a href='http://cli.gs/user/api/'>vai qui</a>! "
135
 
136
- #: wp-to-twitter-manager.php:264
137
  msgid "Bit.ly API Key Updated."
138
  msgstr "La chiave API di Bit.ly é stata aggiornata."
139
 
140
- #: wp-to-twitter-manager.php:267
141
  msgid "Bit.ly API Key deleted. You cannot use the Bit.ly API without an API key. "
142
  msgstr "La chiave API di Bit.ly é stata cancellata. Non puoi utilizzare la API di Bit.ly senza la chiave API. "
143
 
144
- #: wp-to-twitter-manager.php:269
145
  msgid "Bit.ly API Key not added - <a href='http://bit.ly/account/'>get one here</a>! An API key is required to use the Bit.ly URL shortening service."
146
  msgstr "La chiave API di Bit.ly non é stata aggiunta - <a href='http://bit.ly/account/'>vai qui</a>! E' necessaria una chiave API affinché il servizio di URL brevi Bit.ly di possa funzionare."
147
 
148
- #: wp-to-twitter-manager.php:273
149
  msgid " Bit.ly User Login Updated."
150
  msgstr " Il login utente per Bit.ly é stato aggiornato."
151
 
152
- #: wp-to-twitter-manager.php:276
153
  msgid "Bit.ly User Login deleted. You cannot use the Bit.ly API without providing your username. "
154
  msgstr "Sono stati cancellati i dati per il login utente Bit.ly. Non puoi utilizzare la API di Bit.ly senza fornire il tuo nome utente. "
155
 
156
- #: wp-to-twitter-manager.php:278
157
  msgid "Bit.ly Login not added - <a href='http://bit.ly/account/'>get one here</a>! "
158
  msgstr "Non sono stati inseriti i dati per il login a Bit.ly - <a href='http://bit.ly/account/'>vai qui</a>! "
159
 
160
- #: wp-to-twitter-manager.php:372
161
- msgid "<li><strong>Your selected URL shortener does not require testing.</strong></li>"
162
- msgstr "<li><strong>Il servizio di URL brevi che hai selezionato non necessita di test.</strong></li>"
163
 
164
- #: wp-to-twitter-manager.php:375
165
  msgid "<li class=\"error\"><strong>WP to Twitter was unable to contact your selected URL shortening service.</strong></li>"
166
  msgstr "<li class=\"error\"><strong>WP to Twitter non é stato in grado di contattare il servizio per gli URL brevi da te selezionato.</strong></li>"
167
 
168
- #: wp-to-twitter-manager.php:379
169
  msgid "<li><strong>WP to Twitter successfully contacted your selected URL shortening service.</strong> The following link should point to your blog homepage:"
170
  msgstr "<li><strong>WP to Twitter ha contattato con successo il servizio per gli URL brevi da te selezionato.</strong> Il seguente link dovrebbe puntare alla homepage del tuo blog:"
171
 
172
- #: wp-to-twitter-manager.php:390
173
- msgid "<li><strong>WP to Twitter successfully submitted a status update to your primary update service.</strong></li>"
174
- msgstr "<li><strong>WP to Twitter ha inviato con successo l'aggiornamento dello stato al tuo principale servizio aggiornamenti.</strong></li>"
175
-
176
- #: wp-to-twitter-manager.php:393
177
- msgid "<li class=\"error\"><strong>WP to Twitter failed to submit an update to your primary update service.</strong></li>"
178
- msgstr "<li class=\"error\"><strong>WP to Twitter non é stato in grado di inviare l'aggiornamento dello stato al tuo principale servizio aggiornamenti.</strong></li>"
179
-
180
- #: wp-to-twitter-manager.php:394
181
- msgid "Twitter returned this error:"
182
- msgstr "Twitter ha rilevato questo errore:"
183
-
184
- #: wp-to-twitter-manager.php:398
185
- msgid "<li class=\"error\"><strong>WP to Twitter failed to contact your primary update service.</strong></li>"
186
- msgstr "<li class=\"error\"><strong>WP to Twitter non é stato in grado di contattare il tuo principale servizio aggiornamenti.</strong></li>"
187
-
188
- #: wp-to-twitter-manager.php:399
189
- msgid "No error was returned."
190
- msgstr "Nessun errore da riportare."
191
-
192
- #: wp-to-twitter-manager.php:406
193
- msgid "<li><strong>WP to Twitter successfully submitted a status update to your secondary update service.</strong></li>"
194
- msgstr "<li><strong>WP to Twitter ha inviato con successo l'aggiornamento dello stato al tuo servizio aggiornamenti secondario.</strong></li>"
195
 
196
- #: wp-to-twitter-manager.php:409
197
- msgid "<li class=\"error\"><strong>WP to Twitter failed to submit an update to your secondary update service.</strong></li>"
198
- msgstr "<li class=\"error\"><strong>WP to Twitter non é stato in grado di inviare l'aggiornamento dello stato al tuo servizio aggiornamenti secondario.</strong></li>"
199
 
200
- #: wp-to-twitter-manager.php:410
201
- msgid "The service returned this error:"
202
- msgstr "Il servizio ha rilevato questo errore:"
203
 
204
- #: wp-to-twitter-manager.php:417
205
- msgid "<li><strong>Your server should run WP to Twitter successfully.</strong></li>"
206
- msgstr "<li><strong>WP to Twitter funziona correttamente per il tuo server.</strong></li>"
207
-
208
- #: wp-to-twitter-manager.php:420
209
  msgid "<li class=\"error\"><strong>Your server does not appear to support the required methods for WP to Twitter to function.</strong> You can try it anyway - these tests aren't perfect.</li>"
210
  msgstr "<li class=\"error\"><strong>Pare che il tuo server non supporti le funzioni richieste affinché WP to Twitter possa funzionare correttamente.</strong> Puoi comunque provare ugualmente - queste verifiche non sono perfette - garantisco i risultati.</li>"
211
 
212
- #: wp-to-twitter-manager.php:430
213
- msgid "This plugin may not fully work in your server environment. The plugin failed to contact both a URL shortener API and the Twitter service API."
214
- msgstr "Con la configurazione del tuo server questo plugin non può funzionare al meglio. Il plugin non é stato in grado di conttatare tanto l'API di un URL breve API quanto l'API del servizio di Twitter."
215
 
216
- #: wp-to-twitter-manager.php:444
217
  msgid "WP to Twitter Options"
218
  msgstr "Opzioni WP to Twitter"
219
 
220
- #: wp-to-twitter-manager.php:452
221
- #: wp-to-twitter.php:925
222
  msgid "Get Support"
223
  msgstr "Supporto"
224
 
225
- #: wp-to-twitter-manager.php:453
226
  msgid "Export Settings"
227
  msgstr "Impostazioni esportazione"
228
 
229
- #: wp-to-twitter-manager.php:454
230
- #: wp-to-twitter.php:925
231
  msgid "Make a Donation"
232
  msgstr "Effettua una donazione"
233
 
234
- #: wp-to-twitter-manager.php:469
235
  msgid "Shortcodes available in post update templates:"
236
  msgstr "Shortcode disponibili nei template aggiornamento post:"
237
 
238
- #: wp-to-twitter-manager.php:471
239
  msgid "<code>#title#</code>: the title of your blog post"
240
  msgstr "<code>#title#</code>: il titolo del tuo post"
241
 
242
- #: wp-to-twitter-manager.php:472
243
  msgid "<code>#blog#</code>: the title of your blog"
244
  msgstr "<code>#blog#</code>: il titolo del tuo blog"
245
 
246
- #: wp-to-twitter-manager.php:473
247
  msgid "<code>#post#</code>: a short excerpt of the post content"
248
  msgstr "<code>#post#</code>: un breve riassunto dei contenuti del post"
249
 
250
- #: wp-to-twitter-manager.php:474
251
  msgid "<code>#category#</code>: the first selected category for the post"
252
  msgstr "<code>#category#</code>: la prima categoria selezionata per il post"
253
 
254
- #: wp-to-twitter-manager.php:475
255
  msgid "<code>#date#</code>: the post date"
256
  msgstr "<code>#date#</code>: la data del post"
257
 
258
- #: wp-to-twitter-manager.php:476
259
  msgid "<code>#url#</code>: the post URL"
260
  msgstr "<code>#url#</code>: l'URL del post"
261
 
262
- #: wp-to-twitter-manager.php:477
263
- msgid "<code>#author#</code>: the post author'"
264
  msgstr "<code>#author#</code>: l'autore del post"
265
 
266
- #: wp-to-twitter-manager.php:479
267
  msgid "You can also create custom shortcodes to access WordPress custom fields. Use doubled square brackets surrounding the name of your custom field to add the value of that custom field to your status update. Example: <code>[[custom_field]]</code></p>"
268
  msgstr "Hai la possibilità di potere creare degli shortcode personalizzati grazie ai campi personalizzati di WordPress. Utilizza le doppie parentesi quadre per avvolgere il nome del tuo campo personalizzato per aggiungere il valore di quel dato campo al tuo stato di aggiornamento. Esempio: <code>[[custom_field]]</code></p>"
269
 
270
- #: wp-to-twitter-manager.php:484
271
  msgid "<p>One or more of your last posts has failed to send it's status update to Twitter. Your Tweet has been saved in your post custom fields, and you can re-Tweet it at your leisure.</p>"
272
  msgstr "<p>Uno o più dei tuoi articoli recenti non é stato in grado di comunicare l'aggiornamento a Twitter. Il tuo messaggio é stato inserito nei dati meta del campo personalizzato del tuo articolo in modo tale che tu possa ripetere l'operazione a tuo piacere.</p>"
273
 
274
- #: wp-to-twitter-manager.php:487
275
  msgid "<p>The query to the URL shortener API failed, and your URL was not shrunk. The full post URL was attached to your Tweet. Check with your URL shortening provider to see if there are any known issues. [<a href=\"http://blog.cli.gs\">Cli.gs Blog</a>] [<a href=\"http://blog.bit.ly\">Bit.ly Blog</a>]</p>"
276
  msgstr "<p>La richiesta é fallita! Non essendo stato possibile abbreviare l'URL abbiamo utilizzato per il messaggio l'indirizzo normale. Verifica la documentazione in merito presso il tuo provider di URL brevi. [<a href=\"http://blog.cli.gs\">Cli.gs Blog</a>] [<a href=\"http://blog.bit.ly\">Bit.ly Blog</a>]</p>"
277
 
278
- #: wp-to-twitter-manager.php:494
279
  msgid "Clear 'WP to Twitter' Error Messages"
280
  msgstr "Svuota i messaggiodi errore 'WP to Twitter'"
281
 
282
- #: wp-to-twitter-manager.php:507
283
  msgid "Basic Settings"
284
  msgstr "Impostazioni di base"
285
 
286
- #: wp-to-twitter-manager.php:513
287
  msgid "Tweet Templates"
288
  msgstr "Template messaggio"
289
 
290
- #: wp-to-twitter-manager.php:516
291
  msgid "Update when a post is published"
292
  msgstr "Aggiorna quando viene pubblicato un articolo"
293
 
294
- #: wp-to-twitter-manager.php:516
295
  msgid "Text for new post updates:"
296
  msgstr "Testo per aggiornamenti articolo:"
297
 
298
- #: wp-to-twitter-manager.php:521
 
299
  msgid "Update when a post is edited"
300
  msgstr "Aggiorna quando modifichi un articolo"
301
 
302
- #: wp-to-twitter-manager.php:521
 
303
  msgid "Text for editing updates:"
304
  msgstr "Testo per aggiornamenti modifiche:"
305
 
306
- #: wp-to-twitter-manager.php:525
 
 
 
 
307
  msgid "Update Twitter when new Wordpress Pages are published"
308
  msgstr "Aggiorna Twitter quando viene pubblicata una nuova pagina WordPress"
309
 
310
- #: wp-to-twitter-manager.php:525
311
  msgid "Text for new page updates:"
312
  msgstr "Testo per aggiornamenti articolo:"
313
 
314
- #: wp-to-twitter-manager.php:529
315
  msgid "Update Twitter when WordPress Pages are edited"
316
  msgstr "Aggiorna Twitter quando viene modificata una pagina WordPress"
317
 
318
- #: wp-to-twitter-manager.php:529
319
  msgid "Text for page edit updates:"
320
  msgstr "Testo per la pagina di modifica aggiornamenti:"
321
 
322
- #: wp-to-twitter-manager.php:533
323
  msgid "Update Twitter when you post a Blogroll link"
324
  msgstr "Aggiorna Twitter quando viene aggiunto un nuovo link al blogroll"
325
 
326
- #: wp-to-twitter-manager.php:534
327
  msgid "Text for new link updates:"
328
  msgstr "Testo per gli aggiornamenti di un nuovo link:"
329
 
330
- #: wp-to-twitter-manager.php:534
331
  msgid "Available shortcodes: <code>#url#</code>, <code>#title#</code>, and <code>#description#</code>."
332
  msgstr "Shortcode disponibili: <code>#url#</code>, <code>#title#</code> e <code>#description#</code>."
333
 
334
- #: wp-to-twitter-manager.php:538
335
  msgid "Choose your short URL service (account settings below)"
336
  msgstr "Scegli il tuo servizio per gli URL brevi (impostazioni account qui sotto)"
337
 
338
- #: wp-to-twitter-manager.php:541
339
  msgid "Use Cli.gs for my URL shortener."
340
  msgstr "Usa Cli.gs per gli URL brevi"
341
 
342
- #: wp-to-twitter-manager.php:542
343
  msgid "Use Bit.ly for my URL shortener."
344
  msgstr "Usa Bit.ly per gli URL brevi"
345
 
346
- #: wp-to-twitter-manager.php:543
347
  msgid "YOURLS (installed on this server)"
348
  msgstr "YOURLS (intallato in questo server)"
349
 
350
- #: wp-to-twitter-manager.php:544
351
  msgid "YOURLS (installed on a remote server)"
352
  msgstr "YOURLS (intallato in un server remoto)"
353
 
354
- #: wp-to-twitter-manager.php:545
355
  msgid "Use WordPress as a URL shortener."
356
  msgstr "Usa WordPress per gli URL brevi."
357
 
358
- #: wp-to-twitter-manager.php:546
359
  msgid "Don't shorten URLs."
360
  msgstr "Non usare gli URL brevi"
361
 
362
- #: wp-to-twitter-manager.php:548
363
  msgid "Using WordPress as a URL shortener will send URLs to Twitter in the default URL format for WordPress: <code>http://domain.com/wpdir/?p=123</code>. Google Analytics is not available when using WordPress shortened URLs."
364
  msgstr "L'utilizzo di WordPress per la creazione di URL brevi farà sì che verranno inviati a Twitter gli URL nel formato predefinito di WordPress: <code>http://domain.com/wpdir/?p=123</code> . Google Analytics non sarà disponibile durante l'utilizzo di WordPress per la creazione di URL brevi."
365
 
366
- #: wp-to-twitter-manager.php:554
367
  msgid "Save WP->Twitter Options"
368
  msgstr "Salva le opzioni WP->Twitter"
369
 
370
- #: wp-to-twitter-manager.php:580
371
- #: wp-to-twitter-manager.php:599
372
- msgid "(<em>Saved</em>)"
373
- msgstr "(<em>Salvato</em>)"
374
 
375
- #: wp-to-twitter-manager.php:584
376
- #: wp-to-twitter-manager.php:603
377
- msgid "&raquo; <small>Don't have a Twitter account? <a href='http://www.twitter.com'>Get one for free here</a>"
378
- msgstr "&raquo; <small>Non hai un account di Twitter? <a href='http://www.twitter.com'>Vai qui</a>"
379
-
380
- #: wp-to-twitter-manager.php:590
381
- msgid "Your Twitter account details"
382
- msgstr "Dati account Twitter"
383
-
384
- #: wp-to-twitter-manager.php:591
385
- msgid "These are your settings for Twitter as a second update service."
386
- msgstr "Queste sono le tue impostazioni per Twitter quale secondo servizio di aggiornamenti."
387
-
388
- #: wp-to-twitter-manager.php:595
389
- msgid "Your Twitter username:"
390
- msgstr "Nome utente Twitter:"
391
-
392
- #: wp-to-twitter-manager.php:599
393
- msgid "Your Twitter password:"
394
- msgstr "Password Twitter:"
395
-
396
- #: wp-to-twitter-manager.php:603
397
- msgid "Save Twitter Login Info"
398
- msgstr "Salva le impostazioni di login a Twitter"
399
-
400
- #: wp-to-twitter-manager.php:609
401
  msgid "Your Cli.gs account details"
402
  msgstr "Dati account Cli.gs"
403
 
404
- #: wp-to-twitter-manager.php:614
405
  msgid "Your Cli.gs <abbr title='application programming interface'>API</abbr> Key:"
406
  msgstr "La tua chiave <abbr title='application programming interface'>API</abbr> di Cli.gs:"
407
 
408
- #: wp-to-twitter-manager.php:620
409
  msgid "Don't have a Cli.gs account or Cligs API key? <a href='http://cli.gs/user/api/'>Get one free here</a>!<br />You'll need an API key in order to associate the Cligs you create with your Cligs account."
410
- msgstr "Non hai ancora un account oppure una chiave API Cli.gs? <a href='http://cli.gs/user/api/'>Vai qui</a>!<br />E' necessafia una chiave API in modo tale da potere associare i Cligs da te creati con il tuo account di Cligs."
411
 
412
- #: wp-to-twitter-manager.php:626
413
  msgid "Your Bit.ly account details"
414
  msgstr "Dati account Bit.ly"
415
 
416
- #: wp-to-twitter-manager.php:631
417
  msgid "Your Bit.ly username:"
418
  msgstr "Nome utente Bit.ly:"
419
 
420
- #: wp-to-twitter-manager.php:635
421
  msgid "Your Bit.ly <abbr title='application programming interface'>API</abbr> Key:"
422
  msgstr "La tua chiave <abbr title='application programming interface'>API</abbr> di Bit.ly:"
423
 
424
- #: wp-to-twitter-manager.php:642
425
  msgid "Save Bit.ly API Key"
426
  msgstr "Salva la chiave API di Bit.ly"
427
 
428
- #: wp-to-twitter-manager.php:642
429
  msgid "Clear Bit.ly API Key"
430
  msgstr "Svuota la chiave API di Bit.ly"
431
 
432
- #: wp-to-twitter-manager.php:642
433
  msgid "A Bit.ly API key and username is required to shorten URLs via the Bit.ly API and WP to Twitter."
434
  msgstr "E' necessario il nome utente e la chiave API di Bit.ly per potere rendere brevi gli URL viala chiave API di Bit.ly API e WP to Twitter."
435
 
436
- #: wp-to-twitter-manager.php:647
437
  msgid "Your YOURLS account details"
438
  msgstr "I dettagli del tuo account YOURLS"
439
 
440
- #: wp-to-twitter-manager.php:651
441
  msgid "Path to the YOURLS config file (Local installations)"
442
  msgstr "Percorso al file di configurazione di YOURLS (installazioni locali)"
443
 
444
- #: wp-to-twitter-manager.php:652
445
- #: wp-to-twitter-manager.php:656
446
  msgid "Example:"
447
  msgstr "Esempio:"
448
 
449
- #: wp-to-twitter-manager.php:655
450
  msgid "URI to the YOURLS API (Remote installations)"
451
  msgstr "URI alla API di YOURLS (installazioni remote)"
452
 
453
- #: wp-to-twitter-manager.php:659
454
  msgid "Your YOURLS username:"
455
  msgstr "Nome utente YOURLS:"
456
 
457
- #: wp-to-twitter-manager.php:663
458
  msgid "Your YOURLS password:"
459
  msgstr "Password YOURLS:"
460
 
461
- #: wp-to-twitter-manager.php:663
462
  msgid "<em>Saved</em>"
463
  msgstr "<em>Salvato</em>"
464
 
465
- #: wp-to-twitter-manager.php:667
466
  msgid "Use Post ID for YOURLS url slug."
467
  msgstr "Utilizza Post ID per lo slug degli url di YOURLS."
468
 
469
- #: wp-to-twitter-manager.php:672
470
  msgid "Save YOURLS Account Info"
471
  msgstr "Salva le info account di YOURLS"
472
 
473
- #: wp-to-twitter-manager.php:672
474
  msgid "Clear YOURLS password"
475
  msgstr "Svuota la password di YOURLS"
476
 
477
- #: wp-to-twitter-manager.php:672
478
  msgid "A YOURLS password and username is required to shorten URLs via the remote YOURLS API and WP to Twitter."
479
  msgstr "E' necessario il nome utente e la password di affinché possano essere abbreviati gli URL via l'API remoto di YOURLS e di WP to Twitter."
480
 
481
- #: wp-to-twitter-manager.php:677
482
- msgid "Change Twitter-compatible Service"
483
- msgstr "Cambia il nome del servio Twitter-compatibile"
484
-
485
- #: wp-to-twitter-manager.php:681
486
- msgid "URI for Twitter-compatible Post Status API"
487
- msgstr "URI per la Post Status API Twitter-compatibile"
488
-
489
- #: wp-to-twitter-manager.php:685
490
- msgid "Service Name"
491
- msgstr "Nome del servizio"
492
-
493
- #: wp-to-twitter-manager.php:689
494
- msgid "Status Update Character Limit"
495
- msgstr "Limite caratteri aggiornamento stato"
496
-
497
- #: wp-to-twitter-manager.php:693
498
- msgid "Post status updates to both services."
499
- msgstr "Aggiornamento stato post per entrambi i servizi."
500
-
501
- #: wp-to-twitter-manager.php:696
502
- msgid "Reset to normal Twitter settings"
503
- msgstr "Ripristina alle impostazioni base di Twitter"
504
-
505
- #: wp-to-twitter-manager.php:699
506
- msgid "Update Twitter Compatible Service"
507
- msgstr "Aggiorna il servizio Twitter Compatible"
508
-
509
- #: wp-to-twitter-manager.php:699
510
- msgid "&raquo; <small>You can use any service using the Twitter-compatible REST API returning data in JSON format with this plugin. Twitter-compatible services include <a href='http://identi.ca'>Identi.ca</a>, <a href='http://shoutem.com'>Shoutem.com</a> and <a href='http://chirup.com'>Chirup.com</a>. <strong>No support will be provided for services other than Twitter.</strong>"
511
- msgstr "&raquo; <small>Puoi utilizzare ogni servizio facendo uso della Twitter-compatible REST API che porta i dati in formato JSON grazie a questo plugin. I servizi Twitter-compatibile includono <a href='http://identi.ca'>Identi.ca</a>, <a href='http://shoutem.com'>Shoutem.com</a> e <a href='http://chirup.com'>Chirup.com</a>. <strong>Nessun supporto verrà fornito per quei servizi che non siano Twitter.</strong>"
512
-
513
- #: wp-to-twitter-manager.php:716
514
  msgid "Advanced Settings"
515
  msgstr "Impostazioni avanzate"
516
 
517
- #: wp-to-twitter-manager.php:723
518
  msgid "Advanced Tweet settings"
519
  msgstr "Opzioni messaggio avanzate"
520
 
521
- #: wp-to-twitter-manager.php:726
522
  msgid "Add tags as hashtags on Tweets"
523
  msgstr "Aggiungi ai messaggi i tag come fossero degli hashtag "
524
 
525
- #: wp-to-twitter-manager.php:727
526
  msgid "Spaces replaced with:"
527
  msgstr "Sostituisci gli spazi con:"
528
 
529
- #: wp-to-twitter-manager.php:728
530
  msgid "Default replacement is an underscore (<code>_</code>). Use <code>[ ]</code> to remove spaces entirely."
531
  msgstr "Il sostituto predefinito é un trattino breve (<code>_</code>). Usa <code>[ ]</code> per rimuovere gli spazi completamente."
532
 
533
- #: wp-to-twitter-manager.php:731
534
  msgid "Maximum number of tags to include:"
535
  msgstr "Numero massimo di tag da includere:"
536
 
537
- #: wp-to-twitter-manager.php:732
538
  msgid "Maximum length in characters for included tags:"
539
  msgstr "Lunghezza massima in caratteri per i tag inclusi:"
540
 
541
- #: wp-to-twitter-manager.php:733
542
  msgid "These options allow you to restrict the length and number of WordPress tags sent to Twitter as hashtags. Set to <code>0</code> or leave blank to allow any and all tags."
543
  msgstr "Queste opzioni ti permetteranno di limitare la lunghezza ed il numero dei tag WordPress inviati a Twitter come hashtags. Imposta a <code>0</code> oppure lascia in bianco per permettere ogni tag."
544
 
545
- #: wp-to-twitter-manager.php:736
546
  msgid "Length of post excerpt (in characters):"
547
  msgstr "Lunghezza riassunto messaggi (in caratteri)"
548
 
549
- #: wp-to-twitter-manager.php:736
550
  msgid "By default, extracted from the post itself. If you use the 'Excerpt' field, that will be used instead."
551
  msgstr "Come funzione predefinita, gli estratti verranno generati in automatico. Utilizzassi il campo 'Excerpt', questi avrà la priorità."
552
 
553
- #: wp-to-twitter-manager.php:739
554
  msgid "WP to Twitter Date Formatting:"
555
  msgstr "Formattazione data WP to Twitter:"
556
 
557
- #: wp-to-twitter-manager.php:740
558
  msgid "Default is from your general settings. <a href='http://codex.wordpress.org/Formatting_Date_and_Time'>Date Formatting Documentation</a>."
559
  msgstr "Predefinito dalle impostazioni generali. <a href='http://codex.wordpress.org/Formatting_Date_and_Time'>Info formattazione data</a>."
560
 
561
- #: wp-to-twitter-manager.php:744
562
  msgid "Custom text before all Tweets:"
563
  msgstr "Testo personalizzato prima di tutti i messaggi:"
564
 
565
- #: wp-to-twitter-manager.php:745
566
  msgid "Custom text after all Tweets:"
567
  msgstr "Testo personalizzato dopo tutti i messaggi:"
568
 
569
- #: wp-to-twitter-manager.php:748
570
  msgid "Custom field for an alternate URL to be shortened and Tweeted:"
571
  msgstr "Campo personalizzato riferito ad un URL alternativo da abbreviare ed inviare a Twitter:"
572
 
573
- #: wp-to-twitter-manager.php:749
574
  msgid "You can use a custom field to send an alternate URL for your post. The value is the name of a custom field containing your external URL."
575
  msgstr "Puoi utilizzare un campo personalizzato per inviare un URL alternativo per il tuo articolo. Questo valore é il nome del campo personalizzato che utilizzerai per aggiungere un URL esterno."
576
 
577
- #: wp-to-twitter-manager.php:753
578
  msgid "Special Cases when WordPress should send a Tweet"
579
  msgstr "Casi particolari nei quali WordPress dovrebbe inviare un messaggio"
580
 
581
- #: wp-to-twitter-manager.php:756
582
  msgid "Do not post status updates by default"
583
  msgstr "Non aggiornare lo stato dei post (predefinito)"
584
 
585
- #: wp-to-twitter-manager.php:757
586
  msgid "By default, all posts meeting other requirements will be posted to Twitter. Check this to change your setting."
587
  msgstr "Come funzione predefinita, tutti i post che soddisfano i requisiti saranno pubblicati su Twitter. Metti il segno di spunta per modificare le impostazioni."
588
 
589
- #: wp-to-twitter-manager.php:761
590
  msgid "Send Twitter Updates on remote publication (Post by Email or XMLRPC Client)"
591
  msgstr "Invio degli aggiornamenti di Twitter via punti di pubblicazione remoti (Email o client XMLRPC)"
592
 
593
- #: wp-to-twitter-manager.php:765
 
 
 
 
594
  msgid "Update Twitter when a post is published using QuickPress"
595
  msgstr "Aggiorna Twitter quando un articolo é stato pubblicato via QuickPress"
596
 
597
- #: wp-to-twitter-manager.php:769
598
  msgid "Google Analytics Settings"
599
  msgstr "Impostazioni Google Analytics"
600
 
601
- #: wp-to-twitter-manager.php:770
602
  msgid "You can track the response from Twitter using Google Analytics by defining a campaign identifier here. You can either define a static identifier or a dynamic identifier. Static identifiers don't change from post to post; dynamic identifiers are derived from information relevant to the specific post. Dynamic identifiers will allow you to break down your statistics by an additional variable."
603
  msgstr "Puoi tracciare la risposta da Twitter utilizzando Google Analytics definendo qui l'identificatore. Puoi definire un identificatore statico oppure uno dinamico. Gli identificatori statici non mutano da post a post mentre quelli dinamici derivano dalle informazioni di maggior rilievo appartenenti a quel post specifico. Gli identificatori dinamici ti permetteranno di analizzare le tue statistiche attraverso una variabile aggiuntiva."
604
 
605
- #: wp-to-twitter-manager.php:774
606
  msgid "Use a Static Identifier with WP-to-Twitter"
607
  msgstr "Utilizza un identificatore statico per WP-to-Twitter"
608
 
609
- #: wp-to-twitter-manager.php:775
610
  msgid "Static Campaign identifier for Google Analytics:"
611
  msgstr "Identificatore statico Google Analytics:"
612
 
613
- #: wp-to-twitter-manager.php:779
614
  msgid "Use a dynamic identifier with Google Analytics and WP-to-Twitter"
615
  msgstr "Utilizza un identificatore dinamico per Google Analytics e WP-to-Twitter"
616
 
617
- #: wp-to-twitter-manager.php:780
618
  msgid "What dynamic identifier would you like to use?"
619
  msgstr "Quale identificatore dinamico desideri utilizzare?"
620
 
621
- #: wp-to-twitter-manager.php:782
622
  msgid "Category"
623
  msgstr "Categoria"
624
 
625
- #: wp-to-twitter-manager.php:783
626
  msgid "Post ID"
627
  msgstr "ID post"
628
 
629
- #: wp-to-twitter-manager.php:784
630
  msgid "Post Title"
631
  msgstr "Titolo post"
632
 
633
- #: wp-to-twitter-manager.php:785
634
  msgid "Author"
635
  msgstr "Autore"
636
 
637
- #: wp-to-twitter-manager.php:790
638
  msgid "Individual Authors"
639
  msgstr "Autori singoli"
640
 
641
- #: wp-to-twitter-manager.php:793
642
  msgid "Authors have individual Twitter accounts"
643
  msgstr "Gli autori hanno degli account personali su Twitter"
644
 
645
- #: wp-to-twitter-manager.php:793
646
- msgid "Authors can set their own Twitter username and password in their user profile."
647
- msgstr "Ogni autore può impostare nel proprio profilo utente il nome utente e la password di Twitter."
648
 
649
- #: wp-to-twitter-manager.php:797
650
  msgid "Disable Error Messages"
651
  msgstr "Disattiva i messaggi di errore"
652
 
653
- #: wp-to-twitter-manager.php:800
654
  msgid "Disable global URL shortener error messages."
655
  msgstr "Disattiva i messaggi di errore abbreviatore URL globale."
656
 
657
- #: wp-to-twitter-manager.php:804
658
  msgid "Disable global Twitter API error messages."
659
  msgstr "Disattiva i messaggi di errore globali API Twitter."
660
 
661
- #: wp-to-twitter-manager.php:810
 
 
 
 
 
 
 
 
662
  msgid "Save Advanced WP->Twitter Options"
663
- msgstr "Save Advanced WP->Opzioni Twitter"
664
 
665
- #: wp-to-twitter-manager.php:824
666
  msgid "Limit Updating Categories"
667
  msgstr "Limite aggiornamento categorie"
668
 
669
- #: wp-to-twitter-manager.php:828
670
  msgid "Select which blog categories will be Tweeted. "
671
  msgstr "Seleziona quali categorie del blog saranno oggetto dei messaggi su Twitter. "
672
 
673
- #: wp-to-twitter-manager.php:831
674
  msgid "<em>Category limits are disabled.</em>"
675
  msgstr "<em>Le limitazioni alle categorie non sono attive.</em>"
676
 
677
- #: wp-to-twitter-manager.php:845
678
  msgid "Check Support"
679
  msgstr "Supporto"
680
 
681
- #: wp-to-twitter-manager.php:845
682
  msgid "Check whether your server supports <a href=\"http://www.joedolson.com/articles/wp-to-twitter/\">WP to Twitter's</a> queries to the Twitter and URL shortening APIs. This test will send a status update to Twitter and shorten a URL using your selected methods."
683
  msgstr "Metti il segno di spunta nel caso in cui il tuo server supportasse le query di <a href=\"http://www.joedolson.com/articles/wp-to-twitter/\">WP to Twitter</a> per Twitter e per le API per l'abbreviazione degli URL. Questo test invierà a Twitter un aggiornamento dello stato e renderà breve l'URL utilizzando il metodo da te selezionato."
684
 
685
- #. #-#-#-#-# plugin.pot (WP to Twitter 2.1.1) #-#-#-#-#
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
686
  #. Plugin Name of the plugin/theme
687
- #: wp-to-twitter.php:853
688
  msgid "WP to Twitter"
689
  msgstr "WP to Twitter"
690
 
691
- #: wp-to-twitter.php:928
692
  msgid "Don't Tweet this post."
693
  msgstr "Non segnalare a Twitter questo articolo."
694
 
695
- #: wp-to-twitter.php:938
696
  msgid "This URL is direct and has not been shortened: "
697
  msgstr "Questo URL é diretto e non può essere abbreviato: "
698
 
699
- #: wp-to-twitter.php:990
700
- #: wp-to-twitter.php:1009
701
  msgid "WP to Twitter User Settings"
702
  msgstr "Impostazioni WP to Twitter User"
703
 
704
- #: wp-to-twitter.php:1001
705
- #: wp-to-twitter.php:1014
706
- msgid "Enter your own Twitter username."
707
- msgstr "Inserisci il tuo nome utente Twitter"
708
-
709
- #: wp-to-twitter.php:1005
710
- #: wp-to-twitter.php:1018
711
- msgid "Enter your own Twitter password."
712
- msgstr "Inserisci la tua password di Twitter"
713
 
714
- #: wp-to-twitter.php:1005
715
- #: wp-to-twitter.php:1018
716
- msgid "<em>Password saved</em>"
717
- msgstr "<em>La password é stata salvata</em>"
718
 
719
- #: wp-to-twitter.php:1013
720
- msgid "Your Twitter Username"
721
- msgstr "Nome utente Twitter"
722
 
723
- #: wp-to-twitter.php:1017
724
- msgid "Your Twitter Password"
725
- msgstr "Twitter Password"
726
 
727
- #: wp-to-twitter.php:1061
728
  msgid "Check the categories you want to tweet:"
729
  msgstr "Seleziona le gategorie per i messaggi:"
730
 
731
- #: wp-to-twitter.php:1078
732
  msgid "Set Categories"
733
  msgstr "Imposta le categorie"
734
 
735
- #: wp-to-twitter.php:1147
736
  msgid "<p>Couldn't locate the settings page.</p>"
737
  msgstr "<p>Non é possibile localizzare la pagina delle impostazioni.</p>"
738
 
739
- #: wp-to-twitter.php:1152
740
  msgid "Settings"
741
  msgstr "Impostazioni"
742
 
@@ -756,6 +829,159 @@ msgstr "Joseph Dolson"
756
  msgid "http://www.joedolson.com/"
757
  msgstr "http://www.joedolson.com/"
758
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
759
  #~ msgid "Twitter Password Saved"
760
  #~ msgstr "La password di Twitter è stata salvata"
761
 
@@ -909,9 +1135,6 @@ msgstr "http://www.joedolson.com/"
909
  #~ "Visita la pagina <a href='http://www.joedolson.com/articles/wp-to-"
910
  #~ "twitter/'>WP to Twitter</a>."
911
 
912
- #~ msgid "Twitter Post"
913
- #~ msgstr "Messaggio Twitter"
914
-
915
  #~ msgid ""
916
  #~ " characters.<br />Twitter posts are a maximum of 140 characters; if your "
917
  #~ "Cli.gs URL is appended to the end of your document, you have 119 "
@@ -939,13 +1162,6 @@ msgstr "http://www.joedolson.com/"
939
  #~ "Seleziona questa opzione qualora gradissi che i tuoi articoli siano "
940
  #~ "segnalati al tuo account personale di Twitter senza nessun riferimento @."
941
 
942
- #~ msgid ""
943
- #~ "Tweet my posts into my Twitter account with an @ reference to the site's "
944
- #~ "main Twitter account."
945
- #~ msgstr ""
946
- #~ "Segnala i miei articoli nel mio account di Twitter con un riferimento @ "
947
- #~ "correlato al sito principale dell'account su Twitter."
948
-
949
  #~ msgid ""
950
  #~ "Tweet my posts into the main site Twitter account with an @ reference to "
951
  #~ "my username. (Password not required with this option.)"
7
  msgstr ""
8
  "Project-Id-Version: WP to Twitter in italiano\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-to-twitter\n"
10
+ "POT-Creation-Date: 2010-08-26 22:15+0000\n"
11
+ "PO-Revision-Date: 2010-08-28 14:06+0100\n"
12
  "Last-Translator: Gianni Diurno (aka gidibao) <gidibao[at]gmail[dot]com>\n"
13
  "Language-Team: Gianni Diurno | gidibao.net <gidibao[at]gmail[dot]com>\n"
14
  "MIME-Version: 1.0\n"
16
  "Content-Transfer-Encoding: 8bit\n"
17
  "X-Poedit-Language: Italian\n"
18
  "X-Poedit-Country: ITALY\n"
19
+ "X-Poedit-KeywordsList: __;_e\n"
20
+ "X-Poedit-Basepath: ..\n"
21
+ "X-Poedit-SearchPath-0: .\n"
22
 
23
+ #: functions.php:222
24
  msgid "[<a href='options-general.php?page=wp-to-twitter/wp-to-twitter.php'>Hide</a>] If you're experiencing trouble, please copy these settings into any request for support."
25
  msgstr "[<a href='options-general.php?page=wp-to-twitter/wp-to-twitter.php'>Nascondi</a>] Qualora avessi riscontrato dei problemi, allega queste impostazioni alle richieste di supporto."
26
 
27
+ #: wp-to-twitter-manager.php:74
28
+ msgid "WP to Twitter is now connected with Twitter."
29
+ msgstr "WP to Twitter é ora connesso a Twitter."
30
 
31
  #: wp-to-twitter-manager.php:82
32
+ msgid "OAuth Authentication Failed. Check your credentials and verify that <a href=\"http://www.twitter.com/\">Twitter</a> is running."
33
+ msgstr "L'autentificazione OAuth é fallita. Controlla i tuoi dati e verifica che <a href=\"http://www.twitter.com/\">Twitter</a> sia in uso."
 
 
 
 
34
 
35
+ #: wp-to-twitter-manager.php:89
36
+ msgid "OAuth Authentication Data Cleared."
37
+ msgstr "I dati della autentificazione OAuth sono stati svuotati."
38
 
39
+ #: wp-to-twitter-manager.php:99
40
+ msgid "WP to Twitter Errors Cleared"
41
+ msgstr "Gli errori WP to Twitter sono stati azzerati"
42
 
43
+ #: wp-to-twitter-manager.php:106
44
  msgid "Sorry! I couldn't get in touch with the Twitter servers to post your new blog post. Your tweet has been stored in a custom field attached to the post, so you can Tweet it manually if you wish! "
45
  msgstr "Non é stato possibile contattare i server di Twitter per comunicare l'aggiornamento avvenuto. Il tuo messaggio é stato inserito in un campo personalizzato in allegato all'articolo in modo tale che tu possa compiere manualmente l'operazione!"
46
 
47
+ #: wp-to-twitter-manager.php:108
48
  msgid "Sorry! I couldn't get in touch with the Twitter servers to post your <strong>new link</strong>! You'll have to post it manually, I'm afraid. "
49
  msgstr "Non é stato possibile contattare i server di Twitter per comunicare il tuo <strong>nuovo link</strong>. Prova a compiere manualmente l'operazione."
50
 
51
+ #: wp-to-twitter-manager.php:143
52
  msgid "WP to Twitter Advanced Options Updated"
53
  msgstr "Le opzioni avanzate di WP to Twitter sono state aggiornate"
54
 
55
+ #: wp-to-twitter-manager.php:160
56
  msgid "You must add your Bit.ly login and API key in order to shorten URLs with Bit.ly."
57
  msgstr "E' necessario che tu inserisca i dati per il login e la chiave API di Bit.ly in modo da potere abbreviare gli URL con Bit.ly."
58
 
59
+ #: wp-to-twitter-manager.php:164
60
  msgid "You must add your YOURLS remote URL, login, and password in order to shorten URLs with a remote installation of YOURLS."
61
  msgstr "E' necessario che tu inserisca il tuo URL remoto a YOURLS, il login e la password in modo da potere abbreviare gli URL attraverso la tua installazione remota di YOURLS."
62
 
63
+ #: wp-to-twitter-manager.php:168
64
  msgid "You must add your YOURLS server path in order to shorten URLs with a remote installation of YOURLS."
65
  msgstr "E' necessario che tu inserisca il percorso al server del tuo YOURLS in modo da potere abbreviare gli URL attraverso la tua installazione remota di YOURLS."
66
 
67
+ #: wp-to-twitter-manager.php:172
68
  msgid "WP to Twitter Options Updated"
69
  msgstr "Le opzioni di WP to Twitter sono state aggiornate"
70
 
71
+ #: wp-to-twitter-manager.php:182
72
  msgid "Category limits updated."
73
  msgstr "I limiti per la categoria sono stati aggiornati."
74
 
75
+ #: wp-to-twitter-manager.php:186
76
  msgid "Category limits unset."
77
  msgstr "Le limitazioni alle categorie non sono state impostate."
78
 
79
+ #: wp-to-twitter-manager.php:194
 
 
 
 
 
 
 
 
80
  msgid "YOURLS password updated. "
81
  msgstr "La password di YOURLS é stata aggiornata."
82
 
83
+ #: wp-to-twitter-manager.php:197
84
  msgid "YOURLS password deleted. You will be unable to use your remote YOURLS account to create short URLS."
85
  msgstr "La tua password di YOURLS é stata cancellata. Non potrai utilizzare il tuo account remoto YOURLS per la creazione di URL brevi."
86
 
87
+ #: wp-to-twitter-manager.php:199
88
  msgid "Failed to save your YOURLS password! "
89
  msgstr "Non é stato possibile salvare la tua password di YOURLS!"
90
 
91
+ #: wp-to-twitter-manager.php:203
92
  msgid "YOURLS username added. "
93
  msgstr "Il nome utente YOURLS é stato aggiunto."
94
 
95
+ #: wp-to-twitter-manager.php:207
96
  msgid "YOURLS API url added. "
97
  msgstr "L'url alla API YOURLS é stato aggiunto. "
98
 
99
+ #: wp-to-twitter-manager.php:210
100
+ msgid "YOURLS API url removed. "
101
+ msgstr "L'url alla API YOURLS é stato rimosso. "
102
+
103
+ #: wp-to-twitter-manager.php:215
104
  msgid "YOURLS local server path added. "
105
  msgstr "Il percorso al server locale di YOURLS é stato aggiunto. "
106
 
107
+ #: wp-to-twitter-manager.php:217
108
  msgid "The path to your YOURLS installation is not correct. "
109
  msgstr "Il percorso alla tua installazione di YOURLS non é corretto. "
110
 
111
+ #: wp-to-twitter-manager.php:221
112
+ msgid "YOURLS local server path removed. "
113
+ msgstr "Il percorso al server locale di YOURLS é stato rimosso. "
114
+
115
+ #: wp-to-twitter-manager.php:225
116
  msgid "YOURLS will use Post ID for short URL slug."
117
  msgstr "YOURLS utilizzerà Post ID per lo slug degli URL brevi."
118
 
119
+ #: wp-to-twitter-manager.php:228
120
  msgid "YOURLS will not use Post ID for the short URL slug."
121
  msgstr "YOURLS non utilizzerà Post ID per lo slug degli URL brevi."
122
 
123
+ #: wp-to-twitter-manager.php:235
124
  msgid "Cligs API Key Updated"
125
  msgstr "La chiave API di Cligs é stata aggiornata."
126
 
127
+ #: wp-to-twitter-manager.php:238
128
  msgid "Cli.gs API Key deleted. Cli.gs created by WP to Twitter will no longer be associated with your account. "
129
  msgstr "La chiave API di Cli.gs é stata cancellata. I Cli.gs creati da WP to Twitter non saranno più associati al tuo account. "
130
 
131
+ #: wp-to-twitter-manager.php:240
132
  msgid "Cli.gs API Key not added - <a href='http://cli.gs/user/api/'>get one here</a>! "
133
  msgstr "Non é stata inserita la chiave API di Cli.gs - <a href='http://cli.gs/user/api/'>vai qui</a>! "
134
 
135
+ #: wp-to-twitter-manager.php:246
136
  msgid "Bit.ly API Key Updated."
137
  msgstr "La chiave API di Bit.ly é stata aggiornata."
138
 
139
+ #: wp-to-twitter-manager.php:249
140
  msgid "Bit.ly API Key deleted. You cannot use the Bit.ly API without an API key. "
141
  msgstr "La chiave API di Bit.ly é stata cancellata. Non puoi utilizzare la API di Bit.ly senza la chiave API. "
142
 
143
+ #: wp-to-twitter-manager.php:251
144
  msgid "Bit.ly API Key not added - <a href='http://bit.ly/account/'>get one here</a>! An API key is required to use the Bit.ly URL shortening service."
145
  msgstr "La chiave API di Bit.ly non é stata aggiunta - <a href='http://bit.ly/account/'>vai qui</a>! E' necessaria una chiave API affinché il servizio di URL brevi Bit.ly di possa funzionare."
146
 
147
+ #: wp-to-twitter-manager.php:255
148
  msgid " Bit.ly User Login Updated."
149
  msgstr " Il login utente per Bit.ly é stato aggiornato."
150
 
151
+ #: wp-to-twitter-manager.php:258
152
  msgid "Bit.ly User Login deleted. You cannot use the Bit.ly API without providing your username. "
153
  msgstr "Sono stati cancellati i dati per il login utente Bit.ly. Non puoi utilizzare la API di Bit.ly senza fornire il tuo nome utente. "
154
 
155
+ #: wp-to-twitter-manager.php:260
156
  msgid "Bit.ly Login not added - <a href='http://bit.ly/account/'>get one here</a>! "
157
  msgstr "Non sono stati inseriti i dati per il login a Bit.ly - <a href='http://bit.ly/account/'>vai qui</a>! "
158
 
159
+ #: wp-to-twitter-manager.php:289
160
+ msgid "No error information is available for your shortener."
161
+ msgstr "Nessuna informazione di errore disponibile per il tuo abbreviatore."
162
 
163
+ #: wp-to-twitter-manager.php:291
164
  msgid "<li class=\"error\"><strong>WP to Twitter was unable to contact your selected URL shortening service.</strong></li>"
165
  msgstr "<li class=\"error\"><strong>WP to Twitter non é stato in grado di contattare il servizio per gli URL brevi da te selezionato.</strong></li>"
166
 
167
+ #: wp-to-twitter-manager.php:294
168
  msgid "<li><strong>WP to Twitter successfully contacted your selected URL shortening service.</strong> The following link should point to your blog homepage:"
169
  msgstr "<li><strong>WP to Twitter ha contattato con successo il servizio per gli URL brevi da te selezionato.</strong> Il seguente link dovrebbe puntare alla homepage del tuo blog:"
170
 
171
+ #: wp-to-twitter-manager.php:303
172
+ msgid "<li><strong>WP to Twitter successfully submitted a status update to Twitter.</strong></li>"
173
+ msgstr "<li><strong>WP to Twitter ha inviato con successo l'aggiornamento dello stato a Twitter.</strong></li>"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
174
 
175
+ #: wp-to-twitter-manager.php:305
176
+ msgid "<li class=\"error\"><strong>WP to Twitter failed to submit an update to Twitter.</strong></li>"
177
+ msgstr "<li class=\"error\"><strong>WP to Twitter non é stato in grado di inviare l'aggiornamento a Twitter.</strong></li>"
178
 
179
+ #: wp-to-twitter-manager.php:308
180
+ msgid "You have not connected WordPress to Twitter."
181
+ msgstr "Non hai connesso WordPress a Twitter."
182
 
183
+ #: wp-to-twitter-manager.php:312
 
 
 
 
184
  msgid "<li class=\"error\"><strong>Your server does not appear to support the required methods for WP to Twitter to function.</strong> You can try it anyway - these tests aren't perfect.</li>"
185
  msgstr "<li class=\"error\"><strong>Pare che il tuo server non supporti le funzioni richieste affinché WP to Twitter possa funzionare correttamente.</strong> Puoi comunque provare ugualmente - queste verifiche non sono perfette - garantisco i risultati.</li>"
186
 
187
+ #: wp-to-twitter-manager.php:316
188
+ msgid "<li><strong>Your server should run WP to Twitter successfully.</strong></li>"
189
+ msgstr "<li><strong>WP to Twitter funziona correttamente per il tuo server.</strong></li>"
190
 
191
+ #: wp-to-twitter-manager.php:333
192
  msgid "WP to Twitter Options"
193
  msgstr "Opzioni WP to Twitter"
194
 
195
+ #: wp-to-twitter-manager.php:343
196
+ #: wp-to-twitter.php:805
197
  msgid "Get Support"
198
  msgstr "Supporto"
199
 
200
+ #: wp-to-twitter-manager.php:344
201
  msgid "Export Settings"
202
  msgstr "Impostazioni esportazione"
203
 
204
+ #: wp-to-twitter-manager.php:345
205
+ #: wp-to-twitter.php:805
206
  msgid "Make a Donation"
207
  msgstr "Effettua una donazione"
208
 
209
+ #: wp-to-twitter-manager.php:360
210
  msgid "Shortcodes available in post update templates:"
211
  msgstr "Shortcode disponibili nei template aggiornamento post:"
212
 
213
+ #: wp-to-twitter-manager.php:362
214
  msgid "<code>#title#</code>: the title of your blog post"
215
  msgstr "<code>#title#</code>: il titolo del tuo post"
216
 
217
+ #: wp-to-twitter-manager.php:363
218
  msgid "<code>#blog#</code>: the title of your blog"
219
  msgstr "<code>#blog#</code>: il titolo del tuo blog"
220
 
221
+ #: wp-to-twitter-manager.php:364
222
  msgid "<code>#post#</code>: a short excerpt of the post content"
223
  msgstr "<code>#post#</code>: un breve riassunto dei contenuti del post"
224
 
225
+ #: wp-to-twitter-manager.php:365
226
  msgid "<code>#category#</code>: the first selected category for the post"
227
  msgstr "<code>#category#</code>: la prima categoria selezionata per il post"
228
 
229
+ #: wp-to-twitter-manager.php:366
230
  msgid "<code>#date#</code>: the post date"
231
  msgstr "<code>#date#</code>: la data del post"
232
 
233
+ #: wp-to-twitter-manager.php:367
234
  msgid "<code>#url#</code>: the post URL"
235
  msgstr "<code>#url#</code>: l'URL del post"
236
 
237
+ #: wp-to-twitter-manager.php:368
238
+ msgid "<code>#author#</code>: the post author"
239
  msgstr "<code>#author#</code>: l'autore del post"
240
 
241
+ #: wp-to-twitter-manager.php:370
242
  msgid "You can also create custom shortcodes to access WordPress custom fields. Use doubled square brackets surrounding the name of your custom field to add the value of that custom field to your status update. Example: <code>[[custom_field]]</code></p>"
243
  msgstr "Hai la possibilità di potere creare degli shortcode personalizzati grazie ai campi personalizzati di WordPress. Utilizza le doppie parentesi quadre per avvolgere il nome del tuo campo personalizzato per aggiungere il valore di quel dato campo al tuo stato di aggiornamento. Esempio: <code>[[custom_field]]</code></p>"
244
 
245
+ #: wp-to-twitter-manager.php:375
246
  msgid "<p>One or more of your last posts has failed to send it's status update to Twitter. Your Tweet has been saved in your post custom fields, and you can re-Tweet it at your leisure.</p>"
247
  msgstr "<p>Uno o più dei tuoi articoli recenti non é stato in grado di comunicare l'aggiornamento a Twitter. Il tuo messaggio é stato inserito nei dati meta del campo personalizzato del tuo articolo in modo tale che tu possa ripetere l'operazione a tuo piacere.</p>"
248
 
249
+ #: wp-to-twitter-manager.php:379
250
  msgid "<p>The query to the URL shortener API failed, and your URL was not shrunk. The full post URL was attached to your Tweet. Check with your URL shortening provider to see if there are any known issues. [<a href=\"http://blog.cli.gs\">Cli.gs Blog</a>] [<a href=\"http://blog.bit.ly\">Bit.ly Blog</a>]</p>"
251
  msgstr "<p>La richiesta é fallita! Non essendo stato possibile abbreviare l'URL abbiamo utilizzato per il messaggio l'indirizzo normale. Verifica la documentazione in merito presso il tuo provider di URL brevi. [<a href=\"http://blog.cli.gs\">Cli.gs Blog</a>] [<a href=\"http://blog.bit.ly\">Bit.ly Blog</a>]</p>"
252
 
253
+ #: wp-to-twitter-manager.php:386
254
  msgid "Clear 'WP to Twitter' Error Messages"
255
  msgstr "Svuota i messaggiodi errore 'WP to Twitter'"
256
 
257
+ #: wp-to-twitter-manager.php:402
258
  msgid "Basic Settings"
259
  msgstr "Impostazioni di base"
260
 
261
+ #: wp-to-twitter-manager.php:408
262
  msgid "Tweet Templates"
263
  msgstr "Template messaggio"
264
 
265
+ #: wp-to-twitter-manager.php:411
266
  msgid "Update when a post is published"
267
  msgstr "Aggiorna quando viene pubblicato un articolo"
268
 
269
+ #: wp-to-twitter-manager.php:411
270
  msgid "Text for new post updates:"
271
  msgstr "Testo per aggiornamenti articolo:"
272
 
273
+ #: wp-to-twitter-manager.php:417
274
+ #: wp-to-twitter-manager.php:420
275
  msgid "Update when a post is edited"
276
  msgstr "Aggiorna quando modifichi un articolo"
277
 
278
+ #: wp-to-twitter-manager.php:417
279
+ #: wp-to-twitter-manager.php:420
280
  msgid "Text for editing updates:"
281
  msgstr "Testo per aggiornamenti modifiche:"
282
 
283
+ #: wp-to-twitter-manager.php:421
284
+ msgid "You can not disable updates on edits when using Postie or similar plugins."
285
+ msgstr "Non potrai disattivare gli aggiornamenti durante l'utilizzo di Postie o plugin simili."
286
+
287
+ #: wp-to-twitter-manager.php:425
288
  msgid "Update Twitter when new Wordpress Pages are published"
289
  msgstr "Aggiorna Twitter quando viene pubblicata una nuova pagina WordPress"
290
 
291
+ #: wp-to-twitter-manager.php:425
292
  msgid "Text for new page updates:"
293
  msgstr "Testo per aggiornamenti articolo:"
294
 
295
+ #: wp-to-twitter-manager.php:429
296
  msgid "Update Twitter when WordPress Pages are edited"
297
  msgstr "Aggiorna Twitter quando viene modificata una pagina WordPress"
298
 
299
+ #: wp-to-twitter-manager.php:429
300
  msgid "Text for page edit updates:"
301
  msgstr "Testo per la pagina di modifica aggiornamenti:"
302
 
303
+ #: wp-to-twitter-manager.php:433
304
  msgid "Update Twitter when you post a Blogroll link"
305
  msgstr "Aggiorna Twitter quando viene aggiunto un nuovo link al blogroll"
306
 
307
+ #: wp-to-twitter-manager.php:434
308
  msgid "Text for new link updates:"
309
  msgstr "Testo per gli aggiornamenti di un nuovo link:"
310
 
311
+ #: wp-to-twitter-manager.php:434
312
  msgid "Available shortcodes: <code>#url#</code>, <code>#title#</code>, and <code>#description#</code>."
313
  msgstr "Shortcode disponibili: <code>#url#</code>, <code>#title#</code> e <code>#description#</code>."
314
 
315
+ #: wp-to-twitter-manager.php:438
316
  msgid "Choose your short URL service (account settings below)"
317
  msgstr "Scegli il tuo servizio per gli URL brevi (impostazioni account qui sotto)"
318
 
319
+ #: wp-to-twitter-manager.php:441
320
  msgid "Use Cli.gs for my URL shortener."
321
  msgstr "Usa Cli.gs per gli URL brevi"
322
 
323
+ #: wp-to-twitter-manager.php:442
324
  msgid "Use Bit.ly for my URL shortener."
325
  msgstr "Usa Bit.ly per gli URL brevi"
326
 
327
+ #: wp-to-twitter-manager.php:443
328
  msgid "YOURLS (installed on this server)"
329
  msgstr "YOURLS (intallato in questo server)"
330
 
331
+ #: wp-to-twitter-manager.php:444
332
  msgid "YOURLS (installed on a remote server)"
333
  msgstr "YOURLS (intallato in un server remoto)"
334
 
335
+ #: wp-to-twitter-manager.php:445
336
  msgid "Use WordPress as a URL shortener."
337
  msgstr "Usa WordPress per gli URL brevi."
338
 
339
+ #: wp-to-twitter-manager.php:446
340
  msgid "Don't shorten URLs."
341
  msgstr "Non usare gli URL brevi"
342
 
343
+ #: wp-to-twitter-manager.php:448
344
  msgid "Using WordPress as a URL shortener will send URLs to Twitter in the default URL format for WordPress: <code>http://domain.com/wpdir/?p=123</code>. Google Analytics is not available when using WordPress shortened URLs."
345
  msgstr "L'utilizzo di WordPress per la creazione di URL brevi farà sì che verranno inviati a Twitter gli URL nel formato predefinito di WordPress: <code>http://domain.com/wpdir/?p=123</code> . Google Analytics non sarà disponibile durante l'utilizzo di WordPress per la creazione di URL brevi."
346
 
347
+ #: wp-to-twitter-manager.php:454
348
  msgid "Save WP->Twitter Options"
349
  msgstr "Salva le opzioni WP->Twitter"
350
 
351
+ #: wp-to-twitter-manager.php:466
352
+ msgid "<abbr title=\"Uniform Resource Locator\">URL</abbr> Shortener Account Settings"
353
+ msgstr "Impostazione account abbreviatore <abbr title=\"Uniform Resource Locator\">URL</abbr>"
 
354
 
355
+ #: wp-to-twitter-manager.php:470
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
356
  msgid "Your Cli.gs account details"
357
  msgstr "Dati account Cli.gs"
358
 
359
+ #: wp-to-twitter-manager.php:475
360
  msgid "Your Cli.gs <abbr title='application programming interface'>API</abbr> Key:"
361
  msgstr "La tua chiave <abbr title='application programming interface'>API</abbr> di Cli.gs:"
362
 
363
+ #: wp-to-twitter-manager.php:481
364
  msgid "Don't have a Cli.gs account or Cligs API key? <a href='http://cli.gs/user/api/'>Get one free here</a>!<br />You'll need an API key in order to associate the Cligs you create with your Cligs account."
365
+ msgstr "Non hai ancora un account oppure una chiave API Cli.gs? <a href='http://cli.gs/user/api/'>Vai qui</a>!<br />E' necessaria una chiave API in modo tale da potere associare i Cligs da te creati con il tuo account di Cligs."
366
 
367
+ #: wp-to-twitter-manager.php:487
368
  msgid "Your Bit.ly account details"
369
  msgstr "Dati account Bit.ly"
370
 
371
+ #: wp-to-twitter-manager.php:492
372
  msgid "Your Bit.ly username:"
373
  msgstr "Nome utente Bit.ly:"
374
 
375
+ #: wp-to-twitter-manager.php:496
376
  msgid "Your Bit.ly <abbr title='application programming interface'>API</abbr> Key:"
377
  msgstr "La tua chiave <abbr title='application programming interface'>API</abbr> di Bit.ly:"
378
 
379
+ #: wp-to-twitter-manager.php:503
380
  msgid "Save Bit.ly API Key"
381
  msgstr "Salva la chiave API di Bit.ly"
382
 
383
+ #: wp-to-twitter-manager.php:503
384
  msgid "Clear Bit.ly API Key"
385
  msgstr "Svuota la chiave API di Bit.ly"
386
 
387
+ #: wp-to-twitter-manager.php:503
388
  msgid "A Bit.ly API key and username is required to shorten URLs via the Bit.ly API and WP to Twitter."
389
  msgstr "E' necessario il nome utente e la chiave API di Bit.ly per potere rendere brevi gli URL viala chiave API di Bit.ly API e WP to Twitter."
390
 
391
+ #: wp-to-twitter-manager.php:508
392
  msgid "Your YOURLS account details"
393
  msgstr "I dettagli del tuo account YOURLS"
394
 
395
+ #: wp-to-twitter-manager.php:512
396
  msgid "Path to the YOURLS config file (Local installations)"
397
  msgstr "Percorso al file di configurazione di YOURLS (installazioni locali)"
398
 
399
+ #: wp-to-twitter-manager.php:513
400
+ #: wp-to-twitter-manager.php:517
401
  msgid "Example:"
402
  msgstr "Esempio:"
403
 
404
+ #: wp-to-twitter-manager.php:516
405
  msgid "URI to the YOURLS API (Remote installations)"
406
  msgstr "URI alla API di YOURLS (installazioni remote)"
407
 
408
+ #: wp-to-twitter-manager.php:520
409
  msgid "Your YOURLS username:"
410
  msgstr "Nome utente YOURLS:"
411
 
412
+ #: wp-to-twitter-manager.php:524
413
  msgid "Your YOURLS password:"
414
  msgstr "Password YOURLS:"
415
 
416
+ #: wp-to-twitter-manager.php:524
417
  msgid "<em>Saved</em>"
418
  msgstr "<em>Salvato</em>"
419
 
420
+ #: wp-to-twitter-manager.php:528
421
  msgid "Use Post ID for YOURLS url slug."
422
  msgstr "Utilizza Post ID per lo slug degli url di YOURLS."
423
 
424
+ #: wp-to-twitter-manager.php:533
425
  msgid "Save YOURLS Account Info"
426
  msgstr "Salva le info account di YOURLS"
427
 
428
+ #: wp-to-twitter-manager.php:533
429
  msgid "Clear YOURLS password"
430
  msgstr "Svuota la password di YOURLS"
431
 
432
+ #: wp-to-twitter-manager.php:533
433
  msgid "A YOURLS password and username is required to shorten URLs via the remote YOURLS API and WP to Twitter."
434
  msgstr "E' necessario il nome utente e la password di affinché possano essere abbreviati gli URL via l'API remoto di YOURLS e di WP to Twitter."
435
 
436
+ #: wp-to-twitter-manager.php:550
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
437
  msgid "Advanced Settings"
438
  msgstr "Impostazioni avanzate"
439
 
440
+ #: wp-to-twitter-manager.php:557
441
  msgid "Advanced Tweet settings"
442
  msgstr "Opzioni messaggio avanzate"
443
 
444
+ #: wp-to-twitter-manager.php:560
445
  msgid "Add tags as hashtags on Tweets"
446
  msgstr "Aggiungi ai messaggi i tag come fossero degli hashtag "
447
 
448
+ #: wp-to-twitter-manager.php:561
449
  msgid "Spaces replaced with:"
450
  msgstr "Sostituisci gli spazi con:"
451
 
452
+ #: wp-to-twitter-manager.php:562
453
  msgid "Default replacement is an underscore (<code>_</code>). Use <code>[ ]</code> to remove spaces entirely."
454
  msgstr "Il sostituto predefinito é un trattino breve (<code>_</code>). Usa <code>[ ]</code> per rimuovere gli spazi completamente."
455
 
456
+ #: wp-to-twitter-manager.php:565
457
  msgid "Maximum number of tags to include:"
458
  msgstr "Numero massimo di tag da includere:"
459
 
460
+ #: wp-to-twitter-manager.php:566
461
  msgid "Maximum length in characters for included tags:"
462
  msgstr "Lunghezza massima in caratteri per i tag inclusi:"
463
 
464
+ #: wp-to-twitter-manager.php:567
465
  msgid "These options allow you to restrict the length and number of WordPress tags sent to Twitter as hashtags. Set to <code>0</code> or leave blank to allow any and all tags."
466
  msgstr "Queste opzioni ti permetteranno di limitare la lunghezza ed il numero dei tag WordPress inviati a Twitter come hashtags. Imposta a <code>0</code> oppure lascia in bianco per permettere ogni tag."
467
 
468
+ #: wp-to-twitter-manager.php:570
469
  msgid "Length of post excerpt (in characters):"
470
  msgstr "Lunghezza riassunto messaggi (in caratteri)"
471
 
472
+ #: wp-to-twitter-manager.php:570
473
  msgid "By default, extracted from the post itself. If you use the 'Excerpt' field, that will be used instead."
474
  msgstr "Come funzione predefinita, gli estratti verranno generati in automatico. Utilizzassi il campo 'Excerpt', questi avrà la priorità."
475
 
476
+ #: wp-to-twitter-manager.php:573
477
  msgid "WP to Twitter Date Formatting:"
478
  msgstr "Formattazione data WP to Twitter:"
479
 
480
+ #: wp-to-twitter-manager.php:574
481
  msgid "Default is from your general settings. <a href='http://codex.wordpress.org/Formatting_Date_and_Time'>Date Formatting Documentation</a>."
482
  msgstr "Predefinito dalle impostazioni generali. <a href='http://codex.wordpress.org/Formatting_Date_and_Time'>Info formattazione data</a>."
483
 
484
+ #: wp-to-twitter-manager.php:578
485
  msgid "Custom text before all Tweets:"
486
  msgstr "Testo personalizzato prima di tutti i messaggi:"
487
 
488
+ #: wp-to-twitter-manager.php:579
489
  msgid "Custom text after all Tweets:"
490
  msgstr "Testo personalizzato dopo tutti i messaggi:"
491
 
492
+ #: wp-to-twitter-manager.php:582
493
  msgid "Custom field for an alternate URL to be shortened and Tweeted:"
494
  msgstr "Campo personalizzato riferito ad un URL alternativo da abbreviare ed inviare a Twitter:"
495
 
496
+ #: wp-to-twitter-manager.php:583
497
  msgid "You can use a custom field to send an alternate URL for your post. The value is the name of a custom field containing your external URL."
498
  msgstr "Puoi utilizzare un campo personalizzato per inviare un URL alternativo per il tuo articolo. Questo valore é il nome del campo personalizzato che utilizzerai per aggiungere un URL esterno."
499
 
500
+ #: wp-to-twitter-manager.php:587
501
  msgid "Special Cases when WordPress should send a Tweet"
502
  msgstr "Casi particolari nei quali WordPress dovrebbe inviare un messaggio"
503
 
504
+ #: wp-to-twitter-manager.php:590
505
  msgid "Do not post status updates by default"
506
  msgstr "Non aggiornare lo stato dei post (predefinito)"
507
 
508
+ #: wp-to-twitter-manager.php:591
509
  msgid "By default, all posts meeting other requirements will be posted to Twitter. Check this to change your setting."
510
  msgstr "Come funzione predefinita, tutti i post che soddisfano i requisiti saranno pubblicati su Twitter. Metti il segno di spunta per modificare le impostazioni."
511
 
512
+ #: wp-to-twitter-manager.php:595
513
  msgid "Send Twitter Updates on remote publication (Post by Email or XMLRPC Client)"
514
  msgstr "Invio degli aggiornamenti di Twitter via punti di pubblicazione remoti (Email o client XMLRPC)"
515
 
516
+ #: wp-to-twitter-manager.php:597
517
+ msgid "I'm using a plugin to post by email, such as Postie. Only check this if your updates do not work."
518
+ msgstr "Sto utilizzando un plugin per pubblicare gli articoli via email (del tipo Postie). Seleziona qualora gli aggiornamenti non funzionassero."
519
+
520
+ #: wp-to-twitter-manager.php:601
521
  msgid "Update Twitter when a post is published using QuickPress"
522
  msgstr "Aggiorna Twitter quando un articolo é stato pubblicato via QuickPress"
523
 
524
+ #: wp-to-twitter-manager.php:605
525
  msgid "Google Analytics Settings"
526
  msgstr "Impostazioni Google Analytics"
527
 
528
+ #: wp-to-twitter-manager.php:606
529
  msgid "You can track the response from Twitter using Google Analytics by defining a campaign identifier here. You can either define a static identifier or a dynamic identifier. Static identifiers don't change from post to post; dynamic identifiers are derived from information relevant to the specific post. Dynamic identifiers will allow you to break down your statistics by an additional variable."
530
  msgstr "Puoi tracciare la risposta da Twitter utilizzando Google Analytics definendo qui l'identificatore. Puoi definire un identificatore statico oppure uno dinamico. Gli identificatori statici non mutano da post a post mentre quelli dinamici derivano dalle informazioni di maggior rilievo appartenenti a quel post specifico. Gli identificatori dinamici ti permetteranno di analizzare le tue statistiche attraverso una variabile aggiuntiva."
531
 
532
+ #: wp-to-twitter-manager.php:610
533
  msgid "Use a Static Identifier with WP-to-Twitter"
534
  msgstr "Utilizza un identificatore statico per WP-to-Twitter"
535
 
536
+ #: wp-to-twitter-manager.php:611
537
  msgid "Static Campaign identifier for Google Analytics:"
538
  msgstr "Identificatore statico Google Analytics:"
539
 
540
+ #: wp-to-twitter-manager.php:615
541
  msgid "Use a dynamic identifier with Google Analytics and WP-to-Twitter"
542
  msgstr "Utilizza un identificatore dinamico per Google Analytics e WP-to-Twitter"
543
 
544
+ #: wp-to-twitter-manager.php:616
545
  msgid "What dynamic identifier would you like to use?"
546
  msgstr "Quale identificatore dinamico desideri utilizzare?"
547
 
548
+ #: wp-to-twitter-manager.php:618
549
  msgid "Category"
550
  msgstr "Categoria"
551
 
552
+ #: wp-to-twitter-manager.php:619
553
  msgid "Post ID"
554
  msgstr "ID post"
555
 
556
+ #: wp-to-twitter-manager.php:620
557
  msgid "Post Title"
558
  msgstr "Titolo post"
559
 
560
+ #: wp-to-twitter-manager.php:621
561
  msgid "Author"
562
  msgstr "Autore"
563
 
564
+ #: wp-to-twitter-manager.php:626
565
  msgid "Individual Authors"
566
  msgstr "Autori singoli"
567
 
568
+ #: wp-to-twitter-manager.php:629
569
  msgid "Authors have individual Twitter accounts"
570
  msgstr "Gli autori hanno degli account personali su Twitter"
571
 
572
+ #: wp-to-twitter-manager.php:629
573
+ msgid "Authors can set their username in their user profile. As of version 2.2.0, this feature no longer allows authors to post to their own Twitter accounts. It can only add an @reference to the author."
574
+ msgstr "Gli autori possono impostare il proprio nome utente nel loro profilo utente. A partire dalla versione 2.2.0, questa funzione non permetterà più agli autori di inviare i propri messaggi ai loro account di Twitter. Potrà essere aggiunto il solo riferimento @ all'autore."
575
 
576
+ #: wp-to-twitter-manager.php:633
577
  msgid "Disable Error Messages"
578
  msgstr "Disattiva i messaggi di errore"
579
 
580
+ #: wp-to-twitter-manager.php:636
581
  msgid "Disable global URL shortener error messages."
582
  msgstr "Disattiva i messaggi di errore abbreviatore URL globale."
583
 
584
+ #: wp-to-twitter-manager.php:640
585
  msgid "Disable global Twitter API error messages."
586
  msgstr "Disattiva i messaggi di errore globali API Twitter."
587
 
588
+ #: wp-to-twitter-manager.php:644
589
+ msgid "Disable notification to implement OAuth"
590
+ msgstr "Disattiva la notifica per implementare OAuth"
591
+
592
+ #: wp-to-twitter-manager.php:648
593
+ msgid "Get Debugging Data for OAuth Connection"
594
+ msgstr "Ottieni i dati di Debugging per la connessione OAuth"
595
+
596
+ #: wp-to-twitter-manager.php:654
597
  msgid "Save Advanced WP->Twitter Options"
598
+ msgstr "Salva avanzate WP->Opzioni Twitter"
599
 
600
+ #: wp-to-twitter-manager.php:668
601
  msgid "Limit Updating Categories"
602
  msgstr "Limite aggiornamento categorie"
603
 
604
+ #: wp-to-twitter-manager.php:672
605
  msgid "Select which blog categories will be Tweeted. "
606
  msgstr "Seleziona quali categorie del blog saranno oggetto dei messaggi su Twitter. "
607
 
608
+ #: wp-to-twitter-manager.php:675
609
  msgid "<em>Category limits are disabled.</em>"
610
  msgstr "<em>Le limitazioni alle categorie non sono attive.</em>"
611
 
612
+ #: wp-to-twitter-manager.php:689
613
  msgid "Check Support"
614
  msgstr "Supporto"
615
 
616
+ #: wp-to-twitter-manager.php:689
617
  msgid "Check whether your server supports <a href=\"http://www.joedolson.com/articles/wp-to-twitter/\">WP to Twitter's</a> queries to the Twitter and URL shortening APIs. This test will send a status update to Twitter and shorten a URL using your selected methods."
618
  msgstr "Metti il segno di spunta nel caso in cui il tuo server supportasse le query di <a href=\"http://www.joedolson.com/articles/wp-to-twitter/\">WP to Twitter</a> per Twitter e per le API per l'abbreviazione degli URL. Questo test invierà a Twitter un aggiornamento dello stato e renderà breve l'URL utilizzando il metodo da te selezionato."
619
 
620
+ #: wp-to-twitter-oauth.php:105
621
+ #: wp-to-twitter-oauth.php:143
622
+ msgid "Connect to Twitter"
623
+ msgstr "Collegati a Twitter"
624
+
625
+ #: wp-to-twitter-oauth.php:108
626
+ msgid "The process to set up OAuth authentication for your web site is needlessly laborious. It is also confusing. However, this is the only method available from Twitter at this time. Note that you will not, at any time, enter you Twitter username or password into WP to Twitter; they are not used in OAuth authentication."
627
+ msgstr "La procedura di impostazione della autentificazione OAuth per il tuo sito é piuttosto laboriosa nonché confusa. Comunque, questa é l'unica soluzione disponibile offertaci da Twitter. Ti ricordo che non potrai, mai ed in nessun caso, inserire il tuo nome utente oppure la password in WP to Twitter poiché essi non verranno utilizzati per l'autentificazione OAuth."
628
+
629
+ #: wp-to-twitter-oauth.php:111
630
+ msgid "1. Register this site as an application on "
631
+ msgstr "1. Registra questo sito come una applicazione sulla "
632
+
633
+ #: wp-to-twitter-oauth.php:111
634
+ msgid "Twitter's application registration page"
635
+ msgstr "pagina di registrazione applicazione Twitter"
636
+
637
+ #: wp-to-twitter-oauth.php:113
638
+ msgid "If you're not currently logged in, use the Twitter username and password which you want associated with this site"
639
+ msgstr "Qualora non fossi collegato, utilizza il nome utente e la password che desideri associare a questo sito"
640
+
641
+ #: wp-to-twitter-oauth.php:114
642
+ msgid "Your Application's Name will be what shows up after \"via\" in your twitter stream; previously, \"WP to Twitter.\" Your application name cannot include the word \"Twitter.\" I suggest using the name of your web site."
643
+ msgstr "Il nome della tua applicazione sarà quello che appare dopo \"via\" nel tuo twitter stream; in precedenza, \"WP to Twitter.\" Il nome per la tua applicazione non potrà includere la parola \"Twitter.\" Usa il nome del tuo sito."
644
+
645
+ #: wp-to-twitter-oauth.php:115
646
+ msgid "Your Application Description can be whatever you want."
647
+ msgstr "La descrizione per la tua applicazione é un testo a tua discrezione."
648
+
649
+ #: wp-to-twitter-oauth.php:116
650
+ msgid "Application Type should be set on "
651
+ msgstr "Il tipo di applicazione deve essere impostato a "
652
+
653
+ #: wp-to-twitter-oauth.php:116
654
+ msgid "Browser"
655
+ msgstr "Browser"
656
+
657
+ #: wp-to-twitter-oauth.php:117
658
+ msgid "The Callback URL should be "
659
+ msgstr "Il Callback URL dovrebbe essere "
660
+
661
+ #: wp-to-twitter-oauth.php:118
662
+ msgid "Default Access type must be set to "
663
+ msgstr "Il tipo di accesso predefinito deve essere impostato a "
664
+
665
+ #: wp-to-twitter-oauth.php:118
666
+ msgid "Read &amp; Write"
667
+ msgstr "Leggi &amp; Scrivi"
668
+
669
+ #: wp-to-twitter-oauth.php:118
670
+ msgid "(this is NOT the default)"
671
+ msgstr "(questo NON é il predefinito)"
672
+
673
+ #: wp-to-twitter-oauth.php:120
674
+ msgid "Once you have registered your site as an application, you will be provided with a consumer key and a consumer secret."
675
+ msgstr "Una volta registrato il tuo sito come applicazione, ti verranno forniti una consumer key ed un consumer secret."
676
+
677
+ #: wp-to-twitter-oauth.php:121
678
+ msgid "2. Copy and paste your consumer key and consumer secret into the fields below"
679
+ msgstr "2. Copia ed incolla nei campi qui sotto la tua consumer key ed il consumer secret"
680
+
681
+ #: wp-to-twitter-oauth.php:124
682
+ msgid "Twitter Consumer Key"
683
+ msgstr "Twitter Consumer Key"
684
+
685
+ #: wp-to-twitter-oauth.php:128
686
+ msgid "Twitter Consumer Secret"
687
+ msgstr "Twitter Consumer Secret"
688
+
689
+ #: wp-to-twitter-oauth.php:131
690
+ msgid "3. Copy and paste your Access Token and Access Token Secret into the fields below"
691
+ msgstr "3. Copia ed incolla nei campi qui sotto il tuo token di accesso e secret"
692
+
693
+ #: wp-to-twitter-oauth.php:132
694
+ msgid "On the right hand side of your application page, click on 'My Access Token'."
695
+ msgstr "Clicca su 'My Access Token' posizionato alla destra della pagina della applicazione."
696
+
697
+ #: wp-to-twitter-oauth.php:134
698
+ msgid "Access Token"
699
+ msgstr "Token d'accesso"
700
+
701
+ #: wp-to-twitter-oauth.php:138
702
+ msgid "Access Token Secret"
703
+ msgstr "Token d'accesso - Secret"
704
+
705
+ #: wp-to-twitter-oauth.php:153
706
+ msgid "Disconnect from Twitter"
707
+ msgstr "Disconnettiti da Twitter"
708
+
709
+ #: wp-to-twitter-oauth.php:160
710
+ msgid "Twitter Username "
711
+ msgstr "Nome utente Twitter"
712
+
713
+ #: wp-to-twitter-oauth.php:161
714
+ msgid "Consumer Key "
715
+ msgstr "Consumer Key "
716
+
717
+ #: wp-to-twitter-oauth.php:162
718
+ msgid "Consumer Secret "
719
+ msgstr "Consumer Secret "
720
+
721
+ #: wp-to-twitter-oauth.php:163
722
+ msgid "Access Token "
723
+ msgstr "Token d'accesso"
724
+
725
+ #: wp-to-twitter-oauth.php:164
726
+ msgid "Access Token Secret "
727
+ msgstr "Token d'accesso - Secret"
728
+
729
+ #: wp-to-twitter-oauth.php:167
730
+ msgid "Disconnect Your WordPress and Twitter Account"
731
+ msgstr "Scollega il tuo account WordPress e Twitter"
732
+
733
+ #: wp-to-twitter.php:55
734
+ #, php-format
735
+ msgid "Twitter now requires authentication by OAuth. You will need you to update your <a href=\"%s\">settings</a> in order to continue to use WP to Twitter."
736
+ msgstr "Twitter necessita una autentificazione via OAuth. Aggiorna le tue <a href=\"%s\">impostazioni</a> per potere utilizzare ancora WP to Twitter."
737
+
738
+ #: wp-to-twitter.php:136
739
+ msgid "200 OK: Success!"
740
+ msgstr "200 OK: Successo!"
741
+
742
+ #: wp-to-twitter.php:139
743
+ msgid "400 Bad Request: The request was invalid. This is the status code returned during rate limiting."
744
+ msgstr "400 Bad Request: La richiesta non é valida. L'utilizzo di questo codice é relativo al limite delle chiamate."
745
+
746
+ #: wp-to-twitter.php:142
747
+ msgid "401 Unauthorized: Authentication credentials were missing or incorrect."
748
+ msgstr "401 Unauthorized: quando mancano oppure sono inesatte le credenziali per l'autentificazione."
749
+
750
+ #: wp-to-twitter.php:145
751
+ msgid "403 Forbidden: The request is understood, but it has been refused. This code is used when requests are being denied due to update limits."
752
+ msgstr "403 Forbidden: La richiesta é stata compresa, ma viene rifiutata. L'utilizzo di questo codice indica che le richieste vengono rifiutate in relazione ai limiti di aggiornamento."
753
+
754
+ #: wp-to-twitter.php:147
755
+ msgid "500 Internal Server Error: Something is broken at Twitter."
756
+ msgstr "500 Internal Server Error: problemi interni a Twitter."
757
+
758
+ #: wp-to-twitter.php:150
759
+ msgid "503 Service Unavailable: The Twitter servers are up, but overloaded with requests Please try again later."
760
+ msgstr "503 Service Unavailable: The Twitter servers are up, but overloaded with requests Please try again later."
761
+
762
+ #: wp-to-twitter.php:153
763
+ msgid "502 Bad Gateway: Twitter is down or being upgraded."
764
+ msgstr "502 Bad Gateway: Twitter é down oppure sotto aggiornamento."
765
+
766
+ #. #-#-#-#-# plugin.pot (WP to Twitter 2.2.0 (beta 7)) #-#-#-#-#
767
  #. Plugin Name of the plugin/theme
768
+ #: wp-to-twitter.php:732
769
  msgid "WP to Twitter"
770
  msgstr "WP to Twitter"
771
 
772
+ #: wp-to-twitter.php:808
773
  msgid "Don't Tweet this post."
774
  msgstr "Non segnalare a Twitter questo articolo."
775
 
776
+ #: wp-to-twitter.php:818
777
  msgid "This URL is direct and has not been shortened: "
778
  msgstr "Questo URL é diretto e non può essere abbreviato: "
779
 
780
+ #: wp-to-twitter.php:872
 
781
  msgid "WP to Twitter User Settings"
782
  msgstr "Impostazioni WP to Twitter User"
783
 
784
+ #: wp-to-twitter.php:876
785
+ msgid "Use My Twitter Username"
786
+ msgstr "Utilizza il mio nome utente Twitter"
 
 
 
 
 
 
787
 
788
+ #: wp-to-twitter.php:877
789
+ msgid "Tweet my posts with an @ reference to my username."
790
+ msgstr "Segnala i miei articoli con un riferimento @ correlato al mio nome utente."
 
791
 
792
+ #: wp-to-twitter.php:878
793
+ msgid "Tweet my posts with an @ reference to both my username and to the main site username."
794
+ msgstr "Segnala i miei articoli con un riferimento @ correlato tanto al mio nome utente per il sito principale quanto al mio nome utente."
795
 
796
+ #: wp-to-twitter.php:883
797
+ msgid "Enter your own Twitter username."
798
+ msgstr "Inserisci il tuo nome utente Twitter"
799
 
800
+ #: wp-to-twitter.php:919
801
  msgid "Check the categories you want to tweet:"
802
  msgstr "Seleziona le gategorie per i messaggi:"
803
 
804
+ #: wp-to-twitter.php:936
805
  msgid "Set Categories"
806
  msgstr "Imposta le categorie"
807
 
808
+ #: wp-to-twitter.php:1010
809
  msgid "<p>Couldn't locate the settings page.</p>"
810
  msgstr "<p>Non é possibile localizzare la pagina delle impostazioni.</p>"
811
 
812
+ #: wp-to-twitter.php:1015
813
  msgid "Settings"
814
  msgstr "Impostazioni"
815
 
829
  msgid "http://www.joedolson.com/"
830
  msgstr "http://www.joedolson.com/"
831
 
832
+ #~ msgid "Non-Twitter login and password updated. "
833
+ #~ msgstr "Il login e la password Non-Twitter sono stati aggiornati."
834
+
835
+ #~ msgid "You need to provide your login and password! "
836
+ #~ msgstr "E' necessario fornire i dati login e password!"
837
+
838
+ #~ msgid "Twitter-compatible API settings updated. "
839
+ #~ msgstr "Le impostazioni compatibilità API Twittersono state aggiornate."
840
+
841
+ #~ msgid ""
842
+ #~ "You have configured WP to Twitter to use both Twitter and your selected "
843
+ #~ "service."
844
+ #~ msgstr ""
845
+ #~ "Hai configurato WP to Twitter in modo tale che esso possa utilizzare "
846
+ #~ "Twitter ed il tuo servizio selezionato."
847
+
848
+ #~ msgid ""
849
+ #~ "<li><strong>Your selected URL shortener does not require testing.</"
850
+ #~ "strong></li>"
851
+ #~ msgstr ""
852
+ #~ "<li><strong>Il servizio di URL brevi che hai selezionato non necessita di "
853
+ #~ "test.</strong></li>"
854
+
855
+ #~ msgid "Twitter returned this error:"
856
+ #~ msgstr "Twitter ha rilevato questo errore:"
857
+
858
+ #~ msgid ""
859
+ #~ "<li class=\"error\"><strong>WP to Twitter failed to contact your primary "
860
+ #~ "update service.</strong></li>"
861
+ #~ msgstr ""
862
+ #~ "<li class=\"error\"><strong>WP to Twitter non é stato in grado di "
863
+ #~ "contattare il tuo principale servizio aggiornamenti.</strong></li>"
864
+
865
+ #~ msgid "No error was returned."
866
+ #~ msgstr "Nessun errore da riportare."
867
+
868
+ #~ msgid ""
869
+ #~ "<li><strong>WP to Twitter successfully submitted a status update to your "
870
+ #~ "secondary update service.</strong></li>"
871
+ #~ msgstr ""
872
+ #~ "<li><strong>WP to Twitter ha inviato con successo l'aggiornamento dello "
873
+ #~ "stato al tuo servizio aggiornamenti secondario.</strong></li>"
874
+
875
+ #~ msgid ""
876
+ #~ "<li class=\"error\"><strong>WP to Twitter failed to submit an update to "
877
+ #~ "your secondary update service.</strong></li>"
878
+ #~ msgstr ""
879
+ #~ "<li class=\"error\"><strong>WP to Twitter non é stato in grado di inviare "
880
+ #~ "l'aggiornamento dello stato al tuo servizio aggiornamenti secondario.</"
881
+ #~ "strong></li>"
882
+
883
+ #~ msgid "The service returned this error:"
884
+ #~ msgstr "Il servizio ha rilevato questo errore:"
885
+
886
+ #~ msgid ""
887
+ #~ "This plugin may not fully work in your server environment. The plugin "
888
+ #~ "failed to contact both a URL shortener API and the Twitter service API."
889
+ #~ msgstr ""
890
+ #~ "Con la configurazione del tuo server questo plugin non può funzionare al "
891
+ #~ "meglio. Il plugin non é stato in grado di conttatare tanto l'API di un "
892
+ #~ "URL breve API quanto l'API del servizio di Twitter."
893
+
894
+ #~ msgid "Add Twitter-compatible Service"
895
+ #~ msgstr "Aggiungi il servizio Twitter-compatibile"
896
+
897
+ #~ msgid "URI for Twitter-compatible Post Status API"
898
+ #~ msgstr "URI per la Post Status API Twitter-compatibile"
899
+
900
+ #~ msgid "Service Name"
901
+ #~ msgstr "Nome del servizio"
902
+
903
+ #~ msgid "Status Update Character Limit"
904
+ #~ msgstr "Limite caratteri aggiornamento stato"
905
+
906
+ #~ msgid "Post status updates to both Twitter and this service."
907
+ #~ msgstr "Aggiornamenti stato del post per Twitter e per questo servizio."
908
+
909
+ #~ msgid "Your service username:"
910
+ #~ msgstr "Nome utente servizio:"
911
+
912
+ #~ msgid "Your service password:"
913
+ #~ msgstr "Password servizio:"
914
+
915
+ #~ msgid "(<em>Saved</em>)"
916
+ #~ msgstr "(<em>Salvato</em>)"
917
+
918
+ #~ msgid "Update Twitter Compatible Service"
919
+ #~ msgstr "Aggiorna il servizio Twitter Compatible"
920
+
921
+ #~ msgid ""
922
+ #~ "&raquo; <small>You can use any service using the Twitter-compatible REST "
923
+ #~ "API returning data in JSON format with this plugin. Twitter-compatible "
924
+ #~ "services include <a href='http://identi.ca'>Identi.ca</a>, <a "
925
+ #~ "href='http://shoutem.com'>Shoutem.com</a> and <a href='http://chirup."
926
+ #~ "com'>Chirup.com</a>. <strong>No support will be provided for services "
927
+ #~ "other than Twitter.</strong>"
928
+ #~ msgstr ""
929
+ #~ "&raquo; <small>Puoi utilizzare ogni servizio facendo uso della Twitter-"
930
+ #~ "compatible REST API che porta i dati in formato JSON grazie a questo "
931
+ #~ "plugin. I servizi Twitter-compatibile includono <a href='http://identi."
932
+ #~ "ca'>Identi.ca</a>, <a href='http://shoutem.com'>Shoutem.com</a> e <a "
933
+ #~ "href='http://chirup.com'>Chirup.com</a>. <strong>Nessun supporto verrà "
934
+ #~ "fornito per quei servizi che non siano Twitter.</strong>"
935
+
936
+ #~ msgid ""
937
+ #~ "Authors can set their own Twitter username and password in their user "
938
+ #~ "profile."
939
+ #~ msgstr ""
940
+ #~ "Ogni autore può impostare nel proprio profilo utente il nome utente e la "
941
+ #~ "password di Twitter."
942
+
943
+ #~ msgid "Enter your own Twitter password."
944
+ #~ msgstr "Inserisci la tua password di Twitter"
945
+
946
+ #~ msgid "<em>Password saved</em>"
947
+ #~ msgstr "<em>La password é stata salvata</em>"
948
+
949
+ #~ msgid "Please <a href='#twitterpw'>add your Twitter password</a>. "
950
+ #~ msgstr "Aggiungi la tua <a href='#twitterpw'>password per Twitter</a>. "
951
+
952
+ #~ msgid ""
953
+ #~ "Twitter API settings reset. You may need to change your username and "
954
+ #~ "password settings, if they are not the same as the alternate service "
955
+ #~ "previously in use."
956
+ #~ msgstr ""
957
+ #~ "Ripristino impostazioni API Twitter API. Dovrai cambiare le impostazioni "
958
+ #~ "per il tuo nome utente e password nel caso in cui esse non fossero le "
959
+ #~ "stesse del servizio alternativo utilizzato in precedenza."
960
+
961
+ #~ msgid ""
962
+ #~ "&raquo; <small>Don't have a Twitter account? <a href='http://www.twitter."
963
+ #~ "com'>Get one for free here</a>"
964
+ #~ msgstr ""
965
+ #~ "&raquo; <small>Non hai un account di Twitter? <a href='http://www.twitter."
966
+ #~ "com'>Vai qui</a>"
967
+
968
+ #~ msgid "Your Twitter account details"
969
+ #~ msgstr "Dati account Twitter"
970
+
971
+ #~ msgid "These are your settings for Twitter as a second update service."
972
+ #~ msgstr ""
973
+ #~ "Queste sono le tue impostazioni per Twitter quale secondo servizio di "
974
+ #~ "aggiornamenti."
975
+
976
+ #~ msgid "Save Twitter Login Info"
977
+ #~ msgstr "Salva le impostazioni di login a Twitter"
978
+
979
+ #~ msgid "Reset to normal Twitter settings"
980
+ #~ msgstr "Ripristina alle impostazioni base di Twitter"
981
+
982
+ #~ msgid "Your Twitter Password"
983
+ #~ msgstr "Twitter Password"
984
+
985
  #~ msgid "Twitter Password Saved"
986
  #~ msgstr "La password di Twitter è stata salvata"
987
 
1135
  #~ "Visita la pagina <a href='http://www.joedolson.com/articles/wp-to-"
1136
  #~ "twitter/'>WP to Twitter</a>."
1137
 
 
 
 
1138
  #~ msgid ""
1139
  #~ " characters.<br />Twitter posts are a maximum of 140 characters; if your "
1140
  #~ "Cli.gs URL is appended to the end of your document, you have 119 "
1162
  #~ "Seleziona questa opzione qualora gradissi che i tuoi articoli siano "
1163
  #~ "segnalati al tuo account personale di Twitter senza nessun riferimento @."
1164
 
 
 
 
 
 
 
 
1165
  #~ msgid ""
1166
  #~ "Tweet my posts into the main site Twitter account with an @ reference to "
1167
  #~ "my username. (Password not required with this option.)"
wp-to-twitter-manager.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  // FUNCTION to see if checkboxes should be checked
3
  function jd_checkCheckbox( $theFieldname ) {
4
  if( get_option( $theFieldname ) == '1'){
@@ -12,13 +15,10 @@
12
  }
13
  $wp_twitter_error = FALSE;
14
  $wp_cligs_error = FALSE;
 
15
  $message = "";
16
- if ( get_option('jd-twitter-service-name') == '' ) {
17
- $twitter = "Twitter";
18
- } else {
19
- $twitter = get_option('jd-twitter-service-name');
20
- }
21
- //SETS DEFAULT OPTIONS
22
  if ( get_option( 'twitterInitialised') != '1' ) {
23
  update_option( 'newpost-published-update', '1' );
24
  update_option( 'newpost-published-text', 'New post: #title# #url#' );
@@ -53,7 +53,6 @@
53
  // Use custom external URLs to point elsewhere.
54
  update_option( 'jd_twit_custom_url', 'external_link' );
55
  // Error checking
56
- update_option( 'jd_functions_checked','0' );
57
  update_option( 'wp_twitter_failure','0' );
58
  update_option( 'wp_url_failure','0' );
59
  // Default publishing options.
@@ -61,19 +60,37 @@
61
  // Note that default options are set.
62
  update_option( 'twitterInitialised', '1' );
63
  //Twitter API
64
- update_option( 'jd_api_post_status', 'http://twitter.com/statuses/update.json' );
65
- update_option( 'jd-twitter-service-name', 'Twitter' );
66
- update_option( 'jd-twitter-char-limit', 140 );
67
- update_option( 'jd_use_both_services', '0' );
68
  update_option( 'jd_keyword_format', '1' );
69
-
70
- $message = __("Set your $twitter login information and URL shortener API information to use this plugin!", 'wp-to-twitter');
71
  }
72
  if ( get_option( 'twitterInitialised') == '1' && get_option( 'jd_post_excerpt' ) == "" ) {
73
  update_option( 'jd_post_excerpt', 30 );
74
  }
75
- if ( get_option( 'twitterInitialised') == '1' && get_option( 'twitterpw' ) == "" ) {
76
- $message .= __("Please <a href='#twitterpw'>add your Twitter password</a>. ", 'wp-to-twitter');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  }
78
 
79
  if ( isset($_POST['submit-type']) && $_POST['submit-type'] == 'clear-error' ) {
@@ -81,31 +98,6 @@
81
  update_option( 'wp_url_failure','0' );
82
  $message = __("WP to Twitter Errors Cleared", 'wp-to-twitter');
83
  }
84
-
85
- if ( isset($_POST['submit-type']) && $_POST['submit-type'] == 'service' ) {
86
- if ( isset($_POST['jd_reset_services'] ) ) {
87
- update_option( 'jd_api_post_status', 'http://twitter.com/statuses/update.json' );
88
- update_option( 'jd-twitter-service-name', 'Twitter' );
89
- update_option( 'jd-twitter-char-limit', 140 );
90
- update_option( 'jd_use_both_services', '0' );
91
- update_option( 'x-twitterlogin','');
92
- update_option( 'x-twitterpw','');
93
- $message = __("Twitter API settings reset. You may need to change your username and password settings, if they are not the same as the alternate service previously in use.",'wp-to-twitter');
94
- } else {
95
- update_option( 'jd_api_post_status', trim($_POST['jd_api_post_status']) );
96
- update_option( 'jd-twitter-service-name', trim($_POST['jd-twitter-service-name']) );
97
- update_option( 'jd-twitter-char-limit', trim($_POST['jd-twitter-char-limit']) );
98
- update_option( 'jd_use_both_services', $_POST['jd_use_both_services'] );
99
- if ( !isset( $_POST['jd_use_both_services'] ) ) {
100
- update_option( 'x-twitterlogin','');
101
- update_option( 'x-twitterpw','');
102
- }
103
- $message = __("Twitter-compatible API settings updated. ",'wp-to-twitter');
104
- if ( get_option( 'jd_use_both_services' ) == '1' ) {
105
- $message .= __("You have configured WP to Twitter to use both Twitter and your selected service. Remember to add your username and login information for both services.");
106
- }
107
- }
108
- }
109
 
110
  // Error messages on status update or url shortener failures
111
  if ( get_option( 'wp_twitter_failure' ) == '1' ) {
@@ -140,8 +132,14 @@
140
  update_option( 'jd_individual_twitter_users', $_POST['jd_individual_twitter_users'] );
141
  update_option( 'disable_url_failure' , $_POST['disable_url_failure'] );
142
  update_option( 'disable_twitter_failure' , $_POST['disable_twitter_failure'] );
143
-
144
-
 
 
 
 
 
 
145
  $message .= __( 'WP to Twitter Advanced Options Updated' , 'wp-to-twitter');
146
  }
147
  if ( isset($_POST['submit-type']) && $_POST['submit-type'] == 'options' ) {
@@ -178,7 +176,7 @@
178
  if ( isset($_POST['submit-type']) && $_POST['submit-type'] == 'setcategories' ) {
179
 
180
  if ( is_array($_POST['categories'])) {
181
- $categories = serialize($_POST['categories']);
182
  update_option('limit_categories','1');
183
  update_option('tweet_categories',$categories);
184
  $message = __("Category limits updated.");
@@ -189,29 +187,7 @@
189
  }
190
 
191
  }
192
-
193
- if ( isset($_POST['submit-type']) && $_POST['submit-type'] == 'login' ) {
194
- //UPDATE LOGIN
195
- if( ( $_POST['twitterlogin'] != '' ) && ( $_POST['twitterpw'] != '' ) ) {
196
- update_option( 'twitterlogin', trim($_POST['twitterlogin']) );
197
- update_option( 'twitterpw', trim($_POST['twitterpw']) );
198
- update_option( 'twitterlogin_encrypted', base64_encode( $_POST['twitterlogin'].':'.$_POST['twitterpw'] ) );
199
- $message = __("$twitter login and password updated. ", 'wp-to-twitter');
200
- } else {
201
- $message = __("You need to provide your $twitter login and password! ", 'wp-to-twitter');
202
- }
203
- }
204
- if ( isset($_POST['submit-type']) && $_POST['submit-type'] == 'x-login' ) {
205
- //UPDATE LOGIN
206
- if( ( $_POST['x-twitterlogin'] != '' ) && ( $_POST['x-twitterpw'] != '' ) ) {
207
- update_option( 'x-twitterlogin', trim($_POST['x-twitterlogin']) );
208
- update_option( 'x-twitterpw', trim($_POST['x-twitterpw']) );
209
- $message = __("Twitter login and password updated. ", 'wp-to-twitter');
210
- } else {
211
- $message = __("You need to provide your Twitter login and password! ", 'wp-to-twitter');
212
- }
213
- }
214
-
215
  if ( isset($_POST['submit-type']) && $_POST['submit-type'] == 'yourlsapi' ) {
216
  if ( $_POST['yourlsapi'] != '' && isset( $_POST['submit'] ) ) {
217
  update_option( 'yourlsapi', trim($_POST['yourlsapi']) );
@@ -287,152 +263,61 @@
287
  ///*
288
  // Check whether the server has supported for needed functions.
289
  if ( isset($_POST['submit-type']) && $_POST['submit-type'] == 'check-support' ) {
290
- update_option('jd-functions-checked', '0');
291
  }
292
  // If you're attempting to solve the "settings page doesn't display" problem, begin your comment here.
293
 
294
 
295
 
296
- if ( get_option('jd-functions-checked') == '0') {
297
- $message = "<ul>";
298
  // grab or set necessary variables
299
- $testurl = urlencode( get_bloginfo( 'url' ) );
300
  $shortener = get_option( 'jd_shortener' );
301
- $passthrough = false;
302
-
303
- switch ( $shortener ) {
304
- case 0:
305
- case 1:
306
- $cligsapi = get_option( 'cligsapi' );
307
- $shrink = jd_fetch_url( "http://cli.gs/api/v1/cligs/create?t=wphttp&appid=WP-to-Twitter&url=".$testurl."&key=".$cligsapi );
308
- if (!$shrink || !preg_match( '|^\S+://\S+\.\S+.+$|', $shrink ) ) {
309
- $shrink = false;
310
- }
311
- if ( $shrink && !preg_match( '|^\S+://\S+\.\S+.+$|', $shrink ) ) {
312
- $error = $shrink;
313
- }
314
- break;
315
- case 2:
316
- $bitlylogin = get_option( 'bitlylogin' );
317
- $bitlyapi = get_option( 'bitlyapi' );
318
- $decoded = jd_remote_json( "http://api.bit.ly/v3/shorten?longUrl=".$testurl."&login=".$bitlylogin."&apiKey=".$bitlyapi."&format=json" );
319
- if ($decoded) {
320
- if ($decoded['status_code'] != 200) {
321
- $shrink = false;
322
- $error .= $decoded['status_txt'];
323
- } else {
324
- $shrink = $decoded['data']['url'];
325
- }
326
- } else {
327
- $shrink = false;
328
- }
329
 
330
- break;
331
- case 3:
332
- $passthrough = true;
333
-
334
- break;
335
- case 4:
336
- $passthrough = true;
337
-
338
- break;
339
- case 5:
340
- // local YOURLS installation
341
- global $yourls_reserved_URL;
342
- define('YOURLS_INSTALLING', true); // Pretend we're installing YOURLS to bypass test for install or upgrade
343
- define('YOURLS_FLOOD_DELAY_SECONDS', 0); // Disable flood check
344
- if( file_exists( dirname( get_option( 'yourlspath' ) ).'/load-yourls.php' ) ) { // YOURLS 1.4
345
- global $ydb;
346
- require_once( dirname( get_option( 'yourlspath' ) ).'/load-yourls.php' );
347
- $yourls_result = yourls_add_new_link( $testurl, '' );
348
- } else { // YOURLS 1.3
349
- require_once( get_option( 'yourlspath' ) );
350
- $yourls_db = new wpdb( YOURLS_DB_USER, YOURLS_DB_PASS, YOURLS_DB_NAME, YOURLS_DB_HOST );
351
- $yourls_result = yourls_add_new_link( $testurl, '', $yourls_db );
352
- }
353
- if ($yourls_result) {
354
- $shrink = $yourls_result['shorturl'];
355
- } else {
356
- $shrink = false;
357
- }
358
- break;
359
- case 6:
360
- // remote YOURLS installation
361
- $yourlslogin = get_option( 'yourlslogin' );
362
- $yourlsapi = get_option( 'yourlsapi' );
363
- $api_url = sprintf( get_option('yourlsurl') . '?username=%s&password=%s&url=%s&format=json&action=shorturl',
364
- $yourlslogin, $yourlsapi, $testurl );
365
- $json = jd_remote_json( $api_url, false );
366
- if ($json) {
367
- $shrink = $json->shorturl;
368
- } else {
369
- $shrink = false;
370
- }
371
- break;
372
- }
373
  $api_url = $jdwp_api_post_status;
374
  $yourls_URL = "";
375
 
376
- if ($passthrough == true) {
377
- $wp_shortener_error = FALSE;
378
- $message .= __("<li><strong>Your selected URL shortener does not require testing.</strong></li>",'wp-to-twitter');
 
 
379
  } else {
380
- if ($shrink === FALSE) {
381
- $message .= __("<li class=\"error\"><strong>WP to Twitter was unable to contact your selected URL shortening service.</strong></li>",'wp-to-twitter');
382
- $message .= "<li><code> $error</code></li>";
383
- } else {
384
- $wp_shortener_error = FALSE;
385
- $message .= __("<li><strong>WP to Twitter successfully contacted your selected URL shortening service.</strong> The following link should point to your blog homepage:",'wp-to-twitter');
386
- $message .= " <a href='$shrink'>$shrink</a></li>";
387
- }
388
- }
389
 
390
- //check twitter credentials
 
391
  $rand = rand(1000000,9999999);
392
- $testpost = jd_doTwitterAPIPost( "This is a test of WP to Twitter. ($rand)" );
393
  if ($testpost) {
394
- if ($testpost['response']['code'] == 200) {
395
- $message .= __("<li><strong>WP to Twitter successfully submitted a status update to your primary update service.</strong></li>",'wp-to-twitter');
396
- } else {
397
- $wp_twitter_error = true;
398
- $message .= __("<li class=\"error\"><strong>WP to Twitter failed to submit an update to your primary update service.</strong></li>",'wp-to-twitter');
399
- $message .= "<li>".__("Twitter returned this error:")."<code>".$testpost['headers']['status']."</code></li>";
400
- }
401
  } else {
402
- $wp_twitter_error = true;
403
- $message .= __("<li class=\"error\"><strong>WP to Twitter failed to contact your primary update service.</strong></li>",'wp-to-twitter');
404
- $message .= "<li>".__("No error was returned.")."</li>";
405
- }
406
- if ( get_option( 'jd_use_both_services' ) == '1' ) {
407
- $testpost2 = jd_doTwitterAPIPost( "This is a test of WP to Twitter. ($rand)",false,"Twitter" );
408
- if ($testpost2) {
409
- if ($testpost2['response']['code'] == 200) {
410
- $message .= __("<li><strong>WP to Twitter successfully submitted a status update to your secondary update service.</strong></li>",'wp-to-twitter');
411
- } else {
412
- $wp_twitter_error = true;
413
- $message .= __("<li class=\"error\"><strong>WP to Twitter failed to submit an update to your secondary update service.</strong></li>",'wp-to-twitter');
414
- $message .= "<li>".__("The service returned this error:")."<code>".$testpost['headers']['status']."</code></li>";
415
  }
416
- }
417
- }
418
-
419
- // If everything's OK, there's no reason to do this again.
420
- if ($wp_twitter_error == FALSE && $wp_shortener_error == FALSE ) {
421
- $message .= __("<li><strong>Your server should run WP to Twitter successfully.</strong></li>", 'wp-to-twitter');
422
- update_option( 'jd-functions-checked','1' );
423
  } else {
424
- $message .= __("<li class=\"error\"><strong>Your server does not appear to support the required methods for WP to Twitter to function.</strong> You can try it anyway - these tests aren't perfect.</li>", 'wp-to-twitter');
425
- update_option( 'jd-functions-checked','1' );
426
  }
427
- $message .= "</ul>";
428
- }
429
-
430
- // CLOSE BUG FIX COMMENT HERE
431
- ?>
432
- <?php if ( $wp_twitter_error == TRUE || ( $wp_cligs_error == TRUE && $wp_bitly_error == TRUE ) ) {
433
- echo "<div class='error'><p>";
434
- _e("This plugin may not fully work in your server environment. The plugin failed to contact both a URL shortener API and the Twitter service API.", 'wp-to-twitter');
435
- echo "</p></div>";
436
  }
437
  ?>
438
 
@@ -447,6 +332,8 @@ print_settings();
447
 
448
  <h2><?php _e("WP to Twitter Options", 'wp-to-twitter'); ?></h2>
449
 
 
 
450
  <?php
451
  $wp_to_twitter_directory = get_bloginfo( 'wpurl' ) . '/' . PLUGINDIR . '/' . dirname( plugin_basename(__FILE__) );
452
  ?>
@@ -457,7 +344,7 @@ $wp_to_twitter_directory = get_bloginfo( 'wpurl' ) . '/' . PLUGINDIR . '/' . dir
457
  <a href="?page=wp-to-twitter/wp-to-twitter.php&amp;export=settings"><?php _e("Export Settings",'wp-to-twitter'); ?></a> &middot;
458
  <a href="http://www.joedolson.com/donate.php"><?php _e("Make a Donation",'wp-to-twitter'); ?></a>
459
  </p>
460
- <p>
461
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
462
  <div>
463
  <input type="hidden" name="cmd" value="_s-xclick" />
@@ -466,7 +353,7 @@ $wp_to_twitter_directory = get_bloginfo( 'wpurl' ) . '/' . PLUGINDIR . '/' . dir
466
  <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
467
  </div>
468
  </form>
469
- </p>
470
 
471
  </div>
472
 
@@ -478,7 +365,7 @@ $wp_to_twitter_directory = get_bloginfo( 'wpurl' ) . '/' . PLUGINDIR . '/' . dir
478
  <li><?php _e("<code>#category#</code>: the first selected category for the post", 'wp-to-twitter'); ?></li>
479
  <li><?php _e("<code>#date#</code>: the post date", 'wp-to-twitter'); ?></li>
480
  <li><?php _e("<code>#url#</code>: the post URL", 'wp-to-twitter'); ?></li>
481
- <li><?php _e("<code>#author#</code>: the post author'",'wp-to-twitter'); ?></li>
482
  </ul>
483
  <p><?php _e("You can also create custom shortcodes to access WordPress custom fields. Use doubled square brackets surrounding the name of your custom field to add the value of that custom field to your status update. Example: <code>[[custom_field]]</code></p>", 'wp-to-twitter'); ?>
484
 
@@ -486,6 +373,7 @@ $wp_to_twitter_directory = get_bloginfo( 'wpurl' ) . '/' . PLUGINDIR . '/' . dir
486
  <div class="error">
487
  <?php if ( get_option( 'wp_twitter_failure' ) == '1' ) {
488
  _e("<p>One or more of your last posts has failed to send it's status update to Twitter. Your Tweet has been saved in your post custom fields, and you can re-Tweet it at your leisure.</p>", 'wp-to-twitter');
 
489
  }
490
  if ( get_option( 'wp_url_failure' ) == '1' ) {
491
  _e("<p>The query to the URL shortener API failed, and your URL was not shrunk. The full post URL was attached to your Tweet. Check with your URL shortening provider to see if there are any known issues. [<a href=\"http://blog.cli.gs\">Cli.gs Blog</a>] [<a href=\"http://blog.bit.ly\">Bit.ly Blog</a>]</p>", 'wp-to-twitter');
@@ -500,8 +388,11 @@ $wp_to_twitter_directory = get_bloginfo( 'wpurl' ) . '/' . PLUGINDIR . '/' . dir
500
  <?php
501
  }
502
  ?>
503
- <div class="jd-settings">
504
- <div id="poststuff" class="ui-sortable meta-box-sortables">
 
 
 
505
  <?php if ( isset( $_POST['submit-type']) && $_POST['submit-type'] == 'options' ) { ?>
506
  <div class="postbox">
507
  <?php } else { ?>
@@ -521,9 +412,14 @@ $wp_to_twitter_directory = get_bloginfo( 'wpurl' ) . '/' . PLUGINDIR . '/' . dir
521
  </p>
522
 
523
  <p>
 
524
  <input type="checkbox" name="oldpost-edited-update" id="oldpost-edited-update" value="1" <?php jd_checkCheckbox('oldpost-edited-update')?> />
525
  <label for="oldpost-edited-update"><strong><?php _e("Update when a post is edited", 'wp-to-twitter'); ?></strong></label><br /><label for="oldpost-edited-text"><?php _e("Text for editing updates:", 'wp-to-twitter'); ?></label> <input type="text" name="oldpost-edited-text" id="oldpost-edited-text" size="60" maxlength="120" value="<?php echo( attribute_escape( stripslashes( get_option('oldpost-edited-text' ) ) ) ); ?>" />
526
- </p>
 
 
 
 
527
  <p>
528
  <input type="checkbox" name="jd_twit_pages" id="jd_twit_pages" value="1" <?php jd_checkCheckbox('jd_twit_pages')?> />
529
  <label for="jd_twit_pages"><strong><?php _e("Update Twitter when new Wordpress Pages are published", 'wp-to-twitter'); ?></strong></label><br /><label for="newpage-published-text"><?php _e("Text for new page updates:", 'wp-to-twitter'); ?></label> <input type="text" name="newpage-published-text" id="newpage-published-text" size="60" maxlength="120" value="<?php echo( attribute_escape( stripslashes( get_option('newpage-published-text' ) ) ) ); ?>" />
@@ -561,55 +457,16 @@ $wp_to_twitter_directory = get_bloginfo( 'wpurl' ) . '/' . PLUGINDIR . '/' . dir
561
  </div>
562
  </div>
563
  </div>
564
- <div id="poststuff" class="ui-sortable meta-box-sortables">
565
- <?php if ( ( isset( $_POST['submit-type'] ) && ($_POST['submit-type']!='setcategories' && $_POST['submit-type']!='advanced' && $_POST['submit-type']!='options' && $_POST['submit-type']!="check-support" ) ) || get_option( 'twitterlogin' )=='' ) { ?>
566
  <div class="postbox">
567
  <?php } else { ?>
568
  <div class="postbox closed">
569
  <?php } ?> <div class="handlediv" title="Click to toggle"><br/></div>
570
- <h3>Account Settings</h3>
571
 
572
  <div class="inside">
573
-
574
- <div class="panel">
575
- <h4 class="twitter"><span><?php _e("Your $twitter account details", 'wp-to-twitter'); ?></span></h4>
576
-
577
- <form method="post" action="" >
578
- <div>
579
- <p>
580
- <label for="twitterlogin"><?php _e("Your $twitter username:", 'wp-to-twitter'); ?></label>
581
- <input type="text" name="twitterlogin" id="twitterlogin" value="<?php echo ( attribute_escape( get_option( 'twitterlogin' ) ) ) ?>" />
582
- </p>
583
- <p>
584
- <label for="twitterpw"><?php _e("Your $twitter password:", 'wp-to-twitter'); ?><?php if ( get_option( 'twitterpw' ) != "" ) { _e('(<em>Saved</em>)' , 'wp-to-twitter'); } ?></label>
585
- <input type="password" name="twitterpw" id="twitterpw" value="" />
586
- </p>
587
- <input type="hidden" name="submit-type" value="login" />
588
- <p><input type="submit" name="submit" value="<?php _e("Save $twitter Login Info", 'wp-to-twitter'); ?>" class="button-primary" /> <?php _e("&raquo; <small>Don't have a Twitter account? <a href='http://www.twitter.com'>Get one for free here</a>", 'wp-to-twitter'); ?></small></p>
589
- </div>
590
- </form>
591
- </div>
592
- <?php if ( get_option( 'jd_use_both_services' )=='1' ) { ?>
593
- <div class="dualpost panel">
594
- <h4 class="twitter"><span><?php _e("Your Twitter account details", 'wp-to-twitter'); ?></span></h4>
595
- <p><?php _e("These are your settings for Twitter as a second update service."); ?></p>
596
- <form method="post" action="" >
597
- <div>
598
- <p>
599
- <label for="x-twitterlogin"><?php _e("Your Twitter username:", 'wp-to-twitter'); ?></label>
600
- <input type="text" name="x-twitterlogin" id="x-twitterlogin" value="<?php echo ( attribute_escape( get_option( 'x-twitterlogin' ) ) ) ?>" />
601
- </p>
602
- <p>
603
- <label for="x-twitterpw"><?php _e("Your Twitter password:", 'wp-to-twitter'); ?><?php if ( get_option( 'x-twitterpw' ) != "" ) { _e('(<em>Saved</em>)' , 'wp-to-twitter'); } ?></label>
604
- <input type="password" name="x-twitterpw" id="x-twitterpw" value="" />
605
- </p>
606
- <input type="hidden" name="submit-type" value="x-login" />
607
- <p><input type="submit" name="submit" value="<?php _e("Save Twitter Login Info", 'wp-to-twitter'); ?>" class="button-primary" /> <?php _e("&raquo; <small>Don't have a Twitter account? <a href='http://www.twitter.com'>Get one for free here</a>", 'wp-to-twitter'); ?></small></p>
608
- </div>
609
- </form>
610
- </div>
611
- <?php } ?>
612
- <div class="panel">
613
  <h4 class="cligs"><span><?php _e("Your Cli.gs account details", 'wp-to-twitter'); ?></span></h4>
614
 
615
  <form method="post" action="">
@@ -668,7 +525,7 @@ $wp_to_twitter_directory = get_bloginfo( 'wpurl' ) . '/' . PLUGINDIR . '/' . dir
668
  <input type="text" name="yourlsapi" id="yourlsapi" size="40" value="" />
669
  </p>
670
  <p>
671
- <input type="checkbox" name="jd_keyword_format" id="jd_keyword_format" value="1" <?php jd_checkCheckbox( 'jd_keyword_format' ); ?> /> <label for="jd_keyword_format"><?php _e("Use Post ID for YOURLS url slug."); ?></label>
672
  </p>
673
  <div>
674
  <input type="hidden" name="submit-type" value="yourlsapi" />
@@ -677,39 +534,12 @@ $wp_to_twitter_directory = get_bloginfo( 'wpurl' ) . '/' . PLUGINDIR . '/' . dir
677
  </div>
678
  </form>
679
  </div>
680
- <div class="change-service panel">
681
- <h4 class="twitter-api"><?php _e("Change Twitter-compatible Service",'wp-to-twitter'); ?></h4>
682
- <form method="post" action="" >
683
- <div>
684
- <p>
685
- <label for="jd_api_post_status"><?php _e("URI for Twitter-compatible Post Status API","wp-to-twitter"); ?></label>
686
- <input type="text" name="jd_api_post_status" id="jd_api_post_status" size="60" value="<?php echo get_option('jd_api_post_status'); ?>" />
687
- </p>
688
- <p>
689
- <label for="jd-twitter-service-name"><?php _e("Service Name","wp-to-twitter"); ?></label>
690
- <input type="text" name="jd-twitter-service-name" id="jd-twitter-service-name" value="<?php echo get_option( 'jd-twitter-service-name' ); ?>" />
691
- </p>
692
- <p>
693
- <label for="jd-twitter-char-limit"><?php _e("Status Update Character Limit","wp-to-twitter"); ?></label>
694
- <input type="text" name="jd-twitter-char-limit" id="jd-twitter-char-limit" value="<?php echo get_option( 'jd-twitter-char-limit' ); ?>" />
695
- </p>
696
- <p>
697
- <input type="checkbox" name="jd_use_both_services" id="jd_use_both_services" value="1"<?php jd_checkCheckbox('jd_use_both_services'); ?> /> <label for="jd_use_both_services"><?php _e("Post status updates to both services.","wp-to-twitter"); ?></label>
698
- </p>
699
- <p>
700
- <input type="checkbox" name="jd_reset_services" id="jd_reset_services" value="1" /> <label for="jd_reset_services"><?php _e("Reset to normal Twitter settings","wp-to-twitter"); ?></label>
701
- </p>
702
- <input type="hidden" name="submit-type" value="service" />
703
- <p><input type="submit" name="submit" value="<?php _e("Update Twitter Compatible Service", 'wp-to-twitter'); ?>" class="button-primary" /> <?php _e("&raquo; <small>You can use any service using the Twitter-compatible REST API returning data in JSON format with this plugin. Twitter-compatible services include <a href='http://identi.ca'>Identi.ca</a>, <a href='http://shoutem.com'>Shoutem.com</a> and <a href='http://chirup.com'>Chirup.com</a>. <strong>No support will be provided for services other than Twitter.</strong>", 'wp-to-twitter'); ?></small></p>
704
- </div>
705
- </form>
706
- </div>
707
 
708
  </div>
709
  </div>
710
  </div>
711
 
712
- <div id="poststuff" class="ui-sortable meta-box-sortables">
713
  <?php if ( isset( $_POST['submit-type']) && $_POST['submit-type']=='advanced') { ?>
714
  <div class="postbox">
715
  <?php } else { ?>
@@ -762,7 +592,9 @@ $wp_to_twitter_directory = get_bloginfo( 'wpurl' ) . '/' . PLUGINDIR . '/' . dir
762
  </p>
763
  <p>
764
  <input type="checkbox" name="jd_twit_remote" id="jd_twit_remote" value="1" <?php jd_checkCheckbox('jd_twit_remote')?> />
765
- <label for="jd_twit_remote"><?php _e("Send Twitter Updates on remote publication (Post by Email or XMLRPC Client)", 'wp-to-twitter'); ?></label>
 
 
766
  </p>
767
  <p>
768
  <input type="checkbox" name="jd_twit_quickpress" id="jd_twit_quickpress" value="1" <?php jd_checkCheckbox('jd_twit_quickpress')?> />
@@ -794,7 +626,7 @@ $wp_to_twitter_directory = get_bloginfo( 'wpurl' ) . '/' . PLUGINDIR . '/' . dir
794
  <legend><?php _e('Individual Authors','wp-to-twitter'); ?></legend>
795
  <p>
796
  <input type="checkbox" name="jd_individual_twitter_users" id="jd_individual_twitter_users" value="1" <?php jd_checkCheckbox('jd_individual_twitter_users')?> />
797
- <label for="jd_individual_twitter_users"><?php _e("Authors have individual Twitter accounts", 'wp-to-twitter'); ?></label><br /><small><?php _e('Authors can set their own Twitter username and password in their user profile.', 'wp-to-twitter'); ?></small>
798
  </p>
799
  </fieldset>
800
  <fieldset>
@@ -806,6 +638,14 @@ $wp_to_twitter_directory = get_bloginfo( 'wpurl' ) . '/' . PLUGINDIR . '/' . dir
806
  <p>
807
  <input type="checkbox" name="disable_twitter_failure" id="disable_twitter_failure" value="1" <?php jd_checkCheckbox('disable_twitter_failure')?> />
808
  <label for="disable_twitter_failure"><?php _e("Disable global Twitter API error messages.", 'wp-to-twitter'); ?></label>
 
 
 
 
 
 
 
 
809
  </p>
810
  </fieldset>
811
  <div>
@@ -817,7 +657,7 @@ $wp_to_twitter_directory = get_bloginfo( 'wpurl' ) . '/' . PLUGINDIR . '/' . dir
817
  </div>
818
  </div>
819
  </div>
820
- <div id="poststuff" class="ui-sortable meta-box-sortables">
821
  <?php if ( isset( $_POST['submit-type']) && $_POST['submit-type']=='setcategories') { ?>
822
  <div class="postbox">
823
  <?php } else { ?>
@@ -854,14 +694,9 @@ if ( get_option('limit_categories') == '0' ) {
854
  </div>
855
  <?php global $wp_version; ?>
856
  <script type="text/javascript">
857
- <!--
858
- <?php if ( version_compare( $wp_version, '2.7', '<' ) ) { ?>
859
- jQuery('.postbox h3').prepend('<a class="togbox" title="expand this box">+</a> ');
860
- <?php } ?>
861
- jQuery('.postbox h3').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); } );
862
- jQuery('.postbox .handlediv').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); } );
863
- jQuery('.postbox.close-me').each(function() {
864
- jQuery(this).addClass("closed");
865
- });
866
- //-->
867
  </script>
1
  <?php
2
+ if ( isset($_POST['oauth_settings'] ) ) {
3
+ $oauth_message = jd_update_oauth_settings();
4
+ }
5
  // FUNCTION to see if checkboxes should be checked
6
  function jd_checkCheckbox( $theFieldname ) {
7
  if( get_option( $theFieldname ) == '1'){
15
  }
16
  $wp_twitter_error = FALSE;
17
  $wp_cligs_error = FALSE;
18
+ $wp_bitly_error = FALSE;
19
  $message = "";
20
+
21
+ // SET DEFAULT OPTIONS
 
 
 
 
22
  if ( get_option( 'twitterInitialised') != '1' ) {
23
  update_option( 'newpost-published-update', '1' );
24
  update_option( 'newpost-published-text', 'New post: #title# #url#' );
53
  // Use custom external URLs to point elsewhere.
54
  update_option( 'jd_twit_custom_url', 'external_link' );
55
  // Error checking
 
56
  update_option( 'wp_twitter_failure','0' );
57
  update_option( 'wp_url_failure','0' );
58
  // Default publishing options.
60
  // Note that default options are set.
61
  update_option( 'twitterInitialised', '1' );
62
  //Twitter API
 
 
 
 
63
  update_option( 'jd_keyword_format', '1' );
 
 
64
  }
65
  if ( get_option( 'twitterInitialised') == '1' && get_option( 'jd_post_excerpt' ) == "" ) {
66
  update_option( 'jd_post_excerpt', 30 );
67
  }
68
+
69
+ // notifications from oauth connection
70
+ if ( isset($_POST['oauth_settings'] ) ) {
71
+ if ( $oauth_message == "success" ) {
72
+ print('
73
+ <div id="message" class="updated fade">
74
+ <p>'.__('WP to Twitter is now connected with Twitter.', 'wp-to-twitter').'</p>
75
+ </div>
76
+
77
+ ');
78
+ }
79
+ else if ( $oauth_message == "fail" ) {
80
+ print('
81
+ <div id="message" class="updated fade">
82
+ <p>'.__('OAuth Authentication Failed. Check your credentials and verify that <a href="http://www.twitter.com/">Twitter</a> is running.', 'wp-to-twitter').'</p>
83
+ </div>
84
+
85
+ ');
86
+ } else if ( $oauth_message == "cleared" ) {
87
+ print('
88
+ <div id="message" class="updated fade">
89
+ <p>'.__('OAuth Authentication Data Cleared.', 'wp-to-twitter').'</p>
90
+ </div>
91
+
92
+ ');
93
+ }
94
  }
95
 
96
  if ( isset($_POST['submit-type']) && $_POST['submit-type'] == 'clear-error' ) {
98
  update_option( 'wp_url_failure','0' );
99
  $message = __("WP to Twitter Errors Cleared", 'wp-to-twitter');
100
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
 
102
  // Error messages on status update or url shortener failures
103
  if ( get_option( 'wp_twitter_failure' ) == '1' ) {
132
  update_option( 'jd_individual_twitter_users', $_POST['jd_individual_twitter_users'] );
133
  update_option( 'disable_url_failure' , $_POST['disable_url_failure'] );
134
  update_option( 'disable_twitter_failure' , $_POST['disable_twitter_failure'] );
135
+ update_option( 'jd_twit_postie' , (int) $_POST['jd_twit_postie'] );
136
+ if ( $_POST['jd_twit_postie'] == 1 ) {
137
+ update_option( 'oldpost-edited-update','1');
138
+ }
139
+ update_option( 'disable_oauth_notice' , $_POST['disable_oauth_notice'] );
140
+ update_option( 'wp_debug_oauth' , $_POST['wp_debug_oauth'] );
141
+
142
+
143
  $message .= __( 'WP to Twitter Advanced Options Updated' , 'wp-to-twitter');
144
  }
145
  if ( isset($_POST['submit-type']) && $_POST['submit-type'] == 'options' ) {
176
  if ( isset($_POST['submit-type']) && $_POST['submit-type'] == 'setcategories' ) {
177
 
178
  if ( is_array($_POST['categories'])) {
179
+ $categories = $_POST['categories'];
180
  update_option('limit_categories','1');
181
  update_option('tweet_categories',$categories);
182
  $message = __("Category limits updated.");
187
  }
188
 
189
  }
190
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  if ( isset($_POST['submit-type']) && $_POST['submit-type'] == 'yourlsapi' ) {
192
  if ( $_POST['yourlsapi'] != '' && isset( $_POST['submit'] ) ) {
193
  update_option( 'yourlsapi', trim($_POST['yourlsapi']) );
263
  ///*
264
  // Check whether the server has supported for needed functions.
265
  if ( isset($_POST['submit-type']) && $_POST['submit-type'] == 'check-support' ) {
266
+ $message = jd_check_functions();
267
  }
268
  // If you're attempting to solve the "settings page doesn't display" problem, begin your comment here.
269
 
270
 
271
 
272
+ function jd_check_functions() {
273
+ $message = "<div class='update'><ul>";
274
  // grab or set necessary variables
275
+ $testurl = get_bloginfo( 'url' );
276
  $shortener = get_option( 'jd_shortener' );
277
+ $title = urlencode( 'Your blog home' );
278
+ $shrink = jd_shorten_link( $testurl, $title, false, 'true' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
  $api_url = $jdwp_api_post_status;
281
  $yourls_URL = "";
282
 
283
+ if ($shrink == FALSE) {
284
+ if ($shortener == 1) {
285
+ $error = htmlentities( get_option('wp_cligs_error') );
286
+ } else if ( $shortener == 2 ) {
287
+ $error = htmlentities( get_option('wp_bitly_error') );
288
  } else {
289
+ $error = _('No error information is available for your shortener.','wp-to-twitter');
290
+ }
291
+ $message .= __("<li class=\"error\"><strong>WP to Twitter was unable to contact your selected URL shortening service.</strong></li>",'wp-to-twitter');
292
+ $message .= "<li><code>$error</code></li>";
293
+ } else {
294
+ $message .= __("<li><strong>WP to Twitter successfully contacted your selected URL shortening service.</strong> The following link should point to your blog homepage:",'wp-to-twitter');
295
+ $message .= " <a href='$shrink'>$shrink</a></li>";
296
+ }
 
297
 
298
+ //check twitter credentials
299
+ if ( wtt_oauth_test() ) {
300
  $rand = rand(1000000,9999999);
301
+ $testpost = jd_doTwitterAPIPost( "This is a test of WP to Twitter. $shrink ($rand)" );
302
  if ($testpost) {
303
+ $message .= __("<li><strong>WP to Twitter successfully submitted a status update to Twitter.</strong></li>",'wp-to-twitter');
 
 
 
 
 
 
304
  } else {
305
+ $message .= __("<li class=\"error\"><strong>WP to Twitter failed to submit an update to Twitter.</strong></li>",'wp-to-twitter');
 
 
 
 
 
 
 
 
 
 
 
 
306
  }
307
+ } else {
308
+ $message .= "<strong>"._e('You have not connected WordPress to Twitter.','wp-to-twitter')."</strong> ";
309
+ }
310
+ // If everything's OK, there's no reason to do this again.
311
+ if ($testpost == FALSE && $shrink == FALSE ) {
312
+ $message .= __("<li class=\"error\"><strong>Your server does not appear to support the required methods for WP to Twitter to function.</strong> You can try it anyway - these tests aren't perfect.</li>", 'wp-to-twitter');
 
313
  } else {
 
 
314
  }
315
+ if ( $testpost && $shrink ) {
316
+ $message .= __("<li><strong>Your server should run WP to Twitter successfully.</strong></li>", 'wp-to-twitter');
317
+ }
318
+ $message .= "</ul>
319
+ </div>";
320
+ return $message;
 
 
 
321
  }
322
  ?>
323
 
332
 
333
  <h2><?php _e("WP to Twitter Options", 'wp-to-twitter'); ?></h2>
334
 
335
+ <?php //echo get_option('jd_last_tweet'); ?>
336
+
337
  <?php
338
  $wp_to_twitter_directory = get_bloginfo( 'wpurl' ) . '/' . PLUGINDIR . '/' . dirname( plugin_basename(__FILE__) );
339
  ?>
344
  <a href="?page=wp-to-twitter/wp-to-twitter.php&amp;export=settings"><?php _e("Export Settings",'wp-to-twitter'); ?></a> &middot;
345
  <a href="http://www.joedolson.com/donate.php"><?php _e("Make a Donation",'wp-to-twitter'); ?></a>
346
  </p>
347
+ <div>
348
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
349
  <div>
350
  <input type="hidden" name="cmd" value="_s-xclick" />
353
  <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
354
  </div>
355
  </form>
356
+ </div>
357
 
358
  </div>
359
 
365
  <li><?php _e("<code>#category#</code>: the first selected category for the post", 'wp-to-twitter'); ?></li>
366
  <li><?php _e("<code>#date#</code>: the post date", 'wp-to-twitter'); ?></li>
367
  <li><?php _e("<code>#url#</code>: the post URL", 'wp-to-twitter'); ?></li>
368
+ <li><?php _e("<code>#author#</code>: the post author",'wp-to-twitter'); ?></li>
369
  </ul>
370
  <p><?php _e("You can also create custom shortcodes to access WordPress custom fields. Use doubled square brackets surrounding the name of your custom field to add the value of that custom field to your status update. Example: <code>[[custom_field]]</code></p>", 'wp-to-twitter'); ?>
371
 
373
  <div class="error">
374
  <?php if ( get_option( 'wp_twitter_failure' ) == '1' ) {
375
  _e("<p>One or more of your last posts has failed to send it's status update to Twitter. Your Tweet has been saved in your post custom fields, and you can re-Tweet it at your leisure.</p>", 'wp-to-twitter');
376
+ echo "<p><strong>".get_option( 'jd_status_message' )."</strong></p>";
377
  }
378
  if ( get_option( 'wp_url_failure' ) == '1' ) {
379
  _e("<p>The query to the URL shortener API failed, and your URL was not shrunk. The full post URL was attached to your Tweet. Check with your URL shortening provider to see if there are any known issues. [<a href=\"http://blog.cli.gs\">Cli.gs Blog</a>] [<a href=\"http://blog.bit.ly\">Bit.ly Blog</a>]</p>", 'wp-to-twitter');
388
  <?php
389
  }
390
  ?>
391
+ <div class="jd-settings" id="poststuff">
392
+
393
+ <?php wtt_connect_oauth(); ?>
394
+
395
+ <div class="ui-sortable meta-box-sortables">
396
  <?php if ( isset( $_POST['submit-type']) && $_POST['submit-type'] == 'options' ) { ?>
397
  <div class="postbox">
398
  <?php } else { ?>
412
  </p>
413
 
414
  <p>
415
+ <?php if ( get_option( 'jd_twit_postie' ) != 1 ) { ?>
416
  <input type="checkbox" name="oldpost-edited-update" id="oldpost-edited-update" value="1" <?php jd_checkCheckbox('oldpost-edited-update')?> />
417
  <label for="oldpost-edited-update"><strong><?php _e("Update when a post is edited", 'wp-to-twitter'); ?></strong></label><br /><label for="oldpost-edited-text"><?php _e("Text for editing updates:", 'wp-to-twitter'); ?></label> <input type="text" name="oldpost-edited-text" id="oldpost-edited-text" size="60" maxlength="120" value="<?php echo( attribute_escape( stripslashes( get_option('oldpost-edited-text' ) ) ) ); ?>" />
418
+ <?php } else { ?>
419
+ <input type="checkbox" name="oldpost-edited-update" id="oldpost-edited-update" value="1" disabled="disabled" checked="checked" />
420
+ <label for="oldpost-edited-update"><strong><?php _e("Update when a post is edited", 'wp-to-twitter'); ?></strong></label><br /><label for="oldpost-edited-text"><?php _e("Text for editing updates:", 'wp-to-twitter'); ?></label> <input type="text" name="oldpost-edited-text" id="oldpost-edited-text" size="60" maxlength="120" value="<?php echo( attribute_escape( stripslashes( get_option('oldpost-edited-text' ) ) ) ); ?>" readonly="readonly" />
421
+ <br /><small><?php _e('You can not disable updates on edits when using Postie or similar plugins.'); ?></small>
422
+ <?php } ?> </p>
423
  <p>
424
  <input type="checkbox" name="jd_twit_pages" id="jd_twit_pages" value="1" <?php jd_checkCheckbox('jd_twit_pages')?> />
425
  <label for="jd_twit_pages"><strong><?php _e("Update Twitter when new Wordpress Pages are published", 'wp-to-twitter'); ?></strong></label><br /><label for="newpage-published-text"><?php _e("Text for new page updates:", 'wp-to-twitter'); ?></label> <input type="text" name="newpage-published-text" id="newpage-published-text" size="60" maxlength="120" value="<?php echo( attribute_escape( stripslashes( get_option('newpage-published-text' ) ) ) ); ?>" />
457
  </div>
458
  </div>
459
  </div>
460
+ <div class="ui-sortable meta-box-sortables">
461
+ <?php if ( ( isset( $_POST['submit-type'] ) && ($_POST['submit-type']!='setcategories' && $_POST['submit-type']!='advanced' && $_POST['submit-type']!='options' && $_POST['submit-type']!="check-support" ) ) ) { ?>
462
  <div class="postbox">
463
  <?php } else { ?>
464
  <div class="postbox closed">
465
  <?php } ?> <div class="handlediv" title="Click to toggle"><br/></div>
466
+ <h3><?php _e('<abbr title="Uniform Resource Locator">URL</abbr> Shortener Account Settings','wp-to-twitter'); ?></h3>
467
 
468
  <div class="inside">
469
+ <div class="panel">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
470
  <h4 class="cligs"><span><?php _e("Your Cli.gs account details", 'wp-to-twitter'); ?></span></h4>
471
 
472
  <form method="post" action="">
525
  <input type="text" name="yourlsapi" id="yourlsapi" size="40" value="" />
526
  </p>
527
  <p>
528
+ <input type="checkbox" name="jd_keyword_format" id="jd_keyword_format" value="1" <?php jd_checkCheckbox( 'jd_keyword_format' ); ?> /> <label for="jd_keyword_format"><?php _e("Use Post ID for YOURLS url slug.",'wp-to-twitter'); ?></label>
529
  </p>
530
  <div>
531
  <input type="hidden" name="submit-type" value="yourlsapi" />
534
  </div>
535
  </form>
536
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
537
 
538
  </div>
539
  </div>
540
  </div>
541
 
542
+ <div class="ui-sortable meta-box-sortables">
543
  <?php if ( isset( $_POST['submit-type']) && $_POST['submit-type']=='advanced') { ?>
544
  <div class="postbox">
545
  <?php } else { ?>
592
  </p>
593
  <p>
594
  <input type="checkbox" name="jd_twit_remote" id="jd_twit_remote" value="1" <?php jd_checkCheckbox('jd_twit_remote')?> />
595
+ <label for="jd_twit_remote"><?php _e("Send Twitter Updates on remote publication (Post by Email or XMLRPC Client)", 'wp-to-twitter'); ?></label><br />
596
+ <input type="checkbox" name="jd_twit_postie" id="jd_twit_postie" value="1" <?php jd_checkCheckbox('jd_twit_postie')?> />
597
+ <label for="jd_twit_postie"><?php _e("I'm using a plugin to post by email, such as Postie. Only check this if your updates do not work.", 'wp-to-twitter'); ?></label>
598
  </p>
599
  <p>
600
  <input type="checkbox" name="jd_twit_quickpress" id="jd_twit_quickpress" value="1" <?php jd_checkCheckbox('jd_twit_quickpress')?> />
626
  <legend><?php _e('Individual Authors','wp-to-twitter'); ?></legend>
627
  <p>
628
  <input type="checkbox" name="jd_individual_twitter_users" id="jd_individual_twitter_users" value="1" <?php jd_checkCheckbox('jd_individual_twitter_users')?> />
629
+ <label for="jd_individual_twitter_users"><?php _e("Authors have individual Twitter accounts", 'wp-to-twitter'); ?></label><br /><small><?php _e('Authors can set their username in their user profile. As of version 2.2.0, this feature no longer allows authors to post to their own Twitter accounts. It can only add an @reference to the author.', 'wp-to-twitter'); ?></small>
630
  </p>
631
  </fieldset>
632
  <fieldset>
638
  <p>
639
  <input type="checkbox" name="disable_twitter_failure" id="disable_twitter_failure" value="1" <?php jd_checkCheckbox('disable_twitter_failure')?> />
640
  <label for="disable_twitter_failure"><?php _e("Disable global Twitter API error messages.", 'wp-to-twitter'); ?></label>
641
+ </p>
642
+ <p>
643
+ <input type="checkbox" name="disable_oauth_notice" id="disable_oauth_notice" value="1" <?php jd_checkCheckbox('disable_oauth_notice')?> />
644
+ <label for="disable_oauth_notice"><?php _e("Disable notification to implement OAuth", 'wp-to-twitter'); ?></label>
645
+ </p>
646
+ <p>
647
+ <input type="checkbox" name="wp_debug_oauth" id="wp_debug_oauth" value="1" <?php jd_checkCheckbox('wp_debug_oauth')?> />
648
+ <label for="wp_debug_oauth"><?php _e("Get Debugging Data for OAuth Connection", 'wp-to-twitter'); ?></label>
649
  </p>
650
  </fieldset>
651
  <div>
657
  </div>
658
  </div>
659
  </div>
660
+ <div class="ui-sortable meta-box-sortables">
661
  <?php if ( isset( $_POST['submit-type']) && $_POST['submit-type']=='setcategories') { ?>
662
  <div class="postbox">
663
  <?php } else { ?>
694
  </div>
695
  <?php global $wp_version; ?>
696
  <script type="text/javascript">
697
+ //<![CDATA[
698
+ jQuery('.postbox h3').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); });
699
+ jQuery('.postbox .handlediv').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); });
700
+ jQuery('.postbox.close-me').each(function() { jQuery(this).addClass("closed"); });
701
+ //]]>
 
 
 
 
 
702
  </script>
wp-to-twitter-nl_NL.mo ADDED
Binary file
wp-to-twitter-nl_NL.po ADDED
@@ -0,0 +1,1094 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP to Twitter 2.2.0 (beta 7)\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-to-twitter\n"
5
+ "POT-Creation-Date: 2010-08-26 22:15+0000\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Rene <info@wpwebshop.com>\n"
8
+ "Language-Team: translation by WPwebshop.com <info@wpwebshop.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: Dutch\n"
13
+ "X-Poedit-Country: NETHERLANDS\n"
14
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
15
+
16
+ #: functions.php:222
17
+ msgid "[<a href='options-general.php?page=wp-to-twitter/wp-to-twitter.php'>Hide</a>] If you're experiencing trouble, please copy these settings into any request for support."
18
+ msgstr "[<a href='options-general.php?page=wp-to-twitter/wp-to-twitter.php'>Verberg</a>] Wanneer je problemen hebt kopieer deze instellingen in je bericht om verzoek tot hulp."
19
+
20
+ #: wp-to-twitter-manager.php:74
21
+ msgid "WP to Twitter is now connected with Twitter."
22
+ msgstr "WP to Twitter is nu verbonden met Twitter."
23
+
24
+ #: wp-to-twitter-manager.php:82
25
+ msgid "OAuth Authentication Failed. Check your credentials and verify that <a href=\"http://www.twitter.com/\">Twitter</a> is running."
26
+ msgstr "OAuth authenticatie mislukt. Controleer uw login gegevens en controleer of <a href=\"http://www.twitter.com/\">Twitter</a> actief is."
27
+
28
+ #: wp-to-twitter-manager.php:89
29
+ msgid "OAuth Authentication Data Cleared."
30
+ msgstr "OAuth authenticatie data gewist."
31
+
32
+ #: wp-to-twitter-manager.php:99
33
+ msgid "WP to Twitter Errors Cleared"
34
+ msgstr "WP to Twitter Foutmeldingen Verwijderd"
35
+
36
+ #: wp-to-twitter-manager.php:106
37
+ msgid "Sorry! I couldn't get in touch with the Twitter servers to post your new blog post. Your tweet has been stored in a custom field attached to the post, so you can Tweet it manually if you wish! "
38
+ msgstr "Sorry! Ik kon de Twitter servers niet bereiken om je nieuwe bericht te plaatsen. Je tweet is opgeslagen in een aangepast veld in je bericht, zodat je deze evt. manueel kan tweeten! "
39
+
40
+ #: wp-to-twitter-manager.php:108
41
+ msgid "Sorry! I couldn't get in touch with the Twitter servers to post your <strong>new link</strong>! You'll have to post it manually, I'm afraid. "
42
+ msgstr "Sorry! Ik kon de Twitter servers niet bereiken om je <strong>nieuwe link</strong> te plaatsen! Ik ben bang dat je het zelf manueel moet plaatsen. "
43
+
44
+ #: wp-to-twitter-manager.php:143
45
+ msgid "WP to Twitter Advanced Options Updated"
46
+ msgstr "WP to Twitter Geavanceerde Opties Bijgewerkt"
47
+
48
+ #: wp-to-twitter-manager.php:160
49
+ msgid "You must add your Bit.ly login and API key in order to shorten URLs with Bit.ly."
50
+ msgstr "Je moet je Bit.ly login en API sleutel ingeven om URL's te verkorten met Bit.ly."
51
+
52
+ #: wp-to-twitter-manager.php:164
53
+ msgid "You must add your YOURLS remote URL, login, and password in order to shorten URLs with a remote installation of YOURLS."
54
+ msgstr "Je moet je YOURLS remote URL, login en wachtwoord toevoegen om URL's te verkorten met een installatie op afstand van YOURLS."
55
+
56
+ #: wp-to-twitter-manager.php:168
57
+ msgid "You must add your YOURLS server path in order to shorten URLs with a remote installation of YOURLS."
58
+ msgstr "Je moet je YOURLS server pad ingeven om URL's te verkorten met een installatie op afstand van YOURLS."
59
+
60
+ #: wp-to-twitter-manager.php:172
61
+ msgid "WP to Twitter Options Updated"
62
+ msgstr "WP to Twitter Opties Bijgewerkt"
63
+
64
+ #: wp-to-twitter-manager.php:182
65
+ msgid "Category limits updated."
66
+ msgstr "Categorie limieten bijgewerkt."
67
+
68
+ #: wp-to-twitter-manager.php:186
69
+ msgid "Category limits unset."
70
+ msgstr "Categorie limieten uitgezet"
71
+
72
+ #: wp-to-twitter-manager.php:194
73
+ msgid "YOURLS password updated. "
74
+ msgstr "YOURLS wachtwoord bijgewerkt. "
75
+
76
+ #: wp-to-twitter-manager.php:197
77
+ msgid "YOURLS password deleted. You will be unable to use your remote YOURLS account to create short URLS."
78
+ msgstr "YOURLS wachtwoord verwijderd. Je kunt je remote YOURLS account niet gebruiken om verkorte URL's te creëeren."
79
+
80
+ #: wp-to-twitter-manager.php:199
81
+ msgid "Failed to save your YOURLS password! "
82
+ msgstr "YOURLS wachtwoord opslaan is mislukt! "
83
+
84
+ #: wp-to-twitter-manager.php:203
85
+ msgid "YOURLS username added. "
86
+ msgstr "YOURLS gebruikersnaam toegevoegd. "
87
+
88
+ #: wp-to-twitter-manager.php:207
89
+ msgid "YOURLS API url added. "
90
+ msgstr "YOURLS API url toegevoegd. "
91
+
92
+ #: wp-to-twitter-manager.php:210
93
+ msgid "YOURLS API url removed. "
94
+ msgstr "YOURLS API url verwijderd. "
95
+
96
+ #: wp-to-twitter-manager.php:215
97
+ msgid "YOURLS local server path added. "
98
+ msgstr "YOURLS lokaal server pad toegevoegd. "
99
+
100
+ #: wp-to-twitter-manager.php:217
101
+ msgid "The path to your YOURLS installation is not correct. "
102
+ msgstr "Het pad naar je YOURLS installatie is niet correct."
103
+
104
+ #: wp-to-twitter-manager.php:221
105
+ msgid "YOURLS local server path removed. "
106
+ msgstr "YOURLS lokaal server pad verwijderd. "
107
+
108
+ #: wp-to-twitter-manager.php:225
109
+ msgid "YOURLS will use Post ID for short URL slug."
110
+ msgstr "YOURLS zal een bericht ID gebruiken voor een korte URL slug."
111
+
112
+ #: wp-to-twitter-manager.php:228
113
+ msgid "YOURLS will not use Post ID for the short URL slug."
114
+ msgstr "YOURLS zal geen bericht ID gebruiken voor een korte URL slug."
115
+
116
+ #: wp-to-twitter-manager.php:235
117
+ msgid "Cligs API Key Updated"
118
+ msgstr "Cli.gs API sleutel bijgewerkt"
119
+
120
+ #: wp-to-twitter-manager.php:238
121
+ msgid "Cli.gs API Key deleted. Cli.gs created by WP to Twitter will no longer be associated with your account. "
122
+ msgstr "Cli.gs API sleutel verwijderd. Cli.gs gemaakt met WP to Twitter zullen niet langer verbonden zijn met je account. "
123
+
124
+ #: wp-to-twitter-manager.php:240
125
+ msgid "Cli.gs API Key not added - <a href='http://cli.gs/user/api/'>get one here</a>! "
126
+ msgstr "Cli.gs API sleutel niet toegevoegd - <a href='http://cli.gs/user/api/'>verkrijg er één hier</a>! "
127
+
128
+ #: wp-to-twitter-manager.php:246
129
+ msgid "Bit.ly API Key Updated."
130
+ msgstr "Bit.ly API sleutel bijgewerkt."
131
+
132
+ #: wp-to-twitter-manager.php:249
133
+ msgid "Bit.ly API Key deleted. You cannot use the Bit.ly API without an API key. "
134
+ msgstr "Bit.ly API sleutel verwijderd. Je kan de Bit.ly API niet geberuiken zonder API sleutel. "
135
+
136
+ #: wp-to-twitter-manager.php:251
137
+ msgid "Bit.ly API Key not added - <a href='http://bit.ly/account/'>get one here</a>! An API key is required to use the Bit.ly URL shortening service."
138
+ msgstr "Bit.ly API sleutel niet toegevoegd - <a href='http://bit.ly/account/'>HIER aanvragen</a>! Een API sleutel is nodig om de Bit.ly URL verkorter te gebruiken."
139
+
140
+ #: wp-to-twitter-manager.php:255
141
+ msgid " Bit.ly User Login Updated."
142
+ msgstr " Bit.ly gebruikerslogin bijgewerkt."
143
+
144
+ #: wp-to-twitter-manager.php:258
145
+ msgid "Bit.ly User Login deleted. You cannot use the Bit.ly API without providing your username. "
146
+ msgstr "Bit.ly gebruikerslogin verwijderd. Je kan niet de Bit.ly API gebruiken zonder je gebruikersnaam in te voeren. "
147
+
148
+ #: wp-to-twitter-manager.php:260
149
+ msgid "Bit.ly Login not added - <a href='http://bit.ly/account/'>get one here</a>! "
150
+ msgstr "Bit.ly Login niet toegevoegd - maak <a href='http://bit.ly/account/'>HIER</a> een account aan!"
151
+
152
+ #: wp-to-twitter-manager.php:289
153
+ msgid "No error information is available for your shortener."
154
+ msgstr "Er is geen informatie beschikbaar over je URL verkorter."
155
+
156
+ #: wp-to-twitter-manager.php:291
157
+ msgid "<li class=\"error\"><strong>WP to Twitter was unable to contact your selected URL shortening service.</strong></li>"
158
+ msgstr "<li class=\"error\"><strong>WP to Twitter kon geen contact maken met je geselecteerde URL verkorter.</strong></li>"
159
+
160
+ #: wp-to-twitter-manager.php:294
161
+ msgid "<li><strong>WP to Twitter successfully contacted your selected URL shortening service.</strong> The following link should point to your blog homepage:"
162
+ msgstr "<li><strong>WP to Twitter heeft succesvol contact gemaakt met je geselecteerde URL verkorter.</strong> De volgende link moet naar je blog homepage wijzen:"
163
+
164
+ #: wp-to-twitter-manager.php:303
165
+ msgid "<li><strong>WP to Twitter successfully submitted a status update to Twitter.</strong></li>"
166
+ msgstr "<li><strong>WP to Twitter heeft succesvol een status update geplaatst op Twitter.</strong></li>"
167
+
168
+ #: wp-to-twitter-manager.php:305
169
+ msgid "<li class=\"error\"><strong>WP to Twitter failed to submit an update to Twitter.</strong></li>"
170
+ msgstr "<li class=\"error\"><strong>Het is WP to Twitter niet gelukt om een update naar Twitter te sturen.</strong></li>"
171
+
172
+ #: wp-to-twitter-manager.php:308
173
+ msgid "You have not connected WordPress to Twitter."
174
+ msgstr "Je hebt geen connectie met WordPress to Twitter."
175
+
176
+ #: wp-to-twitter-manager.php:312
177
+ msgid "<li class=\"error\"><strong>Your server does not appear to support the required methods for WP to Twitter to function.</strong> You can try it anyway - these tests aren't perfect.</li>"
178
+ msgstr "<li class=\"error\"><strong>Je server lijkt niet de benodigde methodes te ondersteunen om WP to Twitter te laten functioneren.</strong> Je kunt het altijd proberen - deze tests zijn niet perfect</li>"
179
+
180
+ #: wp-to-twitter-manager.php:316
181
+ msgid "<li><strong>Your server should run WP to Twitter successfully.</strong></li>"
182
+ msgstr "<li><strong>WP to Twitter zou probleemloos op je server moeten werken.</strong></li>"
183
+
184
+ #: wp-to-twitter-manager.php:333
185
+ msgid "WP to Twitter Options"
186
+ msgstr "WP to Twitter Opties"
187
+
188
+ #: wp-to-twitter-manager.php:343
189
+ #: wp-to-twitter.php:805
190
+ msgid "Get Support"
191
+ msgstr "Verkrijg Ondersteuning"
192
+
193
+ #: wp-to-twitter-manager.php:344
194
+ msgid "Export Settings"
195
+ msgstr "Exporteren Instellingen"
196
+
197
+ #: wp-to-twitter-manager.php:345
198
+ #: wp-to-twitter.php:805
199
+ msgid "Make a Donation"
200
+ msgstr "Geef een Donatie"
201
+
202
+ #: wp-to-twitter-manager.php:360
203
+ msgid "Shortcodes available in post update templates:"
204
+ msgstr "Shortcodes beschikbaar in bericht update templates:"
205
+
206
+ #: wp-to-twitter-manager.php:362
207
+ msgid "<code>#title#</code>: the title of your blog post"
208
+ msgstr "<code>#title#</code>: de titel van je blog bericht"
209
+
210
+ #: wp-to-twitter-manager.php:363
211
+ msgid "<code>#blog#</code>: the title of your blog"
212
+ msgstr "<code>#blog#</code>: de titel van je blog"
213
+
214
+ #: wp-to-twitter-manager.php:364
215
+ msgid "<code>#post#</code>: a short excerpt of the post content"
216
+ msgstr "<code>#post#</code>: een korte samenvatting van het bericht"
217
+
218
+ #: wp-to-twitter-manager.php:365
219
+ msgid "<code>#category#</code>: the first selected category for the post"
220
+ msgstr "<code>#category#</code>: de eerste geselecteerde categorie voor het bericht"
221
+
222
+ #: wp-to-twitter-manager.php:366
223
+ msgid "<code>#date#</code>: the post date"
224
+ msgstr "<code>#date#</code>: de bericht datum"
225
+
226
+ #: wp-to-twitter-manager.php:367
227
+ msgid "<code>#url#</code>: the post URL"
228
+ msgstr "<code>#url#</code>: de bericht URL"
229
+
230
+ #: wp-to-twitter-manager.php:368
231
+ msgid "<code>#author#</code>: the post author"
232
+ msgstr "<code>#author#</code>: de bericht auteur"
233
+
234
+ #: wp-to-twitter-manager.php:370
235
+ msgid "You can also create custom shortcodes to access WordPress custom fields. Use doubled square brackets surrounding the name of your custom field to add the value of that custom field to your status update. Example: <code>[[custom_field]]</code></p>"
236
+ msgstr "Je kan ook aangepaste shortcodes creëeren voor toegang tot aangepaste WordPress velden. Gebruik dubbele [ ] om de naam van je aangepast veld om de waarde hiervan toe te voegen aan je status update. Voorbeeld: <code>[[custom_field]]</code></p>"
237
+
238
+ #: wp-to-twitter-manager.php:375
239
+ msgid "<p>One or more of your last posts has failed to send it's status update to Twitter. Your Tweet has been saved in your post custom fields, and you can re-Tweet it at your leisure.</p>"
240
+ msgstr "<p>Eén of meer van je laatste berichten konden niet hun status sturen naar Twitter. Je tweet is bewaard in een aangepast veld in je bericht, en je kan het naar behoeven manueel retweeten.</p>"
241
+
242
+ #: wp-to-twitter-manager.php:379
243
+ msgid "<p>The query to the URL shortener API failed, and your URL was not shrunk. The full post URL was attached to your Tweet. Check with your URL shortening provider to see if there are any known issues. [<a href=\"http://blog.cli.gs\">Cli.gs Blog</a>] [<a href=\"http://blog.bit.ly\">Bit.ly Blog</a>]</p>"
244
+ msgstr "<p>De query van de URL verkorter API is mislukt, en je URL is niet verkort. De volledige bericht URL is gebruikt in je Tweet. Informeer bij de aanbieder van je URL verkorter of er problemen zijn. [<a href=\"http://blog.cli.gs\">Cli.gs Blog</a>] [<a href=\"http://blog.bit.ly\">Bit.ly Blog</a>]</p>"
245
+
246
+ #: wp-to-twitter-manager.php:386
247
+ msgid "Clear 'WP to Twitter' Error Messages"
248
+ msgstr "Verwijderden 'WP to Twitter' Foutmeldingen"
249
+
250
+ #: wp-to-twitter-manager.php:402
251
+ msgid "Basic Settings"
252
+ msgstr "Basis Instellingen"
253
+
254
+ #: wp-to-twitter-manager.php:408
255
+ msgid "Tweet Templates"
256
+ msgstr "Tweet Templates"
257
+
258
+ #: wp-to-twitter-manager.php:411
259
+ msgid "Update when a post is published"
260
+ msgstr "Bijwerken wanneer een bericht is gepubliceerd"
261
+
262
+ #: wp-to-twitter-manager.php:411
263
+ msgid "Text for new post updates:"
264
+ msgstr "Tekst voor nieuwe berichten:"
265
+
266
+ #: wp-to-twitter-manager.php:417
267
+ #: wp-to-twitter-manager.php:420
268
+ msgid "Update when a post is edited"
269
+ msgstr "Bijwerken wanneer een bericht aangepast is"
270
+
271
+ #: wp-to-twitter-manager.php:417
272
+ #: wp-to-twitter-manager.php:420
273
+ msgid "Text for editing updates:"
274
+ msgstr "Tekst voor aangepaste updates:"
275
+
276
+ #: wp-to-twitter-manager.php:421
277
+ msgid "You can not disable updates on edits when using Postie or similar plugins."
278
+ msgstr "Je kunt updates niet uitschakelen op bewerkingen wanneer je Postie of vergelijkbare plugins gebruikt."
279
+
280
+ #: wp-to-twitter-manager.php:425
281
+ msgid "Update Twitter when new Wordpress Pages are published"
282
+ msgstr "Bijwerken Twitter wanneer nieuwe WordPress pagina's gepubliceerd zijn"
283
+
284
+ #: wp-to-twitter-manager.php:425
285
+ msgid "Text for new page updates:"
286
+ msgstr "Tekst voor nieuwe pagina updates:"
287
+
288
+ #: wp-to-twitter-manager.php:429
289
+ msgid "Update Twitter when WordPress Pages are edited"
290
+ msgstr "Bijwerken Twitter wanneer WordPress pagina's bijgewerkt worden"
291
+
292
+ #: wp-to-twitter-manager.php:429
293
+ msgid "Text for page edit updates:"
294
+ msgstr "Tekst voor aanpassing pagina updates:"
295
+
296
+ #: wp-to-twitter-manager.php:433
297
+ msgid "Update Twitter when you post a Blogroll link"
298
+ msgstr "Bijwerken Twitter wanneer je een blogrol link plaatst"
299
+
300
+ #: wp-to-twitter-manager.php:434
301
+ msgid "Text for new link updates:"
302
+ msgstr "Tekst voor nieuwe link updates:"
303
+
304
+ #: wp-to-twitter-manager.php:434
305
+ msgid "Available shortcodes: <code>#url#</code>, <code>#title#</code>, and <code>#description#</code>."
306
+ msgstr "Beschikbare shortcodes: <code>#url#</code>, <code>#title#</code> en <code>#description#</code>."
307
+
308
+ #: wp-to-twitter-manager.php:438
309
+ msgid "Choose your short URL service (account settings below)"
310
+ msgstr "Kies je verkorte URL service (account instelllingen onder)"
311
+
312
+ #: wp-to-twitter-manager.php:441
313
+ msgid "Use Cli.gs for my URL shortener."
314
+ msgstr "Gebruik Cli.gs voor mijn URL verkorter."
315
+
316
+ #: wp-to-twitter-manager.php:442
317
+ msgid "Use Bit.ly for my URL shortener."
318
+ msgstr "Gebruik Bit.ly voor mijn URL verkorter."
319
+
320
+ #: wp-to-twitter-manager.php:443
321
+ msgid "YOURLS (installed on this server)"
322
+ msgstr "YOURLS (geïnstalleerd op deze server)"
323
+
324
+ #: wp-to-twitter-manager.php:444
325
+ msgid "YOURLS (installed on a remote server)"
326
+ msgstr "YOURLS (geïnstalleerd op een remote server)"
327
+
328
+ #: wp-to-twitter-manager.php:445
329
+ msgid "Use WordPress as a URL shortener."
330
+ msgstr "Gebruik WordPress voor mijn URL verkorter."
331
+
332
+ #: wp-to-twitter-manager.php:446
333
+ msgid "Don't shorten URLs."
334
+ msgstr "URL's niet verkorten."
335
+
336
+ #: wp-to-twitter-manager.php:448
337
+ msgid "Using WordPress as a URL shortener will send URLs to Twitter in the default URL format for WordPress: <code>http://domain.com/wpdir/?p=123</code>. Google Analytics is not available when using WordPress shortened URLs."
338
+ msgstr "Door WordPress als een URL verkorter te gebruiken zul je URL's verzenden naar Twitter in het standaard formaat voor WordPress: <code>http://domein.com/folder/?p=123</code>. Google Analytics is niet beschikbaar wanneer WordPress gebruikt wordt voor verkorte URL's."
339
+
340
+ #: wp-to-twitter-manager.php:454
341
+ msgid "Save WP->Twitter Options"
342
+ msgstr "WP->Twitter Instellingen opslaan"
343
+
344
+ #: wp-to-twitter-manager.php:466
345
+ msgid "<abbr title=\"Uniform Resource Locator\">URL</abbr> Shortener Account Settings"
346
+ msgstr "<abbr title=\"Uniform Resource Locator\">URL</abbr> Verkorter Account Instellingen"
347
+
348
+ #: wp-to-twitter-manager.php:470
349
+ msgid "Your Cli.gs account details"
350
+ msgstr "Jouw Cli.gs account informatie"
351
+
352
+ #: wp-to-twitter-manager.php:475
353
+ msgid "Your Cli.gs <abbr title='application programming interface'>API</abbr> Key:"
354
+ msgstr "Jouw Cli.gs <abbr title='application programming interface'>API</abbr> sleutel:"
355
+
356
+ #: wp-to-twitter-manager.php:481
357
+ msgid "Don't have a Cli.gs account or Cligs API key? <a href='http://cli.gs/user/api/'>Get one free here</a>!<br />You'll need an API key in order to associate the Cligs you create with your Cligs account."
358
+ msgstr "Heb je geen Cli.gs account of Cligs API sleutel? <a href='http://cli.gs/user/api/'>Verkrijg er een gratis hier</a>!<br />Je hebt een API sleutel nodig om de Cligs die je maakt te koppelen aan je Cligs account."
359
+
360
+ #: wp-to-twitter-manager.php:487
361
+ msgid "Your Bit.ly account details"
362
+ msgstr "Je Biy.ly account informatie"
363
+
364
+ #: wp-to-twitter-manager.php:492
365
+ msgid "Your Bit.ly username:"
366
+ msgstr "Je Bit.ly gebruikersnaam:"
367
+
368
+ #: wp-to-twitter-manager.php:496
369
+ msgid "Your Bit.ly <abbr title='application programming interface'>API</abbr> Key:"
370
+ msgstr "Je Bit.ly <abbr title='application programming interface'>API</abbr> sleutel:"
371
+
372
+ #: wp-to-twitter-manager.php:503
373
+ msgid "Save Bit.ly API Key"
374
+ msgstr "Opslaan Bit.ly API sleutel"
375
+
376
+ #: wp-to-twitter-manager.php:503
377
+ msgid "Clear Bit.ly API Key"
378
+ msgstr "Verwijderen Bit.ly API sleutel"
379
+
380
+ #: wp-to-twitter-manager.php:503
381
+ msgid "A Bit.ly API key and username is required to shorten URLs via the Bit.ly API and WP to Twitter."
382
+ msgstr "Een Bit.ly API en gebruikersnaam is nodig om URL's te verkorten met de Bit.ly API en WP to Twitter."
383
+
384
+ #: wp-to-twitter-manager.php:508
385
+ msgid "Your YOURLS account details"
386
+ msgstr "Jouw YOURLS account informatie"
387
+
388
+ #: wp-to-twitter-manager.php:512
389
+ msgid "Path to the YOURLS config file (Local installations)"
390
+ msgstr "Pad naar het YOURLS configuratie bestand (Lokale installaties)"
391
+
392
+ #: wp-to-twitter-manager.php:513
393
+ #: wp-to-twitter-manager.php:517
394
+ msgid "Example:"
395
+ msgstr "Voorbeeld:"
396
+
397
+ #: wp-to-twitter-manager.php:516
398
+ msgid "URI to the YOURLS API (Remote installations)"
399
+ msgstr "URI naar de YOURLS API (Remote installaties)"
400
+
401
+ #: wp-to-twitter-manager.php:520
402
+ msgid "Your YOURLS username:"
403
+ msgstr "Je YOURLS gebruikersnaam:"
404
+
405
+ #: wp-to-twitter-manager.php:524
406
+ msgid "Your YOURLS password:"
407
+ msgstr "Jouw YOURLS wachtwoord:"
408
+
409
+ #: wp-to-twitter-manager.php:524
410
+ msgid "<em>Saved</em>"
411
+ msgstr "<em>Opgeslagen</em>"
412
+
413
+ #: wp-to-twitter-manager.php:528
414
+ msgid "Use Post ID for YOURLS url slug."
415
+ msgstr "Gebruik bericht ID voor YOURLS url slug."
416
+
417
+ #: wp-to-twitter-manager.php:533
418
+ msgid "Save YOURLS Account Info"
419
+ msgstr "Opslaan YOURLS Account Info"
420
+
421
+ #: wp-to-twitter-manager.php:533
422
+ msgid "Clear YOURLS password"
423
+ msgstr "Wissen YOURLS wachtwoord"
424
+
425
+ #: wp-to-twitter-manager.php:533
426
+ msgid "A YOURLS password and username is required to shorten URLs via the remote YOURLS API and WP to Twitter."
427
+ msgstr "Een YOURLS wachtwoord en gebruikersnaam is nodig om URL's te verkorten met de YOURLS API en WP to Twitter."
428
+
429
+ #: wp-to-twitter-manager.php:550
430
+ msgid "Advanced Settings"
431
+ msgstr "Geavanceerde Instellingen"
432
+
433
+ #: wp-to-twitter-manager.php:557
434
+ msgid "Advanced Tweet settings"
435
+ msgstr "Geavanceerde Tweet instellingen"
436
+
437
+ #: wp-to-twitter-manager.php:560
438
+ msgid "Add tags as hashtags on Tweets"
439
+ msgstr "Gebruik tags als hashtags in Tweets"
440
+
441
+ #: wp-to-twitter-manager.php:561
442
+ msgid "Spaces replaced with:"
443
+ msgstr "Spaties vervangen door:"
444
+
445
+ #: wp-to-twitter-manager.php:562
446
+ msgid "Default replacement is an underscore (<code>_</code>). Use <code>[ ]</code> to remove spaces entirely."
447
+ msgstr "Standaard vervanging is een underscore (<code>_</code>). Gebruik <code>[ ]</code> om spaties geheel te verwijderen."
448
+
449
+ #: wp-to-twitter-manager.php:565
450
+ msgid "Maximum number of tags to include:"
451
+ msgstr "Maximaal aantal tags om in te voegen:"
452
+
453
+ #: wp-to-twitter-manager.php:566
454
+ msgid "Maximum length in characters for included tags:"
455
+ msgstr "Maximale lengte in karakters voor ingevoegde tags:"
456
+
457
+ #: wp-to-twitter-manager.php:567
458
+ msgid "These options allow you to restrict the length and number of WordPress tags sent to Twitter as hashtags. Set to <code>0</code> or leave blank to allow any and all tags."
459
+ msgstr "Deze opties maken het mogelijk om de lengte en het aantal tags te beperken welke naar Twitter verzonden worden als hashtags. Ingesteld op <code>0</code> of laat leeg om alle tags toe te staan."
460
+
461
+ #: wp-to-twitter-manager.php:570
462
+ msgid "Length of post excerpt (in characters):"
463
+ msgstr "Lengte van de bericht samenvatting (in karakters):"
464
+
465
+ #: wp-to-twitter-manager.php:570
466
+ msgid "By default, extracted from the post itself. If you use the 'Excerpt' field, that will be used instead."
467
+ msgstr "Standaard, verkregen van het bericht zelf. Wanneer je het 'Excerpt' veld gebruikt zal dit hiervoor gebruikt worden."
468
+
469
+ #: wp-to-twitter-manager.php:573
470
+ msgid "WP to Twitter Date Formatting:"
471
+ msgstr "WP to Twitter Datum Opmaak:"
472
+
473
+ #: wp-to-twitter-manager.php:574
474
+ msgid "Default is from your general settings. <a href='http://codex.wordpress.org/Formatting_Date_and_Time'>Date Formatting Documentation</a>."
475
+ msgstr "Standaard is van je algemene instellingen. <a href='http://codex.wordpress.org/Formatting_Date_and_Time'>Documentatie Datum Opmaak (Eng)</a>."
476
+
477
+ #: wp-to-twitter-manager.php:578
478
+ msgid "Custom text before all Tweets:"
479
+ msgstr "Aangepaste tekst vóór alle Tweets:"
480
+
481
+ #: wp-to-twitter-manager.php:579
482
+ msgid "Custom text after all Tweets:"
483
+ msgstr "Aangepaste tekst ná alle Tweets:"
484
+
485
+ #: wp-to-twitter-manager.php:582
486
+ msgid "Custom field for an alternate URL to be shortened and Tweeted:"
487
+ msgstr "Aangepast veld voor een alternatieve URL om te verkorten en tweeten:"
488
+
489
+ #: wp-to-twitter-manager.php:583
490
+ msgid "You can use a custom field to send an alternate URL for your post. The value is the name of a custom field containing your external URL."
491
+ msgstr "Je kan een aangepast veld gebruiken om een alternatieve URL te sturen voor je bericht. De waarde is de naam van het aangepast veld met de externe URL."
492
+
493
+ #: wp-to-twitter-manager.php:587
494
+ msgid "Special Cases when WordPress should send a Tweet"
495
+ msgstr "Speciale gevallen wanneer WordPress een Tweet moet versturen"
496
+
497
+ #: wp-to-twitter-manager.php:590
498
+ msgid "Do not post status updates by default"
499
+ msgstr "Plaats standaard geen bericht updates"
500
+
501
+ #: wp-to-twitter-manager.php:591
502
+ msgid "By default, all posts meeting other requirements will be posted to Twitter. Check this to change your setting."
503
+ msgstr "Standaard zullen alle berichten welke voldoen aan andere eisen verstuurd worden naar Twitter. Selecteer dit om de instelling te veranderen."
504
+
505
+ #: wp-to-twitter-manager.php:595
506
+ msgid "Send Twitter Updates on remote publication (Post by Email or XMLRPC Client)"
507
+ msgstr "Twitter updates verzenden met publicatie op afstand (per email of XMLRPC Client)"
508
+
509
+ #: wp-to-twitter-manager.php:597
510
+ msgid "I'm using a plugin to post by email, such as Postie. Only check this if your updates do not work."
511
+ msgstr "Ik gebruik een plugin om te versturen per email, zoals Postie. Selecteer dit alleen als je updates niet werken."
512
+
513
+ #: wp-to-twitter-manager.php:601
514
+ msgid "Update Twitter when a post is published using QuickPress"
515
+ msgstr "Update Twitter wanneer een bericht gepubliceerd wordt met QuickPress"
516
+
517
+ #: wp-to-twitter-manager.php:605
518
+ msgid "Google Analytics Settings"
519
+ msgstr "Google Analytics Instellingen"
520
+
521
+ #: wp-to-twitter-manager.php:606
522
+ msgid "You can track the response from Twitter using Google Analytics by defining a campaign identifier here. You can either define a static identifier or a dynamic identifier. Static identifiers don't change from post to post; dynamic identifiers are derived from information relevant to the specific post. Dynamic identifiers will allow you to break down your statistics by an additional variable."
523
+ msgstr "Je kunt de respons van Twitter bijhouden met gebruik van Google Analytics door een campagne ID te definiëren. Je kan zowel een statische als een dynamische ID definiëren. Statische ID's wijzigen niet van bericht tot bericht; dynamische ID's worden afgeleid van informatie relevant aan het specifieke bericht. Dynamische ID's stellen je in staat om statistieken onder te verdelen met een extra variabele."
524
+
525
+ #: wp-to-twitter-manager.php:610
526
+ msgid "Use a Static Identifier with WP-to-Twitter"
527
+ msgstr "Gebruik statische identifier met WP-to-Twitter"
528
+
529
+ #: wp-to-twitter-manager.php:611
530
+ msgid "Static Campaign identifier for Google Analytics:"
531
+ msgstr "Statische Campagne Identifier voor Google Analytics:"
532
+
533
+ #: wp-to-twitter-manager.php:615
534
+ msgid "Use a dynamic identifier with Google Analytics and WP-to-Twitter"
535
+ msgstr "Gebruik een dynamische identifier met Google Analytics en WP-to-Twitter"
536
+
537
+ #: wp-to-twitter-manager.php:616
538
+ msgid "What dynamic identifier would you like to use?"
539
+ msgstr "Welke dynamische ID wil je gebruiken?"
540
+
541
+ #: wp-to-twitter-manager.php:618
542
+ msgid "Category"
543
+ msgstr "Categorie"
544
+
545
+ #: wp-to-twitter-manager.php:619
546
+ msgid "Post ID"
547
+ msgstr "Bericht ID"
548
+
549
+ #: wp-to-twitter-manager.php:620
550
+ msgid "Post Title"
551
+ msgstr "Bericht Titel"
552
+
553
+ #: wp-to-twitter-manager.php:621
554
+ msgid "Author"
555
+ msgstr "Auteur"
556
+
557
+ #: wp-to-twitter-manager.php:626
558
+ msgid "Individual Authors"
559
+ msgstr "Individuele Auteurs"
560
+
561
+ #: wp-to-twitter-manager.php:629
562
+ msgid "Authors have individual Twitter accounts"
563
+ msgstr "Auteurs hebben individuele Twitter accounts"
564
+
565
+ #: wp-to-twitter-manager.php:629
566
+ msgid "Authors can set their username in their user profile. As of version 2.2.0, this feature no longer allows authors to post to their own Twitter accounts. It can only add an @reference to the author."
567
+ msgstr "Auteurs kunnen hun gebruikersnaam instellen in hun profiel. Vanaf versie 2.2.0 kunnen auteurs niet meer berichten plaatsen op hun eigen Twitter accounts, alleen een @reference naar de auteur kan toegevoegd worden."
568
+
569
+ #: wp-to-twitter-manager.php:633
570
+ msgid "Disable Error Messages"
571
+ msgstr "Uitschakelen Foutmeldingen"
572
+
573
+ #: wp-to-twitter-manager.php:636
574
+ msgid "Disable global URL shortener error messages."
575
+ msgstr "Uitschakelen globale URL verkorter foutmeldingen."
576
+
577
+ #: wp-to-twitter-manager.php:640
578
+ msgid "Disable global Twitter API error messages."
579
+ msgstr "Uitschakelen globale Twitter API foutmeldingen."
580
+
581
+ #: wp-to-twitter-manager.php:644
582
+ msgid "Disable notification to implement OAuth"
583
+ msgstr "Uitschakelen melding om OAuth te implementeren"
584
+
585
+ #: wp-to-twitter-manager.php:648
586
+ msgid "Get Debugging Data for OAuth Connection"
587
+ msgstr "Verkrijg debugging data voor OAuth connectie"
588
+
589
+ #: wp-to-twitter-manager.php:654
590
+ msgid "Save Advanced WP->Twitter Options"
591
+ msgstr "WP->Twitter Geavanceerde Instellingen Opslaan"
592
+
593
+ #: wp-to-twitter-manager.php:668
594
+ msgid "Limit Updating Categories"
595
+ msgstr "Limiteer Updaten Categorieën"
596
+
597
+ #: wp-to-twitter-manager.php:672
598
+ msgid "Select which blog categories will be Tweeted. "
599
+ msgstr "Selecteer welke blog categorieën worden Getweet."
600
+
601
+ #: wp-to-twitter-manager.php:675
602
+ msgid "<em>Category limits are disabled.</em>"
603
+ msgstr "<em>Categorie limieten zijn uitgeschakeld.</em>"
604
+
605
+ #: wp-to-twitter-manager.php:689
606
+ msgid "Check Support"
607
+ msgstr "Ondersteuning Raadplegen"
608
+
609
+ #: wp-to-twitter-manager.php:689
610
+ msgid "Check whether your server supports <a href=\"http://www.joedolson.com/articles/wp-to-twitter/\">WP to Twitter's</a> queries to the Twitter and URL shortening APIs. This test will send a status update to Twitter and shorten a URL using your selected methods."
611
+ msgstr "Selecteer of je server <a href=\"http://www.joedolson.com/articles/wp-to-twitter/\">WP to Twitter's</a> queries ondersteund naar de Twitter en URL verkorter API's. Deze test zal een status update sturen naar Twitter en een URL verkorten met gebruik van jouw geselecteerde methodes."
612
+
613
+ #: wp-to-twitter-oauth.php:105
614
+ #: wp-to-twitter-oauth.php:143
615
+ msgid "Connect to Twitter"
616
+ msgstr "Verbinding maken met Twitter"
617
+
618
+ #: wp-to-twitter-oauth.php:108
619
+ msgid "The process to set up OAuth authentication for your web site is needlessly laborious. It is also confusing. However, this is the only method available from Twitter at this time. Note that you will not, at any time, enter you Twitter username or password into WP to Twitter; they are not used in OAuth authentication."
620
+ msgstr "Het proces om OAuth authenticatie in te stellen voor je website is onnodig tijdsrovend en verwarrend. Desondanks is het de enige methode beschikbaar van Twitter op dit moment. Let op dat je nooit je Twitter gebruikersnaam of wachtwoord invoert in WP to Twitter; ze worden niet gebruikt met OAuth authenticatie."
621
+
622
+ #: wp-to-twitter-oauth.php:111
623
+ msgid "1. Register this site as an application on "
624
+ msgstr "1. Registreer deze site als een applicatie op "
625
+
626
+ #: wp-to-twitter-oauth.php:111
627
+ msgid "Twitter's application registration page"
628
+ msgstr "Twitter's applicatie registratie pagina"
629
+
630
+ #: wp-to-twitter-oauth.php:113
631
+ msgid "If you're not currently logged in, use the Twitter username and password which you want associated with this site"
632
+ msgstr "Als je op dit moment niet ingelogd bent gebruik de Twitter gebruikersnaam en het wachtwoord welke je geassocieerd wil zien met deze site"
633
+
634
+ #: wp-to-twitter-oauth.php:114
635
+ msgid "Your Application's Name will be what shows up after \"via\" in your twitter stream; previously, \"WP to Twitter.\" Your application name cannot include the word \"Twitter.\" I suggest using the name of your web site."
636
+ msgstr "De naam van je applicatie zal dat zijn wat weergegeven wordt na \"via\" in je twitter stream; vroeger \"WP to Twitter.\" Je applicatie naam kan niet het woord \"Twitter\" bevatten. Gebruik een andere naam voor je website."
637
+
638
+ #: wp-to-twitter-oauth.php:115
639
+ msgid "Your Application Description can be whatever you want."
640
+ msgstr "Je applicatie omschrijving kan van alles zijn."
641
+
642
+ #: wp-to-twitter-oauth.php:116
643
+ msgid "Application Type should be set on "
644
+ msgstr "Applicatie Type moet staan op "
645
+
646
+ #: wp-to-twitter-oauth.php:116
647
+ msgid "Browser"
648
+ msgstr "Browser"
649
+
650
+ #: wp-to-twitter-oauth.php:117
651
+ msgid "The Callback URL should be "
652
+ msgstr "De terugkoppel URL zou moeten zijn "
653
+
654
+ #: wp-to-twitter-oauth.php:118
655
+ msgid "Default Access type must be set to "
656
+ msgstr "Standaard Toegangstype moet ingesteld staan op "
657
+
658
+ #: wp-to-twitter-oauth.php:118
659
+ msgid "Read &amp; Write"
660
+ msgstr "Lezen &amp; Schrijven"
661
+
662
+ #: wp-to-twitter-oauth.php:118
663
+ msgid "(this is NOT the default)"
664
+ msgstr "(dit is NIET de standaard)"
665
+
666
+ #: wp-to-twitter-oauth.php:120
667
+ msgid "Once you have registered your site as an application, you will be provided with a consumer key and a consumer secret."
668
+ msgstr "Zodra je je site geregistreerd hebt als een applicatie wordt je voorzien van een gebruikerssleutel en gebruikersgeheim."
669
+
670
+ #: wp-to-twitter-oauth.php:121
671
+ msgid "2. Copy and paste your consumer key and consumer secret into the fields below"
672
+ msgstr "2. Kopieer en plak je gebruikerssleutel en gebruikersgeheim in de onderstaande velden"
673
+
674
+ #: wp-to-twitter-oauth.php:124
675
+ msgid "Twitter Consumer Key"
676
+ msgstr "Twitter Gebruiker Sleutel"
677
+
678
+ #: wp-to-twitter-oauth.php:128
679
+ msgid "Twitter Consumer Secret"
680
+ msgstr "Twitter Gebruiker Geheim"
681
+
682
+ #: wp-to-twitter-oauth.php:131
683
+ msgid "3. Copy and paste your Access Token and Access Token Secret into the fields below"
684
+ msgstr "3. Kopieer en plak je toegangsbewijs en toegangsbewijs geheim in de onderstaande velden"
685
+
686
+ #: wp-to-twitter-oauth.php:132
687
+ msgid "On the right hand side of your application page, click on 'My Access Token'."
688
+ msgstr "Klik op 'Mijn Toegangsbewijs' aan de rechterzijde van je applicatiepagina."
689
+
690
+ #: wp-to-twitter-oauth.php:134
691
+ msgid "Access Token"
692
+ msgstr "Toegangsbewijs"
693
+
694
+ #: wp-to-twitter-oauth.php:138
695
+ msgid "Access Token Secret"
696
+ msgstr "Toegangsbewijs Geheim"
697
+
698
+ #: wp-to-twitter-oauth.php:153
699
+ msgid "Disconnect from Twitter"
700
+ msgstr "Twitter verbinding verbreken"
701
+
702
+ #: wp-to-twitter-oauth.php:160
703
+ msgid "Twitter Username "
704
+ msgstr "Twitter Gebruikersnaam"
705
+
706
+ #: wp-to-twitter-oauth.php:161
707
+ msgid "Consumer Key "
708
+ msgstr "Gebruikerssleutel"
709
+
710
+ #: wp-to-twitter-oauth.php:162
711
+ msgid "Consumer Secret "
712
+ msgstr "Gebruikersgeheim"
713
+
714
+ #: wp-to-twitter-oauth.php:163
715
+ msgid "Access Token "
716
+ msgstr "Toegangsbewijs"
717
+
718
+ #: wp-to-twitter-oauth.php:164
719
+ msgid "Access Token Secret "
720
+ msgstr "Toegangsbewijs Geheim"
721
+
722
+ #: wp-to-twitter-oauth.php:167
723
+ msgid "Disconnect Your WordPress and Twitter Account"
724
+ msgstr "Verbreek de verbinding met WordPress en Twitter"
725
+
726
+ #: wp-to-twitter.php:55
727
+ #, php-format
728
+ msgid "Twitter now requires authentication by OAuth. You will need you to update your <a href=\"%s\">settings</a> in order to continue to use WP to Twitter."
729
+ msgstr "Twitter gebruikt nu authenticatie met OAuth. Je moet je <a href=\"%s\">instellingen</a> bijwerken om WP to Twitter te kunnen blijven gebruiken."
730
+
731
+ #: wp-to-twitter.php:136
732
+ msgid "200 OK: Success!"
733
+ msgstr "200 OK: Success!"
734
+
735
+ #: wp-to-twitter.php:139
736
+ msgid "400 Bad Request: The request was invalid. This is the status code returned during rate limiting."
737
+ msgstr "400 Bad Request: De aanvraag was onjuist. Dit is de status code welke wordt teruggegeven met waardebeperking."
738
+
739
+ #: wp-to-twitter.php:142
740
+ msgid "401 Unauthorized: Authentication credentials were missing or incorrect."
741
+ msgstr "401 Unauthorized: Authenticatie login gegevens zijn onvolledig of onjuist."
742
+
743
+ #: wp-to-twitter.php:145
744
+ msgid "403 Forbidden: The request is understood, but it has been refused. This code is used when requests are being denied due to update limits."
745
+ msgstr "403 Forbidden: De aanvraag is begrepen maar geweigerd. Deze code wordt gebruikt wanneer aanvragen worden geweigerd door update limieten."
746
+
747
+ #: wp-to-twitter.php:147
748
+ msgid "500 Internal Server Error: Something is broken at Twitter."
749
+ msgstr "500 Internal Server Error: Er is iets kapot bij Twitter."
750
+
751
+ #: wp-to-twitter.php:150
752
+ msgid "503 Service Unavailable: The Twitter servers are up, but overloaded with requests Please try again later."
753
+ msgstr "503 Service Unavailable: De Twitter servers werken maar zijn overbelast, probeer het later nog eens."
754
+
755
+ #: wp-to-twitter.php:153
756
+ msgid "502 Bad Gateway: Twitter is down or being upgraded."
757
+ msgstr "502 Bad Gateway: Twitter is buiten werking of wordt bijgewerkt."
758
+
759
+ #. #-#-#-#-# plugin.pot (WP to Twitter 2.2.0 (beta 7)) #-#-#-#-#
760
+ #. Plugin Name of the plugin/theme
761
+ #: wp-to-twitter.php:732
762
+ msgid "WP to Twitter"
763
+ msgstr "WP to Twitter"
764
+
765
+ #: wp-to-twitter.php:808
766
+ msgid "Don't Tweet this post."
767
+ msgstr "Dit bericht niet twitteren."
768
+
769
+ #: wp-to-twitter.php:818
770
+ msgid "This URL is direct and has not been shortened: "
771
+ msgstr "Deze URL is direct en is niet verkort:"
772
+
773
+ #: wp-to-twitter.php:872
774
+ msgid "WP to Twitter User Settings"
775
+ msgstr "WP to Twitter gebruikersinstellingen"
776
+
777
+ #: wp-to-twitter.php:876
778
+ msgid "Use My Twitter Username"
779
+ msgstr "Gebruik je Twitter gebruikersnaam"
780
+
781
+ #: wp-to-twitter.php:877
782
+ msgid "Tweet my posts with an @ reference to my username."
783
+ msgstr "Tweet mijn berichten met een @ referentie naar mijn gebruikersnaam."
784
+
785
+ #: wp-to-twitter.php:878
786
+ msgid "Tweet my posts with an @ reference to both my username and to the main site username."
787
+ msgstr "Tweet mijn berichten met een @ referentie naar mijn gebruikersnaam en de algemene site gebruikersnaam."
788
+
789
+ #: wp-to-twitter.php:883
790
+ msgid "Enter your own Twitter username."
791
+ msgstr "Geef je eigen Twitter gebruikersnaam in."
792
+
793
+ #: wp-to-twitter.php:919
794
+ msgid "Check the categories you want to tweet:"
795
+ msgstr "Selecteer de categorieën welke je wilt tweeten:"
796
+
797
+ #: wp-to-twitter.php:936
798
+ msgid "Set Categories"
799
+ msgstr "Categorieen Instellen"
800
+
801
+ #: wp-to-twitter.php:1010
802
+ msgid "<p>Couldn't locate the settings page.</p>"
803
+ msgstr "<p>Kon de instellingspagina niet vinden.</p>"
804
+
805
+ #: wp-to-twitter.php:1015
806
+ msgid "Settings"
807
+ msgstr "Instellingen"
808
+
809
+ #. Plugin URI of the plugin/theme
810
+ msgid "http://www.joedolson.com/articles/wp-to-twitter/"
811
+ msgstr "http://www.joedolson.com/articles/wp-to-twitter/"
812
+
813
+ #. Description of the plugin/theme
814
+ msgid "Updates Twitter when you create a new blog post or add to your blogroll using Cli.gs. With a Cli.gs API key, creates a clig in your Cli.gs account with the name of your post as the title."
815
+ msgstr "Bijwerken Twitter wanneer je een nieuw blog bericht of toevoeging aan je blogroll creëert met gebruik van Cli.gs. Met een Cli.gs API sleutel wordt een clig in je Cli.gs account gemaakt met de naam van je bericht als titel."
816
+
817
+ #. Author of the plugin/theme
818
+ msgid "Joseph Dolson"
819
+ msgstr "Joseph Dolson"
820
+
821
+ #. Author URI of the plugin/theme
822
+ msgid "http://www.joedolson.com/"
823
+ msgstr "http://www.joedolson.com/"
824
+
825
+ #~ msgid "Twitter Password Saved"
826
+ #~ msgstr "Twitter Wachtwoord Opgeslagen"
827
+
828
+ #~ msgid "Twitter Password Not Saved"
829
+ #~ msgstr "Twitter Wachtwoord Niet Opgeslagen"
830
+
831
+ #~ msgid "Bit.ly API Saved"
832
+ #~ msgstr "Bit.ly API sleutel opgeslagen"
833
+
834
+ #~ msgid "Bit.ly API Not Saved"
835
+ #~ msgstr "Bit.ly API sleutel niet opgeslagen"
836
+
837
+ #~ msgid ""
838
+ #~ "Set your Twitter login information and URL shortener API information to "
839
+ #~ "use this plugin!"
840
+ #~ msgstr ""
841
+ #~ "Instellen van je Twitter login en URL verkorter API informatiie om deze "
842
+ #~ "plugin te gebruiken!"
843
+
844
+ #~ msgid "Please add your Twitter password. "
845
+ #~ msgstr "Voeg je Twitter wachtwoord toe."
846
+
847
+ #~ msgid "You need to provide your twitter login and password! "
848
+ #~ msgstr "Je moet je Twitter login en wachtwoord ingeven! "
849
+
850
+ #~ msgid ""
851
+ #~ "<li>Successfully contacted the Cli.gs API via Snoopy, but the URL "
852
+ #~ "creation failed.</li>"
853
+ #~ msgstr ""
854
+ #~ "<li>Cli.gs API via Snoopy succesvol gecontacteerd, maar de URL is niet "
855
+ #~ "aangemaakt.</li>"
856
+
857
+ #~ msgid ""
858
+ #~ "<li>Successfully contacted the Cli.gs API via Snoopy, but a Cli.gs server "
859
+ #~ "error prevented the URL from being shrotened.</li>"
860
+ #~ msgstr ""
861
+ #~ "<li>Cli.gs API via Snoopy succesvol gecontacteerd, maar een Cli.gs server "
862
+ #~ "fout voorkwam dat de URL werd verkort.</li>"
863
+
864
+ #~ msgid ""
865
+ #~ "<li>Successfully contacted the Cli.gs API via Snoopy and created a "
866
+ #~ "shortened link.</li>"
867
+ #~ msgstr ""
868
+ #~ "<li>Cli.gs API via Snoopy succesvol gecontacteerd en verkorte URL is "
869
+ #~ "aangemaakt.</li>"
870
+
871
+ #~ msgid "<li>Successfully contacted the Bit.ly API via Snoopy.</li>"
872
+ #~ msgstr "<li>Bit.ly API via Snoopy succesvol gecontacteerd.</li>"
873
+
874
+ #~ msgid "<li>Failed to contact the Bit.ly API via Snoopy.</li>"
875
+ #~ msgstr "<li>Contact Bit.ly API via Snoopy mislukt.</li>"
876
+
877
+ #~ msgid "<li>Cannot check the Bit.ly API without a valid API key.</li>"
878
+ #~ msgstr ""
879
+ #~ "<li>Kan de Bit.ly API niet controleren zonder een geldige API sleutel.</"
880
+ #~ "li>"
881
+
882
+ #~ msgid "<li>Successfully contacted the Twitter API via Snoopy.</li>"
883
+ #~ msgstr "<li>Twitter API via Snoopy succesvol gecontacteerd.</li>"
884
+
885
+ #~ msgid "<li>Failed to contact the Twitter API via Snoopy.</li>"
886
+ #~ msgstr "<li>Contact Twitter API via Snoopy mislukt.</li>"
887
+
888
+ #~ msgid "<li>Successfully contacted the Twitter API via cURL.</li>"
889
+ #~ msgstr "<li>Twitter API succesvol gecontacteerd via cURL.</li>"
890
+
891
+ #~ msgid "<li>Failed to contact the Twitter API via cURL.</li>"
892
+ #~ msgstr "<li>Contact Twitter API via cURL mislukt.</li>"
893
+
894
+ #~ msgid "<li>Successfully contacted the Cli.gs API via Snoopy.</li>"
895
+ #~ msgstr "<li>Cli.gs API via Snoopy succesvol gecontacteerd.</li>"
896
+
897
+ #~ msgid "<li>Failed to contact the Cli.gs API via Snoopy.</li>"
898
+ #~ msgstr "<li>Contact Cli.gs API via Snoopy mislukt.</li>"
899
+
900
+ #~ msgid "<li>Your server does not support <code>fputs</code>.</li>"
901
+ #~ msgstr "<li>Je server ondersteund geen <code>fputs</code>.</li>"
902
+
903
+ #~ msgid ""
904
+ #~ "<li>Your server does not support <code>file_get_contents</code> or "
905
+ #~ "<code>cURL</code> functions.</li>"
906
+ #~ msgstr ""
907
+ #~ "<li>Je server ondersteund geen <code>file_get_contents</code> of "
908
+ #~ "<code>cURL</code> functies.</li>"
909
+
910
+ #~ msgid "<li>Your server does not support <code>Snoopy</code>.</li>"
911
+ #~ msgstr "<li>Je server ondersteund geen <code>Snoopy</code>.</li>"
912
+
913
+ #~ msgid ""
914
+ #~ "This plugin may not fully work in your server environment. The plugin "
915
+ #~ "failed to contact both a URL shortener API and the Twitter service API."
916
+ #~ msgstr ""
917
+ #~ "Deze plugin kan misschien niet volledig werken in jouw server omgeving. "
918
+ #~ "Contact met de URL verkorter API en de Twitter service API is mislukt."
919
+
920
+ #~ msgid ""
921
+ #~ "For any post update field, you can use the codes <code>#title#</code> for "
922
+ #~ "the title of your blog post, <code>#blog#</code> for the title of your "
923
+ #~ "blog, <code>#post#</code> for a short excerpt of the post content, "
924
+ #~ "<code>#category#</code> for the first selected category for the post, "
925
+ #~ "<code>#date#</code> for the post date, or <code>#url#</code> for the post "
926
+ #~ "URL (shortened or not, depending on your preferences.) You can also "
927
+ #~ "create custom shortcodes to access WordPress custom fields. Use doubled "
928
+ #~ "square brackets surrounding the name of your custom field to add the "
929
+ #~ "value of that custom field to your status update. Example: <code>"
930
+ #~ "[[custom_field]]</code>"
931
+ #~ msgstr ""
932
+ #~ "Voor elke bijwerking kun je deze codes gebruiken: <code>#title#</code> "
933
+ #~ "voor de naam van je blog bericht, <code>#blog#</code> voor de blognaam, "
934
+ #~ "<code>#post#</code> voor een samenvatting van het bericht, "
935
+ #~ "<code>#category#</code> voor de eerst geselecteerde categorie van het "
936
+ #~ "bericht, <code>#date#</code> voor de plaatsingsdatum of <code>#url#</"
937
+ #~ "code> voor de URL van het bericht (verkort of niet, afhankelijk van je "
938
+ #~ "instellingen.) Je kan ook shortcodes creëeren om toegang te krijgen tot "
939
+ #~ "aangepaste velden. Gebruik dubbele [ ] rondom de naam van je aangepast "
940
+ #~ "veld om de waarde hiervan toe te voegen aan je status update. Voorbeeld: "
941
+ #~ "<code>[[aangepast_veld]]</code>"
942
+
943
+ #~ msgid "Set what should be in a Tweet"
944
+ #~ msgstr "Instellen wat er in een Tweet moet staan"
945
+
946
+ #~ msgid "Set default Tweet status to 'No.'"
947
+ #~ msgstr "Zet standaard Tweet status op 'Nee'"
948
+
949
+ #~ msgid ""
950
+ #~ "Twitter updates can be set on a post by post basis. By default, posts "
951
+ #~ "WILL be posted to Twitter. Check this to change the default to NO."
952
+ #~ msgstr ""
953
+ #~ "Twitter updates kunnen ingesteld worden per bericht. Standaard zullen "
954
+ #~ "berichten gepost worden op Twitter. Selecteer dit om de standaard waarde "
955
+ #~ "te veranderen naar NEE."
956
+
957
+ #~ msgid "Special Fields"
958
+ #~ msgstr "Speciale Velden"
959
+
960
+ #~ msgid ""
961
+ #~ "You can track the response from Twitter using Google Analytics by "
962
+ #~ "defining a campaign identifier here."
963
+ #~ msgstr ""
964
+ #~ "Je kunt de Twitter response meten met Google Analytics door een campaign "
965
+ #~ "identifier hier te definieren."
966
+
967
+ #~ msgid ""
968
+ #~ "Each author can set their own Twitter username and password in their user "
969
+ #~ "profile. Their posts will be sent to their own Twitter accounts."
970
+ #~ msgstr ""
971
+ #~ "Elke auteur kan zijn eigen Twitter gebruikersnaam en wachtwoord "
972
+ #~ "instellen. Hun berichten zullen verzonden worden naar hun eigen Twitter "
973
+ #~ "accounts."
974
+
975
+ #~ msgid "Set your preferred URL Shortener"
976
+ #~ msgstr "Stel je voorkeur URL verkorter in"
977
+
978
+ #~ msgid "Your Twitter account details"
979
+ #~ msgstr "Jouw Twitter account informatie"
980
+
981
+ #~ msgid "Your Twitter username:"
982
+ #~ msgstr "Jouw Twitter gebruikersnaam:"
983
+
984
+ #~ msgid "Save Twitter Login Info"
985
+ #~ msgstr "Twitter Login bewaren"
986
+
987
+ #~ msgid ""
988
+ #~ "&raquo; <small>Don't have a Twitter account? <a href='http://www.twitter."
989
+ #~ "com'>Get one for free here</a>"
990
+ #~ msgstr ""
991
+ #~ "&raquo; <small>Heb je geen Twitter Account? Klik <a href='http://www."
992
+ #~ "twitter.com'>HIER</a> om er een aan te maken"
993
+
994
+ #~ msgid ""
995
+ #~ "Check whether your server supports WP to Twitter's queries to the Twitter "
996
+ #~ "and URL shortening APIs."
997
+ #~ msgstr ""
998
+ #~ "Controleer of je server WP to Twitter's queries ondersteund naar de "
999
+ #~ "Twitter en URL shortening APIs."
1000
+
1001
+ #~ msgid "Need help?"
1002
+ #~ msgstr "Hulp nodig?"
1003
+
1004
+ #~ msgid ""
1005
+ #~ "Visit the <a href='http://www.joedolson.com/articles/wp-to-twitter/'>WP "
1006
+ #~ "to Twitter plugin page</a>."
1007
+ #~ msgstr ""
1008
+ #~ "Bezoek de <a href='http://www.joedolson.com/articles/wp-to-twitter/'>WP "
1009
+ #~ "to Twitter plugin pagina</a>."
1010
+
1011
+ #~ msgid ""
1012
+ #~ " characters.<br />Twitter posts are a maximum of 140 characters; if your "
1013
+ #~ "Cli.gs URL is appended to the end of your document, you have 119 "
1014
+ #~ "characters available. You can use <code>#url#</code>, <code>#title#</"
1015
+ #~ "code>, <code>#post#</code>, <code>#category#</code>, <code>#date#</code>, "
1016
+ #~ "or <code>#blog#</code> to insert the shortened URL, post title, the first "
1017
+ #~ "category selected, the post date, or a post excerpt or blog name into the "
1018
+ #~ "Tweet."
1019
+ #~ msgstr ""
1020
+ #~ " karakters.<br />Twitter berichten zijn max.140 karakters; wanneer je Cli."
1021
+ #~ "gs URL is toegevoegd aan het einde van je bericht heb je nog 119 "
1022
+ #~ "karakters beschikbaar. Je kunt<code>#url#</code>, <code>#title#</code>, "
1023
+ #~ "<code>#post#</code>, <code>#category#</code>, <code>#date#</code>, of "
1024
+ #~ "<code>#blog#</code> gebruiken om de verkorte URL in te voegen, bericht "
1025
+ #~ "titel, eerst geselecteerde categorie, bericht datum, of een bericht "
1026
+ #~ "samenvatting of blog naam in de Tweet."
1027
+
1028
+ #~ msgid "Use My Twitter Account"
1029
+ #~ msgstr "Gebruik Mijn Twitter Account"
1030
+
1031
+ #~ msgid ""
1032
+ #~ "Select this option if you would like your posts to be Tweeted into your "
1033
+ #~ "own Twitter account with no @ references."
1034
+ #~ msgstr ""
1035
+ #~ "Selecteer deze optie wanneer je berichten getweet moeten worden naar je "
1036
+ #~ "eigen Twitter account zonder @ referenties."
1037
+
1038
+ #~ msgid ""
1039
+ #~ "Tweet my posts into the main site Twitter account with an @ reference to "
1040
+ #~ "my username. (Password not required with this option.)"
1041
+ #~ msgstr ""
1042
+ #~ "Tweet mijn berichten naar de standaard Twitter account met een @ "
1043
+ #~ "referentie naar mijn gebruikersnaam. (Wachtwoord niet benodigd met deze "
1044
+ #~ "optie.)"
1045
+
1046
+ #~ msgid "Your Twitter Password"
1047
+ #~ msgstr "Jouw Twitter Wachtwoord"
1048
+
1049
+ #~ msgid "Enter your own Twitter password."
1050
+ #~ msgstr "Geef je eigen Twitter wachtwoord in."
1051
+
1052
+ #~ msgid ""
1053
+ #~ "The query to the URL shortener API failed, and your URL was not shrunk. "
1054
+ #~ "The full post URL was attached to your Tweet."
1055
+ #~ msgstr ""
1056
+ #~ "Die Verbindung zum URL Kürzer API schlug fehl und deine URL wurde nicht "
1057
+ #~ "verkürzt. Es wurde die normale URL wurde im Tweet veröffentlicht."
1058
+
1059
+ #~ msgid "Add_new_tag"
1060
+ #~ msgstr "Tag_hinzufügen"
1061
+
1062
+ #~ msgid "This plugin may not work in your server environment."
1063
+ #~ msgstr ""
1064
+ #~ "Dieses Plugin funktioniert vielleicht nicht in deiner Server Umgebung."
1065
+
1066
+ #~ msgid "Wordpress to Twitter Publishing Options"
1067
+ #~ msgstr "Wordpress to Twitter Veröffentlichungs-Optionen"
1068
+
1069
+ #~ msgid "Provide link to blog?"
1070
+ #~ msgstr "Link zum Blog hinzufügen?"
1071
+
1072
+ #~ msgid "Use <strong>link title</strong> for Twitter updates"
1073
+ #~ msgstr ""
1074
+ #~ "Verwende den <strong>Link Namen</strong> für Twitter Aktualisierungen"
1075
+
1076
+ #~ msgid "Use <strong>link description</strong> for Twitter updates"
1077
+ #~ msgstr ""
1078
+ #~ "Verwende die <strong>Link Beschreibung</strong> für Twitter "
1079
+ #~ "Aktualisierungen"
1080
+
1081
+ #~ msgid ""
1082
+ #~ "Text for new link updates (used if title/description isn't available.):"
1083
+ #~ msgstr ""
1084
+ #~ "Text für neuen Link (wenn kein Namen oder Beschreibung vorhanden sind.):"
1085
+
1086
+ #~ msgid "Custom text prepended to Tweets:"
1087
+ #~ msgstr "Eigener Text zu Beginn des Tweets:"
1088
+
1089
+ #~ msgid ""
1090
+ #~ "Your server appears to support the required PHP functions and classes for "
1091
+ #~ "WP to Twitter to function."
1092
+ #~ msgstr ""
1093
+ #~ "Es scheint als würde dein Server die benötigten PHP Funktion und Klassen "
1094
+ #~ "für WP to Twitter bereitstellen."
wp-to-twitter-oauth.php ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // function to test credentials
3
+ function wtt_oauth_test() {
4
+ return ( wtt_oauth_credentials_to_hash() == get_option('wtt_oauth_hash') );
5
+ }
6
+ // function to make connection
7
+ function wtt_oauth_connection() {
8
+ $ack = get_option('app_consumer_key');
9
+ $acs = get_option('app_consumer_secret');
10
+ $ot = get_option('oauth_token');
11
+ $ots = get_option('oauth_token_secret');
12
+
13
+ if ( !empty( $ack ) && !empty( $acs ) && !empty( $ot ) && !empty( $ots ) ) {
14
+ require_once( WP_PLUGIN_DIR . '/wp-to-twitter/jd_twitterOAuth.php' );
15
+ $connection = new jd_TwitterOAuth(
16
+ get_option('app_consumer_key'),
17
+ get_option('app_consumer_secret'),
18
+ get_option('oauth_token'),
19
+ get_option('oauth_token_secret')
20
+ );
21
+ $connection->useragent = 'WP to Twitter http://www.joedolson.com/articles/wp-to-twitter';
22
+ return $connection;
23
+ }
24
+ else {
25
+ return false;
26
+ }
27
+ }
28
+
29
+ // convert credentials to md5 hash
30
+ function wtt_oauth_credentials_to_hash() {
31
+ $hash = md5(get_option('app_consumer_key').get_option('app_consumer_secret').get_option('oauth_token').get_option('oauth_token_secret'));
32
+ return $hash;
33
+ }
34
+ // response to settings updates
35
+ function jd_update_oauth_settings() {
36
+ switch ( $_POST['oauth_settings'] ) {
37
+ case 'wtt_oauth_test':
38
+ if (!wp_verify_nonce($_POST['_wpnonce'], 'wtt_oauth_test')) {
39
+ wp_die('Oops, please try again.');
40
+ }
41
+ $auth_test = false;
42
+ if ( !empty($_POST['wtt_app_consumer_key'])
43
+ && !empty($_POST['wtt_app_consumer_secret'])
44
+ && !empty($_POST['wtt_oauth_token'])
45
+ && !empty($_POST['wtt_oauth_token_secret'])
46
+ ) {
47
+ update_option('app_consumer_key',trim($_POST['wtt_app_consumer_key']));
48
+ update_option('app_consumer_secret',trim($_POST['wtt_app_consumer_secret']));
49
+ update_option('oauth_token',trim($_POST['wtt_oauth_token']));
50
+ update_option('oauth_token_secret',trim($_POST['wtt_oauth_token_secret']));
51
+
52
+ $message = 'fail';
53
+
54
+ if ($connection = wtt_oauth_connection()) {
55
+ $data = $connection->get('account/verify_credentials');
56
+ if ($connection->http_code == '200') {
57
+ $decode = json_decode($data);
58
+ update_option('wtt_twitter_username', stripslashes($decode->screen_name));
59
+ $oauth_hash = wtt_oauth_credentials_to_hash();
60
+ update_option('wtt_oauth_hash', $oauth_hash);
61
+ $message = 'success';
62
+ } else {
63
+ $error_information = array("http_code"=>$connection->http_code,"status"=>$connection->http_header['status']);
64
+ }
65
+ if ( get_option('wp_debug_oauth') == '1' ) {
66
+ echo "<pre><strong>Summary Connection Response:</strong><br />";
67
+ print_r($error_information);
68
+ echo "<br /><strong>Account Verification Data:</strong><br />";
69
+ print_r($data);
70
+ echo "<br /><strong>Full Connection Response:</strong><br />";
71
+ print_r($connection);
72
+ echo "</pre>";
73
+ }
74
+ }
75
+ }
76
+ return $message;
77
+ break;
78
+ case 'wtt_twitter_disconnect':
79
+ if (!wp_verify_nonce($_POST['_wpnonce'], 'wtt_twitter_disconnect')) {
80
+ wp_die('Oops, please try again.');
81
+ }
82
+
83
+ update_option('app_consumer_key', '');
84
+ update_option('app_consumer_secret', '');
85
+ update_option('oauth_token', '');
86
+ update_option('oauth_token_secret', '');
87
+ $message = "cleared";
88
+ return $message;
89
+ break;
90
+ }
91
+ }
92
+
93
+ // connect or disconnect form
94
+ function wtt_connect_oauth() {
95
+ echo '<div class="ui-sortable meta-box-sortables">';
96
+ if ( !wtt_oauth_test() ) {
97
+ echo '<div class="postbox">';
98
+ } else {
99
+ echo '<div class="postbox closed">';
100
+ }
101
+ echo '<div class="handlediv" title="Click to toggle"><br/></div>';
102
+
103
+ if ( !wtt_oauth_test() ) {
104
+ print('
105
+ <h3>'.__('Connect to Twitter','wp-to-twitter').'</h3>
106
+ <div class="inside">
107
+ <br class="clear" />
108
+ <p>'.__('The process to set up OAuth authentication for your web site is needlessly laborious. It is also confusing. However, this is the only method available from Twitter at this time. Note that you will not, at any time, enter you Twitter username or password into WP to Twitter; they are not used in OAuth authentication.', 'wp-to-twitter').'</p>
109
+ <form action="" method="post">
110
+ <fieldset class="options">
111
+ <h4>'.__('1. Register this site as an application on ', 'wp-to-twitter') . '<a href="http://dev.twitter.com/apps/new" target="_blank">'.__('Twitter\'s application registration page','wp-to-twitter').'</a></h4>
112
+ <ul>
113
+ <li>'.__('If you\'re not currently logged in, use the Twitter username and password which you want associated with this site' , 'wp-to-twitter').'</li>
114
+ <li>'.__('Your Application\'s Name will be what shows up after "via" in your twitter stream; previously, "WP to Twitter." Your application name cannot include the word "Twitter." I suggest using the name of your web site.' , 'wp-to-twitter').'</li>
115
+ <li>'.__('Your Application Description can be whatever you want.','wp-to-twitter').'</li>
116
+ <li>'.__('Application Type should be set on ' , 'wp-to-twitter').'<strong>'.__('Browser' , 'wp-to-twitter').'</strong></li>
117
+ <li>'.__('The Callback URL should be ' , 'wp-to-twitter').'<strong>'. get_bloginfo( 'url' ) .'</strong></li>
118
+ <li>'.__('Default Access type must be set to ' , 'wp-to-twitter').'<strong>'.__('Read &amp; Write' , 'wp-to-twitter').'</strong> '.__('(this is NOT the default)' , 'wp-to-twitter').'</li>
119
+ </ul>
120
+ <p><em>'.__('Once you have registered your site as an application, you will be provided with a consumer key and a consumer secret.' , 'wp-to-twitter').'</em></p>
121
+ <h4>'.__('2. Copy and paste your consumer key and consumer secret into the fields below' , 'wp-to-twitter').'</h4>
122
+
123
+ <p>
124
+ <label for="wtt_app_consumer_key">'.__('Twitter Consumer Key', 'wp-to-twitter').'</label>
125
+ <input type="text" size="25" name="wtt_app_consumer_key" id="wtt_app_consumer_key" value="'.esc_attr( get_option('app_consumer_key') ).'" autocomplete="off">
126
+ </p>
127
+ <p>
128
+ <label for="wtt_app_consumer_secret">'.__('Twitter Consumer Secret', 'wp-to-twitter').'</label>
129
+ <input type="text" size="25" name="wtt_app_consumer_secret" id="wtt_app_consumer_secret" value="'.esc_attr( get_option('app_consumer_secret') ).'" autocomplete="off">
130
+ </p>
131
+ <h4>'.__('3. Copy and paste your Access Token and Access Token Secret into the fields below','wp-to-twitter').'</h4>
132
+ <p>'.__('On the right hand side of your new application page at Twitter, click on \'My Access Token\'.','wp-to-twitter').'</p>
133
+ <p>
134
+ <label for="wtt_oauth_token">'.__('Access Token', 'wp-to-twitter').'</label>
135
+ <input type="text" size="25" name="wtt_oauth_token" id="wtt_oauth_token" value="'.esc_attr( get_option('oauth_token') ).'" autocomplete="off">
136
+ </p>
137
+ <p>
138
+ <label for="wtt_oauth_token_secret">'.__('Access Token Secret', 'wp-to-twitter').'</label>
139
+ <input type="text" size="25" name="wtt_oauth_token_secret" id="wtt_oauth_token_secret" value="'.esc_attr( get_option('oauth_token_secret') ).'" autocomplete="off">
140
+ </p>
141
+ </fieldset>
142
+ <p class="submit">
143
+ <input type="submit" name="submit" class="button-primary" value="'.__('Connect to Twitter', 'wp-to-twitter').'" />
144
+ </p>
145
+ <input type="hidden" name="oauth_settings" value="wtt_oauth_test" class="hidden" style="display: none;" />
146
+ '.wp_nonce_field('wtt_oauth_test', '_wpnonce', true, false).wp_referer_field(false).'
147
+ </form>
148
+ </div>
149
+ ');
150
+ }
151
+ else if ( wtt_oauth_test() ) {
152
+ print('
153
+ <h3>'.__('Disconnect from Twitter','wp-to-twitter').'</h3>
154
+
155
+ <div class="inside">
156
+ <br class="clear" />
157
+ <form action="" method="post">
158
+ <div id="wtt_authentication_display">
159
+ <fieldset class="options">
160
+ <p><strong class="auth_label">'.__('Twitter Username ', 'wp-to-twitter').'</strong> <code class="auth_code">'.get_option('wtt_twitter_username').'</code></p>
161
+ <p><strong class="auth_label">'.__('Consumer Key ', 'wp-to-twitter').'</strong> <code class="auth_code">'.get_option('app_consumer_key').'</code></p>
162
+ <p><strong class="auth_label">'.__('Consumer Secret ', 'wp-to-twitter').'</strong> <code class="auth_code">'.get_option('app_consumer_secret').'</code></p>
163
+ <p><strong class="auth_label">'.__('Access Token ', 'wp-to-twitter').'</strong> <code class="auth_code">'.get_option('oauth_token').'</code></p>
164
+ <p><strong class="auth_label">'.__('Access Token Secret ', 'wp-to-twitter').'</strong> <code class="auth_code">'.get_option('oauth_token_secret').'</code></p>
165
+ </fieldset>
166
+ <p class="submit">
167
+ <input type="submit" name="submit" class="button-primary" value="'.__('Disconnect Your WordPress and Twitter Account', 'wp-to-twitter').'" />
168
+ </p>
169
+ <input type="hidden" name="oauth_settings" value="wtt_twitter_disconnect" class="hidden" style="display: none;" />
170
+ '.wp_nonce_field('wtt_twitter_disconnect', '_wpnonce', true, false).wp_referer_field(false).'
171
+ </div>
172
+ </form>
173
+ </div>
174
+ ');
175
+ }
176
+ echo "</div>";
177
+ echo "</div>";
178
+ }
179
+ ?>
wp-to-twitter-zh_CN.mo ADDED
Binary file
wp-to-twitter-zh_CN.po ADDED
@@ -0,0 +1,586 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP to Twitter\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-to-twitter\n"
5
+ "POT-Creation-Date: 2009-12-22 20:09+0000\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Francis.TM <francis.tm@gmail.com>\n"
8
+ "Language-Team: Wopus <francis.tm@gmail.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: Chinese\n"
13
+ "X-Poedit-Country: CHINA\n"
14
+
15
+ #: functions.php:127
16
+ msgid "Twitter Password Saved"
17
+ msgstr "Twitter密码已保存"
18
+
19
+ #: functions.php:129
20
+ msgid "Twitter Password Not Saved"
21
+ msgstr "Twitter密码未保存"
22
+
23
+ #: functions.php:132
24
+ msgid "Bit.ly API Saved"
25
+ msgstr "Bit.ly API Key 已保存"
26
+
27
+ #: functions.php:134
28
+ msgid "Bit.ly API Not Saved"
29
+ msgstr "Bit.ly API Key 未保存"
30
+
31
+ #: functions.php:140
32
+ msgid "[<a href='options-general.php?page=wp-to-twitter/wp-to-twitter.php'>Hide</a>] If you're experiencing trouble, please copy these settings into any request for support."
33
+ msgstr "[<a href='options-general.php?page=wp-to-twitter/wp-to-twitter.php'>隐藏</a>]如果你在使用中遇到错误,请复制这些设置信息给我们以获得技术支持。"
34
+
35
+ #: wp-to-twitter-manager.php:63
36
+ msgid "Set your Twitter login information and URL shortener API information to use this plugin!"
37
+ msgstr "设置你Twitter的登录信息还有短URL服务商的API,来使用此插件!"
38
+
39
+ #: wp-to-twitter-manager.php:69
40
+ msgid "Please add your Twitter password. "
41
+ msgstr "请填写你Twitter的密码。"
42
+
43
+ #: wp-to-twitter-manager.php:75
44
+ msgid "WP to Twitter Errors Cleared"
45
+ msgstr "WP to Twitter 的错误信息已清除"
46
+
47
+ #: wp-to-twitter-manager.php:82
48
+ msgid "Sorry! I couldn't get in touch with the Twitter servers to post your new blog post. Your tweet has been stored in a custom field attached to the post, so you can Tweet it manually if you wish! "
49
+ msgstr "抱歉! 我不能连接到Twitter服务器,将你的新日志同步至Twitter。你的推已经保存在该日志的自定义域中,如果你想可以手动发送。"
50
+
51
+ #: wp-to-twitter-manager.php:84
52
+ msgid "Sorry! I couldn't get in touch with the Twitter servers to post your <strong>new link</strong>! You'll have to post it manually, I'm afraid. "
53
+ msgstr "抱歉! 不能连接Twitter服务器来将你的<strong>新链接</strong>同步至Twitter! 我恐怕你得手动发这个推了。"
54
+
55
+ #: wp-to-twitter-manager.php:149
56
+ msgid "You must add your Bit.ly login and API key in order to shorten URLs with Bit.ly."
57
+ msgstr "如果你想使用Bit.ly提供的URL缩短功能,就必须添加Bit.ly登录信息和API Key。"
58
+
59
+ #: wp-to-twitter-manager.php:158
60
+ msgid "WP to Twitter Options Updated"
61
+ msgstr "WP to Twitter 的设置已经更新"
62
+
63
+ #: wp-to-twitter-manager.php:168
64
+ msgid "Twitter login and password updated. "
65
+ msgstr "Twitter的登录信息已经更新"
66
+
67
+ #: wp-to-twitter-manager.php:170
68
+ msgid "You need to provide your twitter login and password! "
69
+ msgstr "你必须提供你的Twitter登录信息"
70
+
71
+ #: wp-to-twitter-manager.php:177
72
+ msgid "Cligs API Key Updated"
73
+ msgstr "Cli.gs API Key 已经更新"
74
+
75
+ #: wp-to-twitter-manager.php:180
76
+ msgid "Cli.gs API Key deleted. Cli.gs created by WP to Twitter will no longer be associated with your account. "
77
+ msgstr "Cli.gs API Key 已经删除。WP to Twitter 将不再与Cli.gs关联。"
78
+
79
+ #: wp-to-twitter-manager.php:182
80
+ msgid "Cli.gs API Key not added - <a href='http://cli.gs/user/api/'>get one here</a>! "
81
+ msgstr "Cli.gs API Key 还没有添加 - <a href='http://cli.gs/user/api/'>这里</a>来获取一个吧!"
82
+
83
+ #: wp-to-twitter-manager.php:188
84
+ msgid "Bit.ly API Key Updated."
85
+ msgstr "Bit.ly API Key 已经更新"
86
+
87
+ #: wp-to-twitter-manager.php:191
88
+ msgid "Bit.ly API Key deleted. You cannot use the Bit.ly API without an API key. "
89
+ msgstr "Bit.ly API Key 已经删除。如果没有 API,将无法使用Bit.ly提供的服务。"
90
+
91
+ #: wp-to-twitter-manager.php:193
92
+ msgid "Bit.ly API Key not added - <a href='http://bit.ly/account/'>get one here</a>! An API key is required to use the Bit.ly URL shortening service."
93
+ msgstr "Bit.ly的API还没有添加 - <a href='http://bit.ly/account/'>这里</a>获得一个吧! 如果你想使用URL缩短功能,就必须提供一个Bit.ly的API。"
94
+
95
+ #: wp-to-twitter-manager.php:197
96
+ msgid " Bit.ly User Login Updated."
97
+ msgstr "Bit.ly登录信息已经更新。"
98
+
99
+ #: wp-to-twitter-manager.php:200
100
+ msgid "Bit.ly User Login deleted. You cannot use the Bit.ly API without providing your username. "
101
+ msgstr "Bit.ly登录信息已经删除。没有了登录信息,你将不能使用Bit.ly。"
102
+
103
+ #: wp-to-twitter-manager.php:202
104
+ msgid "Bit.ly Login not added - <a href='http://bit.ly/account/'>get one here</a>! "
105
+ msgstr "Bit.ly 登录信息没有添加 - <a href='http://bit.ly/account/'>这里</a>来获取一个吧!"
106
+
107
+ #: wp-to-twitter-manager.php:236
108
+ msgid "<li>Successfully contacted the Cli.gs API via Snoopy, but the URL creation failed.</li>"
109
+ msgstr "<li>通过Snoopy连接Cli.gs API成功,但是URL创建失败。</li>"
110
+
111
+ #: wp-to-twitter-manager.php:238
112
+ msgid "<li>Successfully contacted the Cli.gs API via Snoopy, but a Cli.gs server error prevented the URL from being shrotened.</li>"
113
+ msgstr "<li>通过Snoopy连接Cli.gs API成功,但是远程服务器发生错误致使URL没有被缩短。</li>"
114
+
115
+ #: wp-to-twitter-manager.php:240
116
+ msgid "<li>Successfully contacted the Cli.gs API via Snoopy and created a shortened link.</li>"
117
+ msgstr "<li>成功的通过Snoopy连接到Cli.gs的API,并且创建了短URL。</li>"
118
+
119
+ #: wp-to-twitter-manager.php:249
120
+ #: wp-to-twitter-manager.php:274
121
+ msgid "<li>Successfully contacted the Bit.ly API via Snoopy.</li>"
122
+ msgstr "<li>成功的通过Snoopy连接到Bit.ly的API。</li>"
123
+
124
+ #: wp-to-twitter-manager.php:251
125
+ #: wp-to-twitter-manager.php:276
126
+ msgid "<li>Failed to contact the Bit.ly API via Snoopy.</li>"
127
+ msgstr "<li>通过Snoopy连接Bit.ly的API失败。</li>"
128
+
129
+ #: wp-to-twitter-manager.php:254
130
+ msgid "<li>Cannot check the Bit.ly API without a valid API key.</li>"
131
+ msgstr "<li>没有一个有效的API Key,不能访问Bit.ly的API。</li>"
132
+
133
+ #: wp-to-twitter-manager.php:258
134
+ msgid "<li>Successfully contacted the Twitter API via Snoopy.</li>"
135
+ msgstr "<li>通过Snoopy连接到Twitter API成功。</li>"
136
+
137
+ #: wp-to-twitter-manager.php:260
138
+ msgid "<li>Failed to contact the Twitter API via Snoopy.</li>"
139
+ msgstr "<li>通过Snoopy连接到Twitter API失败。</li>"
140
+
141
+ #: wp-to-twitter-manager.php:266
142
+ msgid "<li>Successfully contacted the Twitter API via cURL.</li>"
143
+ msgstr "<li>通过cURL连接到Twitter API成功。</li>"
144
+
145
+ #: wp-to-twitter-manager.php:268
146
+ msgid "<li>Failed to contact the Twitter API via cURL.</li>"
147
+ msgstr "<li>通过cURL连接到Twitter API失败。</li>"
148
+
149
+ #: wp-to-twitter-manager.php:280
150
+ msgid "<li>Successfully contacted the Cli.gs API via Snoopy.</li>"
151
+ msgstr "<li>通过Snoopy连接Cli.gs API成功。</li>"
152
+
153
+ #: wp-to-twitter-manager.php:283
154
+ msgid "<li>Failed to contact the Cli.gs API via Snoopy.</li>"
155
+ msgstr "<li>通过Snoopy连接CLi.gs API失败。</li>"
156
+
157
+ #: wp-to-twitter-manager.php:288
158
+ msgid "<li><strong>Your server should run WP to Twitter successfully.</strong></li>"
159
+ msgstr "<li><strong>你的服务器应该可以正常运行WP to Twitter。</strong></li>"
160
+
161
+ #: wp-to-twitter-manager.php:293
162
+ msgid "<li>Your server does not support <code>fputs</code>.</li>"
163
+ msgstr "<li>你的服务器不支持<code>fputs</code>函数。</li>"
164
+
165
+ #: wp-to-twitter-manager.php:297
166
+ msgid "<li>Your server does not support <code>file_get_contents</code> or <code>cURL</code> functions.</li>"
167
+ msgstr "<li>你的服务器不支持<code>file_get_contents</code>或者<code>cURL</code>函数。</li>"
168
+
169
+ #: wp-to-twitter-manager.php:301
170
+ msgid "<li>Your server does not support <code>Snoopy</code>.</li>"
171
+ msgstr "<li>你的服务器不支持<code>Snoopy</code>函数。</li>"
172
+
173
+ #: wp-to-twitter-manager.php:304
174
+ msgid "<li><strong>Your server does not appear to support the required PHP functions and classes for WP to Twitter to function.</strong> You can try it anyway - these tests aren't perfect - but no guarantees.</li>"
175
+ msgstr "<li><strong>你的服务器看起来缺少一些WP to Twitter需要的PHP函数。</strong>你可以继续尝试,因为这些测试结果并不保证是正确的。</li>"
176
+
177
+ #: wp-to-twitter-manager.php:313
178
+ msgid "This plugin may not fully work in your server environment. The plugin failed to contact both a URL shortener API and the Twitter service API."
179
+ msgstr "此插件或许在当前服务器环境下正常工作。当访问URL缩短功能和Twitter的API时发生了错误。"
180
+
181
+ #: wp-to-twitter-manager.php:328
182
+ msgid "WP to Twitter Options"
183
+ msgstr "WP to Twitter 选项"
184
+
185
+ #: wp-to-twitter-manager.php:332
186
+ #: wp-to-twitter.php:811
187
+ msgid "Get Support"
188
+ msgstr "获得支持"
189
+
190
+ #: wp-to-twitter-manager.php:333
191
+ msgid "Export Settings"
192
+ msgstr "导出设置"
193
+
194
+ #: wp-to-twitter-manager.php:347
195
+ msgid "For any post update field, you can use the codes <code>#title#</code> for the title of your blog post, <code>#blog#</code> for the title of your blog, <code>#post#</code> for a short excerpt of the post content, <code>#category#</code> for the first selected category for the post, <code>#date#</code> for the post date, or <code>#url#</code> for the post URL (shortened or not, depending on your preferences.) You can also create custom shortcodes to access WordPress custom fields. Use doubled square brackets surrounding the name of your custom field to add the value of that custom field to your status update. Example: <code>[[custom_field]]</code>"
196
+ msgstr "在任何一个日志的更新区域,你可以使用<code>#title#</code>来代替日志标题,<code>#blog#</code>代替博客标题,<code>#post#</code>代替日志内容的一个摘要,<code>#category#</code>来代替第一个被选中的分类,<code>#date#</code>代替日志发布的日期,<code>#url#</code>代替日志发布的URL(将会根据你的设置显示长、短链接)。你也可以使用自定义的快捷代码来显示日志中自定义与的内容。例如:<code>[[custom_field]]</code>这样。"
197
+
198
+ #: wp-to-twitter-manager.php:353
199
+ msgid "<p>One or more of your last posts has failed to send it's status update to Twitter. Your Tweet has been saved in your post custom fields, and you can re-Tweet it at your leisure.</p>"
200
+ msgstr "<p>在同步一个或多个日志到Twitter时出现错误。你的推已经保存在日志的自定义域中,你可以在空闲时间重新发送他们。</p>"
201
+
202
+ #: wp-to-twitter-manager.php:356
203
+ msgid "<p>The query to the URL shortener API failed, and your URL was not shrunk. The full post URL was attached to your Tweet. Check with your URL shortening provider to see if there are any known issues. [<a href=\"http://blog.cli.gs\">Cli.gs Blog</a>] [<a href=\"http://blog.bit.ly\">Bit.ly Blog</a>]</p>"
204
+ msgstr "<p>在请求URL缩短服务的API时出错,你的URL并没有被缩短。一个完整的URL已经包含在你的推中。检查你的URL缩短功能提供商看那里是不是有一些已知的错误。[<a href=\"http://blog.cli.gs\">Cli.gs Blog</a>] [<a href=\"http://blog.bit.ly\">Bit.ly Blog</a>]</p>"
205
+
206
+ #: wp-to-twitter-manager.php:363
207
+ msgid "Clear 'WP to Twitter' Error Messages"
208
+ msgstr "清除WP to Twitter的错误信息"
209
+
210
+ #: wp-to-twitter-manager.php:371
211
+ msgid "Set what should be in a Tweet"
212
+ msgstr "设置推中应该有什么"
213
+
214
+ #: wp-to-twitter-manager.php:374
215
+ msgid "Update when a post is published"
216
+ msgstr "当日志发布的时候同步至Twitter"
217
+
218
+ #: wp-to-twitter-manager.php:374
219
+ msgid "Text for new post updates:"
220
+ msgstr "发表新日志时,推的内容:"
221
+
222
+ #: wp-to-twitter-manager.php:379
223
+ msgid "Update when a post is edited"
224
+ msgstr "当日志修改的时候同步Twitter"
225
+
226
+ #: wp-to-twitter-manager.php:379
227
+ msgid "Text for editing updates:"
228
+ msgstr "修改日志时,推的内容:"
229
+
230
+ #: wp-to-twitter-manager.php:383
231
+ msgid "Update Twitter when new Wordpress Pages are published"
232
+ msgstr "当添加新的静态页面时同步至Twitter"
233
+
234
+ #: wp-to-twitter-manager.php:383
235
+ msgid "Text for new page updates:"
236
+ msgstr "添加新页面时,推的内容:"
237
+
238
+ #: wp-to-twitter-manager.php:387
239
+ msgid "Update Twitter when WordPress Pages are edited"
240
+ msgstr "当修改静态页面是同步至Twitter"
241
+
242
+ #: wp-to-twitter-manager.php:387
243
+ msgid "Text for page edit updates:"
244
+ msgstr "修改页面时,推的内容:"
245
+
246
+ #: wp-to-twitter-manager.php:391
247
+ msgid "Add tags as hashtags on Tweets"
248
+ msgstr "在推中将Tag添加为hashTags"
249
+
250
+ #: wp-to-twitter-manager.php:391
251
+ msgid "Spaces replaced with:"
252
+ msgstr "空格被替换为:"
253
+
254
+ #: wp-to-twitter-manager.php:392
255
+ msgid "Default replacement is an underscore (<code>_</code>). Use <code>[ ]</code> to remove spaces entirely."
256
+ msgstr "默认替换为下划线(<code>_</code>)。使用<code>[ ]</code>来删除日志中的空格。"
257
+
258
+ #: wp-to-twitter-manager.php:394
259
+ msgid "Maximum number of tags to include:"
260
+ msgstr "包含Tag的最大数量:"
261
+
262
+ #: wp-to-twitter-manager.php:395
263
+ msgid "Maximum length in characters for included tags:"
264
+ msgstr "包含Tag的最大长度:"
265
+
266
+ #: wp-to-twitter-manager.php:396
267
+ msgid "These options allow you to restrict the length and number of WordPress tags sent to Twitter as hashtags. Set to <code>0</code> or leave blank to allow any and all tags."
268
+ msgstr "这些选项可以让你限制WP日志中,Tag的数量和长度。设置<code>0</code>或者留空来显示所有的标签。"
269
+
270
+ #: wp-to-twitter-manager.php:400
271
+ msgid "Update Twitter when you post a Blogroll link"
272
+ msgstr "当Blogroll链接更新时同步至Twitter"
273
+
274
+ #: wp-to-twitter-manager.php:401
275
+ msgid "Text for new link updates:"
276
+ msgstr "添加新链接时,推的内容:"
277
+
278
+ #: wp-to-twitter-manager.php:401
279
+ msgid "Available shortcodes: <code>#url#</code>, <code>#title#</code>, and <code>#description#</code>."
280
+ msgstr "有效的快捷代码:<code>#url#</code>,<code>#title#</code>,<code>#description#</code>。"
281
+
282
+ #: wp-to-twitter-manager.php:404
283
+ msgid "Length of post excerpt (in characters):"
284
+ msgstr "日志摘要的长度(以字符计算):"
285
+
286
+ #: wp-to-twitter-manager.php:404
287
+ msgid "By default, extracted from the post itself. If you use the 'Excerpt' field, that will be used instead."
288
+ msgstr "默认的,将会从日志内提取,如果你使用了‘摘录’这个自定义域,将会自动替换为你自定义的内容。"
289
+
290
+ #: wp-to-twitter-manager.php:407
291
+ msgid "WP to Twitter Date Formatting:"
292
+ msgstr "WP to Twitter 日期格式:"
293
+
294
+ #: wp-to-twitter-manager.php:407
295
+ msgid "Default is from your general settings. <a href='http://codex.wordpress.org/Formatting_Date_and_Time'>Date Formatting Documentation</a>."
296
+ msgstr "默认将会使用通用设置。请参考<a href='http://codex.wordpress.org/Formatting_Date_and_Time'>时间格式文档</a>。"
297
+
298
+ #: wp-to-twitter-manager.php:411
299
+ msgid "Custom text before Tweets:"
300
+ msgstr "推前的自定义文字:"
301
+
302
+ #: wp-to-twitter-manager.php:412
303
+ msgid "Custom text after Tweets:"
304
+ msgstr "推后的自定义文字:"
305
+
306
+ #: wp-to-twitter-manager.php:415
307
+ msgid "Custom field for an alternate URL to be shortened and Tweeted:"
308
+ msgstr "会替换为短URL并且同步至至Twitter的域的名称:"
309
+
310
+ #: wp-to-twitter-manager.php:416
311
+ msgid "You can use a custom field to send Cli.gs and Twitter an alternate URL from the permalink provided by WordPress. The value is the name of the custom field you're using to add an external URL."
312
+ msgstr "你可以在WP中,将一些外部链接添加至自定义域,然后通过Cli.gs将其缩短,随后同步至Twitter。这个值就是填写外部链接的自定义域的名称。"
313
+
314
+ #: wp-to-twitter-manager.php:420
315
+ msgid "Special Cases when WordPress should send a Tweet"
316
+ msgstr "当WP发推是出现的特殊情况"
317
+
318
+ #: wp-to-twitter-manager.php:423
319
+ msgid "Set default Tweet status to 'No.'"
320
+ msgstr "设置默认的推状态为'否'。"
321
+
322
+ #: wp-to-twitter-manager.php:424
323
+ msgid "Twitter updates can be set on a post by post basis. By default, posts WILL be posted to Twitter. Check this to change the default to NO."
324
+ msgstr "可以设置当发布新日志的时候自动同步至Twitter。默认情况下,日志将会自动被发送至Twitter。检查这个是否设置为'否'。"
325
+
326
+ #: wp-to-twitter-manager.php:428
327
+ msgid "Send Twitter Updates on remote publication (Post by Email or XMLRPC Client)"
328
+ msgstr "当远程发布日志的时候(通过EMail或者XMLRPC客户端),同步至Twitter"
329
+
330
+ #: wp-to-twitter-manager.php:432
331
+ msgid "Update Twitter when a post is published using QuickPress"
332
+ msgstr "当使用QuickPress功能发布新日志时,同步至Twitter"
333
+
334
+ #: wp-to-twitter-manager.php:436
335
+ msgid "Special Fields"
336
+ msgstr "特殊的域"
337
+
338
+ #: wp-to-twitter-manager.php:439
339
+ msgid "Use Google Analytics with WP-to-Twitter"
340
+ msgstr "给WP to Twitter使用GoogleAnalytics"
341
+
342
+ #: wp-to-twitter-manager.php:440
343
+ msgid "Campaign identifier for Google Analytics:"
344
+ msgstr "Google Analytics的Campaign标识符:"
345
+
346
+ #: wp-to-twitter-manager.php:441
347
+ msgid "You can track the response from Twitter using Google Analytics by defining a campaign identifier here."
348
+ msgstr "你可以给Google Analytics定义Campaign标识符来追踪Twitter上的响应。"
349
+
350
+ #: wp-to-twitter-manager.php:446
351
+ msgid "Authors have individual Twitter accounts"
352
+ msgstr "作者有独立的Twitter账户"
353
+
354
+ #: wp-to-twitter-manager.php:446
355
+ msgid "Each author can set their own Twitter username and password in their user profile. Their posts will be sent to their own Twitter accounts."
356
+ msgstr "每一个作者可以设置自己独立的Twitter账户信息。他们的日志将会同步至到他们自己的Twitter帐号中。"
357
+
358
+ #: wp-to-twitter-manager.php:450
359
+ msgid "Set your preferred URL Shortener"
360
+ msgstr "设置你喜欢的URL缩短服务商"
361
+
362
+ #: wp-to-twitter-manager.php:453
363
+ msgid "Use <strong>Cli.gs</strong> for my URL shortener."
364
+ msgstr "使用<strong>Cli.gs</strong>来为我缩短URL。"
365
+
366
+ #: wp-to-twitter-manager.php:454
367
+ msgid "Use <strong>Bit.ly</strong> for my URL shortener."
368
+ msgstr "使用<strong>Bit.ly</strong>来为我缩短URL。"
369
+
370
+ #: wp-to-twitter-manager.php:455
371
+ msgid "Use <strong>WordPress</strong> as a URL shortener."
372
+ msgstr "使用<strong>Wordpress</strong>来缩短URL。"
373
+
374
+ #: wp-to-twitter-manager.php:456
375
+ msgid "Don't shorten URLs."
376
+ msgstr "不要缩短URL。"
377
+
378
+ #: wp-to-twitter-manager.php:457
379
+ msgid "Using WordPress as a URL shortener will send URLs to Twitter in the default URL format for WordPress: <code>http://domain.com/subdir/?p=123</code>. Google Analytics is not available when using WordPress shortened URLs."
380
+ msgstr "使用Wordpress提供的URL缩短服务,地址将会自动被格式化为<code>http://domain.com/subdir/?p=123</code>。同时,无法使用Google Analytics来提供跟踪。"
381
+
382
+ #: wp-to-twitter-manager.php:462
383
+ msgid "Save WP->Twitter Options"
384
+ msgstr "保存 WP to Twitter 选项"
385
+
386
+ #: wp-to-twitter-manager.php:468
387
+ msgid "Your Twitter account details"
388
+ msgstr "你Twitter账户的细节"
389
+
390
+ #: wp-to-twitter-manager.php:475
391
+ msgid "Your Twitter username:"
392
+ msgstr "你的Twitter用户名:"
393
+
394
+ #: wp-to-twitter-manager.php:479
395
+ msgid "Your Twitter password:"
396
+ msgstr "你的Twitter的密码:"
397
+
398
+ #: wp-to-twitter-manager.php:479
399
+ msgid "(<em>Saved</em>)"
400
+ msgstr "(<em>已保存</em>)"
401
+
402
+ #: wp-to-twitter-manager.php:483
403
+ msgid "Save Twitter Login Info"
404
+ msgstr "保存Twitter登录信息"
405
+
406
+ #: wp-to-twitter-manager.php:483
407
+ msgid "&raquo; <small>Don't have a Twitter account? <a href='http://www.twitter.com'>Get one for free here</a>"
408
+ msgstr "&raquo; <small>还没有Twitter账户? 快来<a href='http://www.twitter.com'>这里</a>免费获取一个吧。"
409
+
410
+ #: wp-to-twitter-manager.php:487
411
+ msgid "Your Cli.gs account details"
412
+ msgstr "你的Cli.gs账户信息:"
413
+
414
+ #: wp-to-twitter-manager.php:494
415
+ msgid "Your Cli.gs <abbr title='application programming interface'>API</abbr> Key:"
416
+ msgstr "你Cli.gs<abbr title='应用程序接口'>API</abbr> Key:"
417
+
418
+ #: wp-to-twitter-manager.php:500
419
+ msgid "Don't have a Cli.gs account or Cligs API key? <a href='http://cli.gs/user/api/'>Get one free here</a>!<br />You'll need an API key in order to associate the Cligs you create with your Cligs account."
420
+ msgstr "你还没有Cli.gs账户或者Cli.gs API Key么? 那快来<a href='http://cli.gs/user/api/'>这里</a>免费获取一个吧!<br />如果你需要关联你的Cli.gs账户,你还需要一个API Key。"
421
+
422
+ #: wp-to-twitter-manager.php:505
423
+ msgid "Your Bit.ly account details"
424
+ msgstr "你的Bit.ly账户信息"
425
+
426
+ #: wp-to-twitter-manager.php:510
427
+ msgid "Your Bit.ly username:"
428
+ msgstr "你Bit.ly用户名:"
429
+
430
+ #: wp-to-twitter-manager.php:514
431
+ msgid "Your Bit.ly <abbr title='application programming interface'>API</abbr> Key:"
432
+ msgstr "你Bit.ly<abbr title='应用程序接口'>API</abbr> Key:"
433
+
434
+ #: wp-to-twitter-manager.php:521
435
+ msgid "Save Bit.ly API Key"
436
+ msgstr "保存Bit.ly API Key"
437
+
438
+ #: wp-to-twitter-manager.php:521
439
+ msgid "Clear Bit.ly API Key"
440
+ msgstr "清除Bit.ly API Key"
441
+
442
+ #: wp-to-twitter-manager.php:521
443
+ msgid "A Bit.ly API key and username is required to shorten URLs via the Bit.ly API and WP to Twitter."
444
+ msgstr "当通过Bit.ly API缩短URL时,需要Bit.ly的API Key和用户名。"
445
+
446
+ #: wp-to-twitter-manager.php:530
447
+ msgid "Check Support"
448
+ msgstr "查看支持"
449
+
450
+ #: wp-to-twitter-manager.php:530
451
+ msgid "Check whether your server supports WP to Twitter's queries to the Twitter and URL shortening APIs."
452
+ msgstr "检查你的服务器是否支持WP to Twitter请求Twitter和短URL功能的API。"
453
+
454
+ #: wp-to-twitter-manager.php:538
455
+ msgid "Need help?"
456
+ msgstr "需要帮助?"
457
+
458
+ #: wp-to-twitter-manager.php:539
459
+ msgid "Visit the <a href='http://www.joedolson.com/articles/wp-to-twitter/'>WP to Twitter plugin page</a>."
460
+ msgstr "访问<a href='http://www.joedolson.com/articles/wp-to-twitter/'>WP to Twitter 插件的主页</a>."
461
+
462
+ #. #-#-#-#-# plugin.pot (PACKAGE VERSION) #-#-#-#-#
463
+ #. Plugin Name of an extension
464
+ #: wp-to-twitter.php:761
465
+ msgid "WP to Twitter"
466
+ msgstr "WP to Twitter"
467
+
468
+ #: wp-to-twitter.php:806
469
+ msgid "Twitter Post"
470
+ msgstr "推"
471
+
472
+ #: wp-to-twitter.php:811
473
+ msgid " characters.<br />Twitter posts are a maximum of 140 characters; if your Cli.gs URL is appended to the end of your document, you have 119 characters available. You can use <code>#url#</code>, <code>#title#</code>, <code>#post#</code>, <code>#category#</code>, <code>#date#</code>, or <code>#blog#</code> to insert the shortened URL, post title, the first category selected, the post date, or a post excerpt or blog name into the Tweet."
474
+ msgstr " 字符。<br />推不能超过140个字符;当Cli.gs的短URL在最后时,你还剩119个字。你可以在推中使用<code>#url#</code>,<code>#title#</code>,<code>#post#</code>,<code>#date#</code>或者<code>#blog#</code>来插入一个短URL,日志标题,第一个分类,发布日期,日志摘要或者Blog名称。"
475
+
476
+ #: wp-to-twitter.php:811
477
+ msgid "Make a Donation"
478
+ msgstr "捐助"
479
+
480
+ #: wp-to-twitter.php:814
481
+ msgid "Don't Tweet this post."
482
+ msgstr "不要将这篇日志同步至Twitter"
483
+
484
+ #: wp-to-twitter.php:863
485
+ msgid "WP to Twitter User Settings"
486
+ msgstr "WP to Twitter 用户设置"
487
+
488
+ #: wp-to-twitter.php:867
489
+ msgid "Use My Twitter Account"
490
+ msgstr "使用我的Twitter账户"
491
+
492
+ #: wp-to-twitter.php:868
493
+ msgid "Select this option if you would like your posts to be Tweeted into your own Twitter account with no @ references."
494
+ msgstr "如果你想同步日志到Twitter,但不使用@通知任何人,那快来选中这个选项吧。"
495
+
496
+ #: wp-to-twitter.php:869
497
+ msgid "Tweet my posts into my Twitter account with an @ reference to the site's main Twitter account."
498
+ msgstr "如果你想同步日志到Twitter,并且使用@通知Blog的主Twitter账户,那么就选中这个选项吧。"
499
+
500
+ #: wp-to-twitter.php:870
501
+ msgid "Tweet my posts into the main site Twitter account with an @ reference to my username. (Password not required with this option.)"
502
+ msgstr "同步日志使用Blog的主Twitter账户,并且使用@通知我自己的账户(不需要提供密码)。"
503
+
504
+ #: wp-to-twitter.php:873
505
+ msgid "Your Twitter Username"
506
+ msgstr "你的Twitter用户名"
507
+
508
+ #: wp-to-twitter.php:874
509
+ msgid "Enter your own Twitter username."
510
+ msgstr "输入你的Twitter用户名。"
511
+
512
+ #: wp-to-twitter.php:877
513
+ msgid "Your Twitter Password"
514
+ msgstr "你的Twitter密码"
515
+
516
+ #: wp-to-twitter.php:878
517
+ msgid "Enter your own Twitter password."
518
+ msgstr "输入你的Twitter密码。"
519
+
520
+ #: wp-to-twitter.php:997
521
+ msgid "<p>Couldn't locate the settings page.</p>"
522
+ msgstr "<p>不能确定设置页面的位置。</p>"
523
+
524
+ #: wp-to-twitter.php:1002
525
+ msgid "Settings"
526
+ msgstr "设置"
527
+
528
+ #. Plugin URI of an extension
529
+ msgid "http://www.joedolson.com/articles/wp-to-twitter/"
530
+ msgstr "http://www.joedolson.com/articles/wp-to-twitter/"
531
+
532
+ #. Description of an extension
533
+ msgid "Updates Twitter when you create a new blog post or add to your blogroll using Cli.gs. With a Cli.gs API key, creates a clig in your Cli.gs account with the name of your post as the title."
534
+ msgstr "当你发布新日志或者添加新链接的时候,使用Cli.gs缩短链接,并且同步至Twitter。使用一个Cli.gs API Key,可以使用日志名作为标题来创建一个Cli.gs短链接。"
535
+
536
+ #. Author of an extension
537
+ msgid "Joseph Dolson"
538
+ msgstr "Joseph Dolson"
539
+
540
+ #. Author URI of an extension
541
+ msgid "http://www.joedolson.com/"
542
+ msgstr "http://www.joedolson.com/"
543
+
544
+ #~ msgid ""
545
+ #~ "The query to the URL shortener API failed, and your URL was not shrunk. "
546
+ #~ "The full post URL was attached to your Tweet."
547
+ #~ msgstr ""
548
+ #~ "Die Verbindung zum URL Kürzer API schlug fehl und deine URL wurde nicht "
549
+ #~ "verkürzt. Es wurde die normale URL wurde im Tweet veröffentlicht."
550
+
551
+ #~ msgid "Add_new_tag"
552
+ #~ msgstr "Tag_hinzufügen"
553
+
554
+ #~ msgid "This plugin may not work in your server environment."
555
+ #~ msgstr ""
556
+ #~ "Dieses Plugin funktioniert vielleicht nicht in deiner Server Umgebung."
557
+
558
+ #~ msgid "Wordpress to Twitter Publishing Options"
559
+ #~ msgstr "Wordpress to Twitter Veröffentlichungs-Optionen"
560
+
561
+ #~ msgid "Provide link to blog?"
562
+ #~ msgstr "Link zum Blog hinzufügen?"
563
+
564
+ #~ msgid "Use <strong>link title</strong> for Twitter updates"
565
+ #~ msgstr ""
566
+ #~ "Verwende den <strong>Link Namen</strong> für Twitter Aktualisierungen"
567
+
568
+ #~ msgid "Use <strong>link description</strong> for Twitter updates"
569
+ #~ msgstr ""
570
+ #~ "Verwende die <strong>Link Beschreibung</strong> für Twitter "
571
+ #~ "Aktualisierungen"
572
+
573
+ #~ msgid ""
574
+ #~ "Text for new link updates (used if title/description isn't available.):"
575
+ #~ msgstr ""
576
+ #~ "Text für neuen Link (wenn kein Namen oder Beschreibung vorhanden sind.):"
577
+
578
+ #~ msgid "Custom text prepended to Tweets:"
579
+ #~ msgstr "Eigener Text zu Beginn des Tweets:"
580
+
581
+ #~ msgid ""
582
+ #~ "Your server appears to support the required PHP functions and classes for "
583
+ #~ "WP to Twitter to function."
584
+ #~ msgstr ""
585
+ #~ "Es scheint als würde dein Server die benötigten PHP Funktion und Klassen "
586
+ #~ "für WP to Twitter bereitstellen."
wp-to-twitter.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP to Twitter
4
  Plugin URI: http://www.joedolson.com/articles/wp-to-twitter/
5
  Description: Updates Twitter when you create a new blog post or add to your blogroll using Cli.gs. With a Cli.gs API key, creates a clig in your Cli.gs account with the name of your post as the title.
6
- Version: 2.1.3
7
  Author: Joseph Dolson
8
  Author URI: http://www.joedolson.com/
9
  */
@@ -23,16 +23,19 @@ Author URI: http://www.joedolson.com/
23
  along with this program; if not, write to the Free Software
24
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
26
- global $wp_version,$version,$jd_plugin_url,$jdwp_api_post_status;
27
- $version = "2.1.3";
 
 
 
 
28
  $plugin_dir = basename(dirname(__FILE__));
29
  load_plugin_textdomain( 'wp-to-twitter', 'wp-content/plugins/' . $plugin_dir, $plugin_dir );
30
 
31
- if ( get_option('jd_api_post_status') == '' ) {
32
  $jdwp_api_post_status = "http://twitter.com/statuses/update.json";
33
- } else {
34
- $jdwp_api_post_status = get_option( 'jd_api_post_status' );
35
- }
36
 
37
  $jd_plugin_url = "http://www.joedolson.com/articles/wp-to-twitter/";
38
  $jd_donate_url = "http://www.joedolson.com/donate.php";
@@ -40,7 +43,6 @@ $jd_donate_url = "http://www.joedolson.com/donate.php";
40
  if ( !defined( 'WP_PLUGIN_DIR' ) ) {
41
  define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );
42
  }
43
- //require_once( ABSPATH.WPINC.'/class-snoopy.php' );
44
 
45
  // Check whether a supported version is in use.
46
  $exit_msg='WP to Twitter requires WordPress 2.7 or a more recent version. <a href="http://codex.wordpress.org/Upgrading_WordPress">Please update your WordPress version!</a>';
@@ -48,9 +50,10 @@ $exit_msg='WP to Twitter requires WordPress 2.7 or a more recent version. <a hre
48
  if ( version_compare( $wp_version,"2.7","<" )) {
49
  exit ($exit_msg);
50
  }
51
-
52
- // include service functions
53
- require_once( WP_PLUGIN_DIR . '/wp-to-twitter/functions.php' );
 
54
 
55
  function wptotwitter_activate() {
56
  global $version;
@@ -74,33 +77,27 @@ function external_or_permalink( $post_ID ) {
74
  return ( $ex_link ) ? $ex_link : $perma_link;
75
  }
76
 
77
- // This function performs the API post to Twitter
78
-
79
- function jd_doTwitterAPIPost( $twit, $authID=FALSE, $service="basic" ) {
80
- global $version, $jd_plugin_url, $jdwp_api_post_status;
81
  //check if user login details have been entered on admin page
82
  if ($authID == FALSE || ( get_option( 'jd_individual_twitter_users' ) != '1' ) ) {
83
- $thisuser = get_option( 'twitterlogin' );
84
- $thispass = stripcslashes( get_option( 'twitterpw' ) );
85
  } else {
86
  if ( ( get_usermeta( $authID, 'wp-to-twitter-enable-user' ) == 'true' || get_usermeta( $authID, 'wp-to-twitter-enable-user' ) == 'userTwitter' || get_usermeta( $authID, 'wp-to-twitter-enable-user' ) == 'userAtTwitter' ) && ( get_usermeta( $authID, 'wp-to-twitter-user-username' ) != "" && get_usermeta( $authID, 'wp-to-twitter-user-password' ) != "" ) ) {
87
  $thisuser = get_usermeta( $authID, 'wp-to-twitter-user-username' );
88
  $thispass = stripcslashes( get_usermeta( $authID, 'wp-to-twitter-user-password' ) );
89
  } else {
90
- $thisuser = get_option( 'twitterlogin' );
91
- $thispass = stripcslashes( get_option( 'twitterpw' ) );
92
  }
93
  }
94
  if ($thisuser == '' || $thispass == '' || $twit == '' ) {
95
  return FALSE;
96
  } else {
97
  if ( $service == "Twitter" ) {
98
- $api_url = "http://twitter.com/statuses/update.json";
99
- $thisuser = get_option( 'x-twitterlogin' );
100
- $thispass = stripcslashes( get_option( 'x-twitterpw' ) );
101
- } else {
102
- $api_url = $jdwp_api_post_status;
103
- }
104
  $twit = urldecode( $twit );
105
  $body = array( 'status'=>$twit, 'source'=>'wptotwitter' );
106
  $headers = array( 'Authorization' => 'Basic '.base64_encode("$thisuser:$thispass"),
@@ -108,18 +105,62 @@ function jd_doTwitterAPIPost( $twit, $authID=FALSE, $service="basic" ) {
108
  'X-Twitter-Client-Version' => $version,
109
  'X-Twitter-Client-URL' => 'http://www.joedolson.com/scripts/wp-to-twitter.xml'
110
  );
111
- $result = jd_fetch_url( $jdwp_api_post_status, 'POST', $body, $headers, 'full' );
112
  // errors will be handled on receipt of $result
113
- return $result;
 
 
 
 
114
  }
115
  }
116
 
117
- function jd_truncate_tweet( $sentence, $thisposttitle, $thisblogtitle, $thispostexcerpt, $thisposturl, $thispostcategory, $thisdate, $post_ID, $authID=FALSE ) {
118
- if ( get_option('jd-twitter-char-limit') == '' ) {
119
- $post_length = 140;
 
 
 
 
120
  } else {
121
- $post_length = (int) get_option('jd-twitter-char-limit');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  }
 
 
 
 
123
  $sentence = trim($sentence);
124
  $thisposttitle = trim($thisposttitle);
125
  $thisblogtitle = trim($thisblogtitle);
@@ -131,26 +172,25 @@ $thispostcategory = trim($thispostcategory);
131
  $thisauthor = get_the_author_meta( 'display_name',$post_author );
132
 
133
  if ( get_option( 'jd_individual_twitter_users' ) == 1 ) {
134
- if ( get_usermeta( $authID, 'wp-to-twitter-enable-user' ) == 'userAtTwitter' ) {
135
- $at_append = "@" . get_option('twitterlogin');
136
- } else if ( get_usermeta( $authID, 'wp-to-twitter-enable-user' ) == 'mainAtTwitter' ) {
137
- $at_append = "@" . get_usermeta( $authID, 'wp-to-twitter-user-username' );
138
- } else {
139
- $at_append = "";
140
  }
141
  } else {
142
  $at_append = "";
143
  }
 
144
  $sentence = $at_append . " " . $sentence;
145
-
146
- if ( get_option( 'use_tags_as_hashtags' ) == '1' ) {
147
  $sentence = $sentence . " " . generate_hash_tags( $post_ID );
148
  }
149
 
150
- if ( get_option( 'jd_twit_prepend' ) != "" ) {
151
  $sentence = get_option( 'jd_twit_prepend' ) . " " . $sentence;
152
  }
153
- if ( get_option( 'jd_twit_append' ) != "" ) {
154
  $sentence = $sentence . " " . get_option( 'jd_twit_append' );
155
  }
156
  if ( mb_substr( $thispostexcerpt, -1 ) == ";" || mb_substr( $thispostexcerpt, -1 ) == "," || mb_substr( $thispostexcerpt, -1 ) == ":" ) {
@@ -191,70 +231,77 @@ if ( $str_length > $post_length ) {
191
  }
192
  }
193
  }
194
- $sentence = $post_sentence;
195
  return $sentence;
196
  }
197
 
198
- function jd_shorten_link( $thispostlink, $thisposttitle, $post_ID ) {
199
- $cligsapi = urlencode( trim ( get_option( 'cligsapi' ) ) );
200
- $bitlyapi = urlencode( trim ( get_option( 'bitlyapi' ) ) );
201
- $bitlylogin = urlencode( trim ( get_option( 'bitlylogin' ) ) );
202
- $yourlslogin = urlencode( trim ( get_option( 'yourlslogin') ) );
203
  $yourlsapi = stripcslashes( get_option( 'yourlsapi' ) );
204
-
205
- if ( ( get_option('twitter-analytics-campaign') != '' ) && ( get_option('use-twitter-analytics') == 1 || get_option('use_dynamic_analytics') == 1 ) ) {
206
- if ( get_option('use_dynamic_analytics') == '1' ) {
207
- $campaign_type = get_option('jd_dynamic_analytics');
208
- if ($campaign_type == "post_category") {
209
- $category = get_the_category( $post_ID );
210
- $this_campaign = $category[0]->cat_name;
211
- } else if ($campaign_type == "post_ID") {
212
- $this_campaign = $post_ID;
213
- } else if ($campaign_type == "post_title") {
214
- $post = get_post( $post_ID );
215
- $this_campaign = $post->post_title;
 
 
 
 
 
 
 
 
 
 
216
  } else {
217
- $post = get_post( $post_ID );
218
- $post_author = $post->post_author;
219
- $this_campaign = get_the_author_meta( 'user_login',$post_author );
220
  }
221
- } else {
222
- $this_campaign = get_option('twitter-analytics-campaign');
223
- }
224
- $search = array(" ","&","?");
225
- $this_campaign = str_replace($search,'',$this_campaign);
226
- if ( strpos( $thispostlink,"%3F" ) === FALSE) {
227
- $thispostlink .= urlencode("?");
228
- } else {
229
- $thispostlink .= urlencode("&");
230
  }
231
- $thispostlink .= urlencode("utm_campaign=$this_campaign&utm_medium=twitter&utm_source=twitter");
232
  }
 
 
233
  // custom word setting
234
- if ( get_option( 'jd_keyword_format' ) == '1' ) {
235
- $keyword_format = "$post_ID";
236
- } else {
237
- $keyword_format = '';
238
- }
239
  // Generate and grab the short url
240
  switch ( get_option( 'jd_shortener' ) ) {
241
  case 0:
242
  case 1:
243
  $shrink = jd_fetch_url( "http://cli.gs/api/v1/cligs/create?t=wphttp&appid=WP-to-Twitter&url=".$thispostlink."&title=".$thisposttitle."&key=".$cligsapi );
 
 
244
  break;
245
  case 2: // updated to v3 3/31/2010
246
  $decoded = jd_remote_json( "http://api.bit.ly/v3/shorten?longUrl=".$thispostlink."&login=".$bitlylogin."&apiKey=".$bitlyapi."&format=json" );
247
  if ($decoded) {
248
  if ($decoded['status_code'] != 200) {
249
- $shrink = false;
250
- $error .= $decoded['status_txt'];
251
- update_option( 'wp_bitly_error',$error );
252
  } else {
253
  $shrink = $decoded['data']['url'];
254
  }
255
  } else {
256
  $shrink = false;
257
- }
 
 
258
  break;
259
  case 3:
260
  $shrink = urldecode($thispostlink);
@@ -295,11 +342,13 @@ function jd_shorten_link( $thispostlink, $thisposttitle, $post_ID ) {
295
  }
296
  break;
297
  }
298
- if ( $shrink === FALSE || ( stristr( $shrink, "http://" ) === FALSE )) {
299
- update_option( 'wp_url_failure','1' );
300
- $shrink = $thispostlink;
301
- } else {
302
- update_option( 'wp_url_failure','0' );
 
 
303
  }
304
  return $shrink;
305
  }
@@ -339,7 +388,7 @@ function jd_expand_yourl( $short_url, $remote ) {
339
  }
340
 
341
  function in_allowed_category( $array ) {
342
- $allowed_categories = unserialize( get_option( 'tweet_categories' ) );
343
  if ( is_array( $array ) && is_array( $allowed_categories ) ) {
344
  $common = @array_intersect( $array,$allowed_categories );
345
  if ( count( $common ) >= 1 ) {
@@ -352,21 +401,16 @@ function in_allowed_category( $array ) {
352
  }
353
  }
354
 
355
- function jd_twit( $post_ID ) {
356
- $jd_tweet_this = get_post_meta( $post_ID, 'jd_tweet_this', TRUE);
357
- if ( $jd_tweet_this == "yes" ) {
358
- $get_post_info = get_post( $post_ID );
359
- // get post author
360
- $authID = $get_post_info->post_author;
361
- //get post date
362
  $postdate = $get_post_info->post_date;
363
- if (get_option('jd_date_format')=='') {
364
- $dateformat = get_option('date_format');
365
- } else {
366
- $dateformat = get_option('jd_date_format');
367
- }
368
  $thisdate = mysql2date( $dateformat,$postdate );
369
- // get first category
 
370
  $category = null;
371
  $categories = get_the_category( $post_ID );
372
  if ( $categories > 0 ) {
@@ -375,69 +419,69 @@ function jd_twit( $post_ID ) {
375
  foreach ($categories AS $cat) {
376
  $category_ids[] = $cat->term_id;
377
  }
378
-
 
379
  $excerpt_length = get_option( 'jd_post_excerpt' );
380
- if ( trim( $get_post_info->post_excerpt ) == "" ) {
381
- $thispostexcerpt = @mb_substr( strip_tags($get_post_info->post_content), 0, $excerpt_length );
382
- } else {
383
- $thispostexcerpt = @mb_substr( strip_tags($get_post_info->post_excerpt), 0, $excerpt_length );
384
- }
385
- $thisposttitle = urlencode( stripcslashes( strip_tags( $get_post_info->post_title ) ) );
386
  if ($thisposttitle == "") {
387
- $thisposttitle = urlencode( stripcslashes( strip_tags( $_POST['title'] ) ) );
388
  }
389
- $thispostlink = urlencode( external_or_permalink( $post_ID ) );
390
- $thisblogtitle = urlencode( get_bloginfo( 'name' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
391
  $sentence = '';
392
- $customTweet = stripcslashes( $_POST['jd_twitter'] );
393
- $oldClig = get_post_meta( $post_ID, 'wp_jd_clig', TRUE );
394
- if (($get_post_info->post_status == 'publish' || $_POST['publish'] == 'Publish') && !( ( $_POST['prev_status'] == 'publish' ) || ($_POST['original_post_status'] == 'publish') ) ) {
395
- // publish new post
396
  if ( get_option( 'newpost-published-update' ) == '1' ) {
397
- if ($customTweet != "") {
398
- $sentence = $customTweet;
399
- } else {
400
- $sentence = stripcslashes( get_option( 'newpost-published-text' ) );
401
- }
402
- if ($oldClig != '') {
403
- $shrink = $oldClig;
404
- } else {
405
- $shrink = jd_shorten_link( $thispostlink, $thisposttitle, $post_ID );
406
- // Stores the posts CLIG in a custom field for later use as needed.
407
- store_url( $post_ID, $shrink );
408
- }
409
- $sentence = custom_shortcodes( $sentence, $post_ID );
410
- $sentence = jd_truncate_tweet( $sentence, $thisposttitle, $thisblogtitle, $thispostexcerpt, $shrink, $category, $thisdate, $post_ID, $authID );
411
  }
412
- } else if ( (( $_POST['originalaction'] == "editpost" ) && ( ( $_POST['prev_status'] == 'publish' ) || ($_POST['original_post_status'] == 'publish') ) ) && $get_post_info->post_status == 'publish') {
413
  // if this is an old post and editing updates are enabled
414
  if ( get_option( 'oldpost-edited-update') == '1' ) {
415
- if ($customTweet != "") {
416
- $sentence = $customTweet;
417
- } else {
418
- $sentence = stripcslashes( get_option( 'oldpost-edited-text' ) );
419
- }
420
- if ( $oldClig != '' ) {
421
- $old_post_link = $oldClig;
422
- } else {
423
- $old_post_link = jd_shorten_link( $thispostlink, $thisposttitle, $post_ID );
424
- store_url( $post_ID, $old_post_link );
425
- }
426
- $sentence = custom_shortcodes( $sentence, $post_ID );
427
- $sentence = jd_truncate_tweet( $sentence, $thisposttitle, $thisblogtitle, $thispostexcerpt, $old_post_link, $category, $thisdate, $post_ID, $authID );
428
- }
429
- }
430
- if ( $sentence != '' ) {
431
-
432
- if ( get_option('limit_categories') == '0' || in_allowed_category( $category_ids )) {
433
- $sendToTwitter = jd_doTwitterAPIPost( $sentence, $authID );
434
- if ( get_option( 'jd_use_both_services' ) == '1' ) {
435
- $sendToTwitter2 = jd_doTwitterAPIPost( $sentence, $authID, $service="Twitter" );
436
  }
437
- }
438
- if ( $sendToTwitter['response']['code'] != 200 ) {
439
- update_post_meta( $post_ID,'jd_wp_twitter',urldecode( $sentence ) );
440
- update_option( 'wp_twitter_failure','1' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
441
  }
442
  }
443
  }
@@ -445,80 +489,40 @@ function jd_twit( $post_ID ) {
445
  }
446
 
447
  function jd_twit_page( $post_ID ) {
448
- $jd_tweet_this = get_post_meta( $post_ID, 'jd_tweet_this', TRUE);
449
- if ( $jd_tweet_this == "yes" ) {
450
- $get_post_info = get_post( $post_ID );
451
- $authID = $get_post_info->post_author;
452
- //get post date
453
- $postdate = $get_post_info->post_date;
454
- if (get_option('jd_date_format')=='') {
455
- $dateformat = get_option('date_format');
456
- } else {
457
- $dateformat = get_option('jd_date_format');
458
- }
459
- $thisdate = mysql2date( $dateformat,$postdate );
460
- $excerpt_length = get_option( 'jd_post_excerpt' );
461
- if ( trim( $get_post_info->post_excerpt ) == "" ) {
462
- $thispostexcerpt = @mb_substr( strip_tags($get_post_info->post_content), 0, $excerpt_length );
463
- } else {
464
- $thispostexcerpt = @mb_substr( strip_tags($get_post_info->post_excerpt), 0, $excerpt_length );
465
- }
466
- $thisposttitle = urlencode( stripcslashes( strip_tags( $_POST['post_title'] ) ) );
467
- if ($thisposttitle == "") {
468
- $thisposttitle = urlencode( stripcslashes( strip_tags( $_POST['title'] ) ) );
469
- }
470
- $thispostlink = urlencode( external_or_permalink( $post_ID ) );
471
- $thisblogtitle = urlencode( get_bloginfo( 'name' ) );
472
  $sentence = '';
473
- $customTweet = stripcslashes( $_POST['jd_twitter'] );
474
- $oldClig = get_post_meta( $post_ID, 'wp_jd_clig', TRUE );
475
- if (($get_post_info->post_status == 'publish' || $_POST['publish'] == 'Publish') && ($_POST['prev_status'] == 'draft' || $_POST['original_post_status'] == 'draft')) {
476
- // publish new post
477
  if ( get_option( 'jd_twit_pages' ) == '1' ) {
478
- if ($customTweet != "") {
479
- $sentence = $customTweet;
480
- } else {
481
- $sentence = stripcslashes( get_option( 'newpage-published-text' ) );
482
- }
483
- if ($oldClig != '') {
484
- $shrink = $oldClig;
485
- } else {
486
- $shrink = jd_shorten_link( $thispostlink, $thisposttitle, $post_ID );
487
- // Stores the posts CLIG in a custom field for later use as needed.
488
- store_url( $post_ID, $shrink );
489
- }
490
- $sentence = custom_shortcodes( $sentence, $post_ID );
491
- $sentence = jd_truncate_tweet( $sentence, $thisposttitle, $thisblogtitle, $thispostexcerpt, $shrink, '',$thisdate, $post_ID, $authID );
492
  }
493
- } else if ( (( $_POST['originalaction'] == "editpost" ) && ( ( $_POST['prev_status'] == 'publish' ) || ($_POST['original_post_status'] == 'publish') ) ) && $get_post_info->post_status == 'publish') {
494
- // if this is an old page and editing updates are enabled
495
  if ( get_option( 'jd_twit_edited_pages' ) == '1' ) {
496
- if ($customTweet != "") {
497
- $sentence = $customTweet;
498
- } else {
499
- $sentence = stripcslashes( get_option( 'oldpage-edited-text' ) );
500
- }
501
- if ($oldClig != '') {
502
- $shrink = $oldClig;
503
- } else {
504
- $shrink = jd_shorten_link( $thispostlink, $thisposttitle, $post_ID );
505
- }
506
- store_url( $post_ID, $shrink );
507
- $sentence = custom_shortcodes( $sentence, $post_ID );
508
- $sentence = jd_truncate_tweet( $sentence, $thisposttitle, $thisblogtitle, $thispostexcerpt, $shrink, '',$thisdate, $post_ID, $authID );
509
  }
510
  }
 
 
 
 
 
 
 
 
 
 
 
511
  if ( $sentence != '' ) {
512
- if ( get_option('limit_categories') == '0' || in_allowed_category( $category_ids )) {
513
- $sendToTwitter = jd_doTwitterAPIPost( $sentence, $authID );
514
- if ( get_option('jd_use_both_services') == '1' ) {
515
- $sendToTwitter2 = jd_doTwitterAPIPost( $sentence, $authID, $service="Twitter" );
516
- }
517
- }
518
-
519
- if ( $sendToTwitter['response']['code'] != 200 ) {
520
- update_post_meta( $post_ID,'jd_wp_twitter',urldecode( $sentence ) );
521
- update_option( 'wp_twitter_failure','1' );
522
  }
523
  }
524
  }
@@ -530,11 +534,10 @@ function jd_twit_link( $link_ID ) {
530
  global $version;
531
  $thislinkprivate = $_POST['link_visible'];
532
  if ($thislinkprivate != 'N') {
533
- $thislinkname = urlencode( stripcslashes( $_POST['link_name'] ) );
534
- $thispostlink = urlencode( $_POST['link_url'] ) ;
535
- $thislinkdescription = urlencode( stripcslashes( $_POST['link_description'] ) );
536
  $sentence = stripcslashes( get_option( 'newlink-published-text' ) );
537
-
538
  if ( get_option( 'jd-use-link-description' ) == '1' || get_option ( 'jd-use-link-title' ) == '1' ) {
539
  if ( get_option( 'jd-use-link-description' ) == '1' && get_option ( 'jd-use-link-title' ) == '0' ) {
540
  $sentence = $sentence . ' ' . $thislinkdescription;
@@ -548,21 +551,15 @@ global $version;
548
  if (mb_strlen( $sentence ) > 120) {
549
  $sentence = mb_substr($sentence,0,116) . '...';
550
  }
551
- // Generate and grab the clig using the Cli.gs API
552
- $shrink = jd_shorten_link( $thispostlink, $thislinkname, $post_ID );
553
  if ( stripos($sentence,"#url#") === FALSE ) {
554
  $sentence = $sentence . " " . $shrink;
555
  } else {
556
  $sentence = str_ireplace("#url#",$shrink,$sentence);
557
  }
558
  if ( $sentence != '' ) {
559
- if ( get_option('limit_categories') == '0' || in_allowed_category( $category_ids )) {
560
- $sendToTwitter = jd_doTwitterAPIPost( $sentence, $authID );
561
- if ( get_option('jd_use_both_services') == '1' ) {
562
- $sendToTwitter2 = jd_doTwitterAPIPost( $sentence, $authID, $service="Twitter" );
563
- }
564
- }
565
- if ($sendToTwitter['response']['code'] != 200) {
566
  update_option('wp_twitter_failure','2');
567
  }
568
  }
@@ -575,62 +572,29 @@ global $version;
575
  // HANDLES SCHEDULED POSTS
576
  function jd_twit_future( $post_ID ) {
577
  $post_ID = $post_ID->ID;
578
-
579
- $get_post_info = get_post( $post_ID );
580
- $jd_tweet_this = get_post_meta( $post_ID, 'jd_tweet_this', TRUE );
581
- $post_status = $get_post_info->post_status;
582
- //get post date
583
- $postdate = $get_post_info->post_date;
584
- if (get_option('jd_date_format')=='') {
585
- $dateformat = get_option('date_format');
586
- } else {
587
- $dateformat = get_option('jd_date_format');
588
- }
589
- $thisdate = mysql2date( $dateformat,$postdate );
590
- // get first category
591
- $category = null;
592
- $categories = get_the_category( $post_ID );
593
- if ( $categories > 0 ) {
594
- $category = $categories[0]->cat_name;
595
- }
596
- foreach ($categories AS $cat) {
597
- $category_ids[] = $cat->term_id;
598
- }
599
- if ( $jd_tweet_this == "yes" ) {
600
- $thispostlink = urlencode( external_or_permalink( $post_ID ) );
601
- $thisposttitle = urlencode( strip_tags( $get_post_info->post_title ) );
602
- $authID = $get_post_info->post_author;
603
- $thisblogtitle = urlencode( get_bloginfo( 'name' ) );
604
- $excerpt_length = get_option( 'jd_post_excerpt' );
605
- if ( trim( $get_post_info->post_excerpt ) == "" ) {
606
- $thispostexcerpt = @mb_substr( strip_tags($get_post_info->post_content), 0, $excerpt_length );
607
- } else {
608
- $thispostexcerpt = @mb_substr( strip_tags($get_post_info->post_excerpt), 0, $excerpt_length );
609
- }
610
  $sentence = '';
611
- $customTweet = get_post_meta( $post_ID, 'jd_twitter', TRUE );
612
  $sentence = stripcslashes(get_option( 'newpost-published-text' ));
613
- $shrink = jd_shorten_link( $thispostlink, $thisposttitle, $post_ID );
614
  // Stores the post's short URL in a custom field for later use as needed.
615
  store_url($post_ID, $shrink);
616
  if ( $customTweet != "" ) {
617
  $sentence = $customTweet;
618
  }
619
  $sentence = custom_shortcodes( $sentence, $post_ID );
620
- $sentence = jd_truncate_tweet( $sentence, $thisposttitle, $thisblogtitle, $thispostexcerpt, $shrink, $category, $thisdate, $post_ID, $authID );
621
 
622
  if ( $sentence != '' ) {
623
- if ( get_option('limit_categories') == '0' || in_allowed_category( $category_ids )) {
624
- $sendToTwitter = jd_doTwitterAPIPost( $sentence, $authID );
625
- if ( get_option('jd_use_both_services') == '1' ) {
626
- $sendToTwitter2 = jd_doTwitterAPIPost( $sentence, $authID, $service="Twitter" );
627
- }
628
- }
629
- if ($sendToTwitter['response']['code'] != 200) {
630
- add_post_meta( $post_ID,'jd_wp_twitter',urldecode($sentence) );
631
- update_option( 'wp_twitter_failure','1' );
632
  }
633
- }
634
  return $post_ID;
635
  }
636
  } // END jd_twit_future
@@ -638,46 +602,23 @@ function jd_twit_future( $post_ID ) {
638
  // Tweet from QuickPress (no custom fields, so can't control whether to tweet.)
639
  function jd_twit_quickpress( $post_ID ) {
640
  $post_ID = $post_ID->ID;
641
- $get_post_info = get_post( $post_ID );
642
- $post_status = $get_post_info->post_status;
643
- $thispostlink = urlencode( external_or_permalink( $post_ID ) );
644
- $thisposttitle = urlencode( strip_tags( $get_post_info->post_title ) );
645
- $authID = $get_post_info->post_author;
646
- //get post date
647
- $postdate = $get_post_info->post_date;
648
- if (get_option('jd_date_format')=='') {
649
- $dateformat = get_option('date_format');
650
- } else {
651
- $dateformat = get_option('jd_date_format');
652
- }
653
- $thisdate = mysql2date( $dateformat,$postdate );
654
- // get first category
655
- $excerpt_length = get_option( 'jd_post_excerpt' );
656
- if ( trim( $get_post_info->post_excerpt ) == "" ) {
657
- $thispostexcerpt = @mb_substr( strip_tags($get_post_info->post_content), 0, $excerpt_length );
658
- } else {
659
- $thispostexcerpt = @mb_substr( strip_tags($get_post_info->post_excerpt), 0, $excerpt_length );
660
- }
661
- $thisblogtitle = urlencode( get_bloginfo( 'name' ) );
662
  $sentence = '';
663
  $sentence = stripcslashes(get_option( 'newpost-published-text' ));
664
- $shrink = jd_shorten_link( $thispostlink, $thisposttitle, $post_ID );
665
  // Stores the posts CLIG in a custom field for later use as needed.
666
  store_url($post_ID, $shrink);
667
  $sentence = custom_shortcodes( $sentence, $post_ID );
668
- $sentence = jd_truncate_tweet( $sentence, $thisposttitle, $thisblogtitle, $thispostexcerpt, $shrink, '', $thisdate, $post_ID, $authID );
669
- if ( $sentence != '' ) {
670
- if ( get_option('limit_categories') == '0' || in_allowed_category( $category_ids )) {
671
- $sendToTwitter = jd_doTwitterAPIPost( $sentence, $authID );
672
- if ( get_option('jd_use_both_services') == '1' ) {
673
- $sendToTwitter2 = jd_doTwitterAPIPost( $sentence, $authID, $service="Twitter" );
674
- }
675
- }
676
- if ($sendToTwitter['response']['code'] != 200) {
677
- add_post_meta( $post_ID,'jd_wp_twitter',urldecode($sentence) );
678
  update_option( 'wp_twitter_failure','1' );
679
  }
680
  }
 
681
  return $post_ID;
682
  } // END jd_twit_quickpress
683
 
@@ -685,57 +626,28 @@ function jd_twit_quickpress( $post_ID ) {
685
  function jd_twit_xmlrpc( $post_ID ) {
686
  $get_post_info = get_post( $post_ID );
687
  $post_status = $get_post_info->post_status;
688
- if ( get_option('oldpost-edited-update') != 1 && get_post_meta ( $post_ID, 'wp_jd_clig', TRUE ) != '' ) {
689
  return;
690
  } else {
691
  if ( get_option('jd_tweet_default') != '1' && get_option('jd_twit_remote') == '1' ) {
692
- $authID = $get_post_info->post_author;
693
- $thispostlink = urlencode( external_or_permalink( $post_ID ) );
694
- $thisposttitle = urlencode( strip_tags( $get_post_info->post_title ) );
695
- //get post date
696
- $postdate = $get_post_info->post_date;
697
- if (get_option('jd_date_format')=='') {
698
- $dateformat = get_option('date_format');
699
- } else {
700
- $dateformat = get_option('jd_date_format');
701
- }
702
- $thisdate = mysql2date( $dateformat,$postdate );
703
- // get first category
704
- $category = null;
705
- $categories = get_the_category( $post_ID );
706
- if ( $categories > 0 ) {
707
- $category = $categories[0]->cat_name;
708
- }
709
- foreach ($categories AS $cat) {
710
- $category_ids[] = $cat->term_id;
711
- }
712
- $excerpt_length = get_option( 'jd_post_excerpt' );
713
- if ( trim( $get_post_info->post_excerpt ) == "" ) {
714
- $thispostexcerpt = @mb_substr( strip_tags($get_post_info->post_content), 0, $excerpt_length );
715
- } else {
716
- $thispostexcerpt = @mb_substr( strip_tags($get_post_info->post_excerpt), 0, $excerpt_length );
717
- }
718
- $thisblogtitle = urlencode( get_bloginfo( 'name' ) );
719
  $sentence = '';
720
  $sentence = stripcslashes(get_option( 'newpost-published-text' ));
721
- $shrink = jd_shorten_link( $thispostlink, $thisposttitle, $post_ID );
722
  // Stores the posts CLIG in a custom field for later use as needed.
723
  store_url($post_ID, $shrink);
724
  // Check the length of the tweet and truncate parts as necessary.
725
  $sentence = custom_shortcodes( $sentence, $post_ID );
726
- $sentence = jd_truncate_tweet( $sentence, $thisposttitle, $thisblogtitle, $thispostexcerpt, $shrink, $category, $thisdate, $post_ID, $authID );
727
 
728
- if ( $sentence != '' ) {
729
- if ( get_option('limit_categories') == '0' || in_allowed_category( $category_ids )) {
730
- $sendToTwitter = jd_doTwitterAPIPost( $sentence, $authID );
731
- if ( get_option('jd_use_both_services') == '1' ) {
732
- $sendToTwitter2 = jd_doTwitterAPIPost( $sentence, $authID, $service="Twitter" );
733
- }
734
- }
735
- if ($sendToTwitter['response']['code'] != 200) {
736
- add_post_meta( $post_ID,'jd_wp_twitter',urldecode($sentence));
737
- update_option('wp_twitter_failure','1');
738
- }
739
  }
740
  }
741
  return $post_ID;
@@ -747,34 +659,34 @@ add_action('admin_menu','jd_add_twitter_outer_box');
747
 
748
  function store_url($post_ID, $url) {
749
  if ( get_option( 'jd_shortener' ) == 0 || get_option( 'jd_shortener' ) == 1) {
750
- if ( get_post_meta ( $post_ID, 'wp_jd_clig', TRUE ) != $url ) {
751
- update_post_meta ( $post_ID, 'wp_jd_clig', $url );
752
  }
753
  } elseif ( get_option( 'jd_shortener' ) == 2 ) {
754
- if ( get_post_meta ( $post_ID, 'wp_jd_bitly', TRUE ) != $url ) {
755
- update_post_meta ( $post_ID, 'wp_jd_bitly', $url );
756
  }
757
  } elseif ( get_option( 'jd_shortener' ) == 3 ) {
758
- if ( get_post_meta ( $post_ID, 'wp_jd_url', TRUE ) != $url ) {
759
- update_post_meta ( $post_ID, 'wp_jd_url', $url );
760
  }
761
  } elseif ( get_option( 'jd_shortener' ) == 4 ) {
762
- if ( get_post_meta ( $post_ID, 'wp_jd_wp', TRUE ) != $url ) {
763
- update_post_meta ( $post_ID, 'wp_jd_wp', $url );
764
  }
765
  } elseif ( get_option( 'jd_shortener' ) == 5 || get_option( 'jd_shortener' ) == 6 ) {
766
- if ( get_post_meta ( $post_ID, 'wp_jd_yourls', TRUE ) != $url ) {
767
- update_post_meta ( $post_ID, 'wp_jd_yourls', $url );
768
  }
769
  }
770
- if ( get_option( 'jd_shortener' ) == 0 || get_option( 'jd_shortener' ) == 1 || get_option( 'jd_shortener' ) == 2 ) {
771
  $target = jd_expand_url( $url );
772
- } else if ( get_option( 'jd_shortener' ) == 5 || get_option( 'jd_shortener' ) == 6 ) {
773
  $target = jd_expand_yourl( $url, get_option( 'jd_shortener' ) );
774
  } else {
775
  $target = $url;
776
  }
777
- update_post_meta( $post_ID, 'wp_jd_target', $target );
778
  }
779
 
780
  function generate_hash_tags( $post_ID ) {
@@ -834,46 +746,44 @@ jd_add_twitter_inner_box();
834
  }
835
 
836
  function jd_add_twitter_inner_box() {
837
- if ( get_option('jd-twitter-service-name') == '' ) {
838
- $twitter = "Twitter";
839
- } else {
840
- $twitter = get_option('jd-twitter-service-name');
841
- }
842
- if ( get_option('jd-twitter-char-limit') == '' ) {
843
- $post_length = 140;
844
- } else {
845
- $post_length = (int) get_option('jd-twitter-char-limit');
846
- }
847
  global $post, $jd_plugin_url;
848
  $post_id = $post;
849
  if (is_object($post_id)) {
850
  $post_id = $post_id->ID;
851
  }
852
- $jd_twitter = htmlspecialchars( stripcslashes( get_post_meta($post_id, 'jd_twitter', true ) ) );
853
- $jd_tweet_this = get_post_meta( $post_id, 'jd_tweet_this', true );
854
- if ( get_option( 'jd_tweet_default' ) == '1' && $jd_tweet_this == 'no') {
 
 
 
 
855
  $jd_selected = ' checked="checked"';
856
  } else {
857
  $jd_selected = '';
858
  }
859
- $jd_short = get_post_meta( $post_id, 'wp_jd_clig', true );
860
  $shortener = "Cli.gs";
861
  if ( $jd_short == "" ) {
862
- $jd_short = get_post_meta( $post_id, 'wp_jd_bitly', true );
863
  $shortener = "Bit.ly";
864
  }
865
  if ( $jd_short == "" ) {
866
- $jd_short = get_post_meta( $post_id, 'wp_jd_wp', true );
867
  $shortener = "WordPress";
868
  }
869
  if ( $jd_short == "" ) {
870
- $jd_short = get_post_meta( $post_id, 'wp_jd_yourls', true );
871
  $shortener = "YOURLS";
872
  }
873
  if ( $jd_short == "" ) {
874
- $jd_direct = get_post_meta( $post_id, 'wp_jd_url', true );
875
  }
876
- $jd_expansion = get_post_meta( $post_id, 'wp_jd_target', true );
 
877
  ?>
878
  <script type="text/javascript">
879
  <!-- Begin
@@ -882,8 +792,11 @@ cntfield.value = field.value.length;
882
  }
883
  // End -->
884
  </script>
 
 
 
885
  <p>
886
- <label for="jd_twitter"><?php _e("$twitter Post", 'wp-to-twitter', 'wp-to-twitter') ?></label><br /><textarea style="width:95%;" name="jd_twitter" id="jd_twitter" rows="2" cols="60"
887
  onKeyDown="countChars(document.post.jd_twitter,document.post.twitlength)"
888
  onKeyUp="countChars(document.post.jd_twitter,document.post.twitlength)"><?php echo attribute_escape( $jd_twitter ); ?></textarea>
889
  </p>
@@ -895,7 +808,7 @@ cntfield.value = field.value.length;
895
  <a target="__blank" href="<?php echo $jd_donate_url; ?>"><?php _e('Make a Donation', 'wp-to-twitter', 'wp-to-twitter') ?></a> &bull; <a target="__blank" href="<?php echo $jd_plugin_url; ?>"><?php _e('Get Support', 'wp-to-twitter', 'wp-to-twitter') ?></a> &raquo;
896
  </p>
897
  <p>
898
- <input type="checkbox" name="jd_tweet_this" value="no"<?php echo attribute_escape( $jd_selected ); ?> id="jd_tweet_this" /> <label for="jd_tweet_this"><?php _e("Don't Tweet this post.", 'wp-to-twitter'); ?></label>
899
  </p>
900
  <p>
901
  <?php
@@ -925,27 +838,32 @@ function jd_add_twitter_outer_box() {
925
  }
926
  }
927
 
 
 
 
 
 
 
 
 
 
 
928
  // Post the Custom Tweet into the post meta table
929
  function post_jd_twitter( $id ) {
930
- $jd_twitter = $_POST[ 'jd_twitter' ];
 
 
 
 
931
  if (isset($jd_twitter) && !empty($jd_twitter)) {
932
- update_post_meta( $id, 'jd_twitter', $jd_twitter );
933
  }
934
- $jd_tweet_this = $_POST[ 'jd_tweet_this' ];
935
- if ($jd_tweet_this == 'no') {
936
- update_post_meta( $id, 'jd_tweet_this', 'no');
937
- } else {
938
- update_post_meta( $id, 'jd_tweet_this', 'yes');
939
- }
940
  }
941
 
942
 
943
  function jd_twitter_profile() {
944
- if ( get_option('jd-twitter-service-name') == '' ) {
945
- $twitter = "Twitter";
946
- } else {
947
- $twitter = get_option('jd-twitter-service-name');
948
- }
949
  global $user_ID;
950
  get_currentuserinfo();
951
  if ( isset($_GET['user_id']) ) {
@@ -953,44 +871,22 @@ function jd_twitter_profile() {
953
  }
954
  $is_enabled = get_usermeta( $user_ID, 'wp-to-twitter-enable-user' );
955
  $twitter_username = get_usermeta( $user_ID, 'wp-to-twitter-user-username' );
956
- $twitter_password = get_usermeta( $user_ID, 'wp-to-twitter-user-password' );
957
- $x_twitter_username = get_usermeta( $user_ID, 'x-wp-to-twitter-user-username' );
958
- $x_twitter_password = get_usermeta( $user_ID, 'x-wp-to-twitter-user-password' );
959
  ?>
960
  <h3><?php _e('WP to Twitter User Settings', 'wp-to-twitter'); ?></h3>
961
 
962
  <table class="form-table">
963
  <tr>
964
- <th scope="row"><?php _e("Use My $twitter Account", 'wp-to-twitter'); ?></th>
965
- <td><input type="radio" name="wp-to-twitter-enable-user" id="wp-to-twitter-enable-user" value="userTwitter"<?php if ($is_enabled == "userTwitter" || $is_enabled == "true" ) { echo " checked='checked'"; } ?> /> <label for="wp-to-twitter-enable-user"><?php _e("Select this option if you would like your posts to be Tweeted into your own $twitter account with no @ references.", 'wp-to-twitter'); ?></label><br />
966
- <input type="radio" name="wp-to-twitter-enable-user" id="wp-to-twitter-enable-user-2" value="userAtTwitter"<?php if ($is_enabled == "userAtTwitter") { echo " checked='checked'"; } ?> /> <label for="wp-to-twitter-enable-user-2"><?php _e("Tweet my posts into my $twitter account with an @ reference to the site's main $twitter account.", 'wp-to-twitter'); ?></label><br />
967
- <input type="radio" name="wp-to-twitter-enable-user" id="wp-to-twitter-enable-user-3" value="mainAtTwitter"<?php if ($is_enabled == "mainAtTwitter") { echo " checked='checked'"; } ?> /> <label for="wp-to-twitter-enable-user-3"><?php _e("Tweet my posts into the main site $twitter account with an @ reference to my username. (Password not required with this option.)", 'wp-to-twitter'); ?></label></td>
968
  </tr>
969
  <tr>
970
  <th scope="row"><label for="wp-to-twitter-user-username"><?php _e("Your $twitter Username", 'wp-to-twitter'); ?></label></th>
971
  <td><input type="text" name="wp-to-twitter-user-username" id="wp-to-twitter-user-username" value="<?php echo attribute_escape( $twitter_username ); ?>" /> <?php _e('Enter your own Twitter username.', 'wp-to-twitter'); ?></td>
972
  </tr>
973
- <tr>
974
- <th scope="row"><label for="wp-to-twitter-user-password"><?php _e("Your $twitter Password", 'wp-to-twitter'); ?></label></th>
975
- <td><input type="password" name="wp-to-twitter-user-password" id="wp-to-twitter-user-password" value="" /> <?php _e('Enter your own Twitter password.', 'wp-to-twitter'); ?> <?php if ( $twitter_password != "") { _e('<em>Password saved</em>','wp-to-twitter'); } ?></td>
976
- </tr>
977
  </table>
978
- <?php if ( get_option( 'jd_use_both_services' )=='1' ) { ?>
979
- <h3><?php _e('WP to Twitter User Settings', 'wp-to-twitter'); ?></h3>
980
-
981
- <table class="form-table">
982
- <tr>
983
- <th scope="row"><label for="x-wp-to-twitter-user-username"><?php _e("Your Twitter Username", 'wp-to-twitter'); ?></label></th>
984
- <td><input type="text" name="x-wp-to-twitter-user-username" id="x-wp-to-twitter-user-username" value="<?php echo attribute_escape( $x_twitter_username ); ?>" /> <?php _e('Enter your own Twitter username.', 'wp-to-twitter'); ?></td>
985
- </tr>
986
- <tr>
987
- <th scope="row"><label for="x-wp-to-twitter-user-password"><?php _e("Your Twitter Password", 'wp-to-twitter'); ?></label></th>
988
- <td><input type="password" name="x-wp-to-twitter-user-password" id="x-wp-to-twitter-user-password" value="" /> <?php _e('Enter your own Twitter password.', 'wp-to-twitter'); ?> <?php if ( $x_twitter_password != "") { _e('<em>Password saved</em>','wp-to-twitter'); } ?></td>
989
- </tr>
990
- </table>
991
-
992
- <?php }
993
-
994
  }
995
 
996
  function custom_shortcodes( $sentence, $post_ID ) {
@@ -1018,19 +914,14 @@ function jd_twitter_save_profile(){
1018
  }
1019
  update_usermeta($user_ID ,'wp-to-twitter-enable-user' , $_POST['wp-to-twitter-enable-user'] );
1020
  update_usermeta($user_ID ,'wp-to-twitter-user-username' , $_POST['wp-to-twitter-user-username'] );
1021
- if ( $_POST['wp-to-twitter-user-password'] != '' ) {
1022
- update_usermeta($user_ID ,'wp-to-twitter-user-password' , $_POST['wp-to-twitter-user-password'] );
1023
- }
1024
- update_usermeta($user_ID ,'wp-to-twitter-encrypted' , base64_encode( $_POST['wp-to-twitter-user-username'].':'.$_POST['wp-to-twitter-user-password'] ) );
1025
  }
1026
-
1027
  function jd_list_categories() {
1028
  $selected = "";
1029
  $categories = get_categories('hide_empty=0');
1030
  $input = "<form action=\"\" method=\"post\">
1031
  <fieldset><legend>".__('Check the categories you want to tweet:','wp-to-twitter')."</legend>
1032
  <ul>\n";
1033
- $tweet_categories = unserialize( get_option( 'tweet_categories' ) );
1034
  foreach ($categories AS $cat) {
1035
  if (is_array($tweet_categories)) {
1036
  if (in_array($cat->term_id,$tweet_categories)) {
@@ -1106,6 +997,11 @@ background: #f6f6f6;
1106
  padding: 5px;
1107
  margin: 5px;
1108
  }
 
 
 
 
 
1109
  -->
1110
  </style>";
1111
  }
@@ -1122,24 +1018,6 @@ function plugin_action($links, $file) {
1122
  $links[] = "<a href='options-general.php?page=wp-to-twitter/wp-to-twitter.php'>" . __('Settings', 'wp-to-twitter', 'wp-to-twitter') . "</a>";
1123
  return $links;
1124
  }
1125
- /*
1126
- // Something for later...taken out of 2.0 release. No time for this now!
1127
- function jd_tweet_from_dashboard() {
1128
- wp_add_dashboard_widget( 'jd_tweet_from_dashboard' , 'Post to Twitter' , 'jd_tweet_box' );
1129
- }
1130
-
1131
- function jd_tweet_box() {
1132
- global $id;
1133
- echo '<form action="" method="post">
1134
- <div>
1135
- <label for="jd_tweet">';
1136
- _e('Post to Twitter','wp-to-twitter');
1137
- echo '<textarea cols="40" rows="8" name="jd_tweet" id="jd_tweet"></textarea>
1138
- </div>
1139
- </form>';
1140
- }
1141
- */
1142
-
1143
  //Add Plugin Actions to WordPress
1144
 
1145
  add_filter('plugin_action_links', 'plugin_action', -10, 2);
@@ -1169,16 +1047,10 @@ if ( get_option( 'jd_twit_blogroll' ) == '1' ) {
1169
  add_action( 'add_link', 'jd_twit_link' );
1170
  }
1171
  add_action( 'future_to_publish', 'jd_twit_future' );
1172
-
1173
- if ( version_compare( $wp_version,"2.7","<" )) {
1174
- add_action( 'edit_post', 'jd_twit', 12 );
1175
-
1176
- } else {
1177
  add_action( 'publish_post', 'jd_twit', 12 );
1178
- }
1179
 
1180
  if ( get_option( 'jd_twit_quickpress' ) == '1' ) {
1181
- add_action( 'new_to_publish', 'jd_twit_quickpress', 12 );
1182
  }
1183
 
1184
  if ( get_option( 'jd_twit_remote' ) == '1' ) {
@@ -1189,8 +1061,4 @@ add_action( 'save_post','post_jd_twitter' );
1189
  add_action( 'admin_menu', 'jd_addTwitterAdminPages' );
1190
 
1191
  register_activation_hook( __FILE__, 'wptotwitter_activate' );
1192
- //if ( get_option( 'jd_post_tweet_from_dashboard' ) == '1' ) {
1193
- //add_action( 'wp_dashboard_setup', 'jd_tweet_from_dashboard' );
1194
- //}
1195
-
1196
  ?>
3
  Plugin Name: WP to Twitter
4
  Plugin URI: http://www.joedolson.com/articles/wp-to-twitter/
5
  Description: Updates Twitter when you create a new blog post or add to your blogroll using Cli.gs. With a Cli.gs API key, creates a clig in your Cli.gs account with the name of your post as the title.
6
+ Version: 2.2.2
7
  Author: Joseph Dolson
8
  Author URI: http://www.joedolson.com/
9
  */
23
  along with this program; if not, write to the Free Software
24
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
26
+ // include service functions
27
+ require_once( WP_PLUGIN_DIR . '/wp-to-twitter/functions.php' );
28
+ require_once( WP_PLUGIN_DIR . '/wp-to-twitter/wp-to-twitter-oauth.php' );
29
+
30
+ global $wp_version,$version,$jd_plugin_url,$jdwp_api_post_status, $x_jdwp_post_status;
31
+ $version = "2.2.2";
32
  $plugin_dir = basename(dirname(__FILE__));
33
  load_plugin_textdomain( 'wp-to-twitter', 'wp-content/plugins/' . $plugin_dir, $plugin_dir );
34
 
35
+
36
  $jdwp_api_post_status = "http://twitter.com/statuses/update.json";
37
+ $x_jd_api_post_status = get_option( 'x_jd_api_post_status' );
38
+
 
39
 
40
  $jd_plugin_url = "http://www.joedolson.com/articles/wp-to-twitter/";
41
  $jd_donate_url = "http://www.joedolson.com/donate.php";
43
  if ( !defined( 'WP_PLUGIN_DIR' ) ) {
44
  define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );
45
  }
 
46
 
47
  // Check whether a supported version is in use.
48
  $exit_msg='WP to Twitter requires WordPress 2.7 or a more recent version. <a href="http://codex.wordpress.org/Upgrading_WordPress">Please update your WordPress version!</a>';
50
  if ( version_compare( $wp_version,"2.7","<" )) {
51
  exit ($exit_msg);
52
  }
53
+ // check for OAuth configuration
54
+ if ( !wtt_oauth_test() && get_option('disable_oauth_notice') != '1' ) {
55
+ add_action('admin_notices', create_function( '', "echo '<div class=\"error\"><p>".sprintf(__('Twitter now requires authentication by OAuth. You will need you to update your <a href="%s">settings</a> in order to continue to use WP to Twitter.', 'wp-to-twitter'), admin_url('options-general.php?page=wp-to-twitter/wp-to-twitter.php'))."</p></div>';" ) );
56
+ }
57
 
58
  function wptotwitter_activate() {
59
  global $version;
77
  return ( $ex_link ) ? $ex_link : $perma_link;
78
  }
79
 
80
+ function jd_doUnknownAPIPost( $twit, $authID=FALSE, $service="basic" ) {
81
+ global $version, $jd_plugin_url, $x_jd_api_post_status;
 
 
82
  //check if user login details have been entered on admin page
83
  if ($authID == FALSE || ( get_option( 'jd_individual_twitter_users' ) != '1' ) ) {
84
+ $thisuser = get_option( 'x-login' );
85
+ $thispass = stripcslashes( get_option( 'x-pw' ) );
86
  } else {
87
  if ( ( get_usermeta( $authID, 'wp-to-twitter-enable-user' ) == 'true' || get_usermeta( $authID, 'wp-to-twitter-enable-user' ) == 'userTwitter' || get_usermeta( $authID, 'wp-to-twitter-enable-user' ) == 'userAtTwitter' ) && ( get_usermeta( $authID, 'wp-to-twitter-user-username' ) != "" && get_usermeta( $authID, 'wp-to-twitter-user-password' ) != "" ) ) {
88
  $thisuser = get_usermeta( $authID, 'wp-to-twitter-user-username' );
89
  $thispass = stripcslashes( get_usermeta( $authID, 'wp-to-twitter-user-password' ) );
90
  } else {
91
+ $thisuser = get_option( 'x-login' );
92
+ $thispass = stripcslashes( get_option( 'x-pw' ) );
93
  }
94
  }
95
  if ($thisuser == '' || $thispass == '' || $twit == '' ) {
96
  return FALSE;
97
  } else {
98
  if ( $service == "Twitter" ) {
99
+ return false;
100
+ }
 
 
 
 
101
  $twit = urldecode( $twit );
102
  $body = array( 'status'=>$twit, 'source'=>'wptotwitter' );
103
  $headers = array( 'Authorization' => 'Basic '.base64_encode("$thisuser:$thispass"),
105
  'X-Twitter-Client-Version' => $version,
106
  'X-Twitter-Client-URL' => 'http://www.joedolson.com/scripts/wp-to-twitter.xml'
107
  );
108
+ $result = jd_fetch_url( $x_jd_api_post_status, 'POST', $body, $headers, 'full' );
109
  // errors will be handled on receipt of $result
110
+ if ( $result['response']['code'] != 200 ) {
111
+ return false;
112
+ } else {
113
+ return true;
114
+ }
115
  }
116
  }
117
 
118
+
119
+ // This function performs the API post to Twitter
120
+ function jd_doTwitterAPIPost( $twit ) {
121
+ global $jdwp_api_post_status;
122
+ //check if user login details have been entered on admin page
123
+ if ( $twit == '' ) {
124
+ return FALSE;
125
  } else {
126
+ if ( wtt_oauth_test() && ( $connection = wtt_oauth_connection() ) ) {
127
+ $connection->post(
128
+ $jdwp_api_post_status
129
+ , array(
130
+ 'status' => $twit
131
+ , 'source' => 'wp-to-twitter'
132
+ )
133
+ );
134
+ if ( strcmp( $connection->http_code, '200' ) == 0 ) {
135
+ $return = true;
136
+ $error = __("200 OK: Success!",'wp-to-twitter');
137
+ } else if ( strcmp( $connection->http_code, '400' ) == 0 ) {
138
+ $return = false;
139
+ $error = __("400 Bad Request: The request was invalid. This is the status code returned during rate limiting.",'wp-to-twitter');
140
+ } else if ( strcmp( $connection->http_code, '401' ) == 0 ) {
141
+ $return = false;
142
+ $error = __("401 Unauthorized: Authentication credentials were missing or incorrect.",'wp-to-twitter');
143
+ } else if ( strcmp( $connection->http_code, '403' ) == 0 ) {
144
+ $return = false;
145
+ $error = __("403 Forbidden: The request is understood, but it has been refused. This code is used when requests are being denied due to update limits.",'wp-to-twitter'); } else if ( strcmp( $connection->http_code, '500' ) == 0 ) {
146
+ $return = false;
147
+ $error = __("500 Internal Server Error: Something is broken at Twitter.",'wp-to-twitter');
148
+ } else if ( strcmp( $connection->http_code, '503' ) == 0 ) {
149
+ $return = false;
150
+ $error = __("503 Service Unavailable: The Twitter servers are up, but overloaded with requests Please try again later.",'wp-to-twitter');
151
+ } else if ( strcmp( $connection->http_code, '502' ) == 0 ) {
152
+ $return = false;
153
+ $error = __("502 Bad Gateway: Twitter is down or being upgraded.",'wp-to-twitter');
154
+ }
155
+ update_option( 'jd_last_tweet',$twit );
156
+ update_option( 'jd_status_message',$error );
157
+ return $return;
158
+ }
159
  }
160
+ }
161
+
162
+ function jd_truncate_tweet( $sentence, $thisposttitle, $thisblogtitle, $thispostexcerpt, $thisposturl, $thispostcategory, $thisdate, $post_ID, $authID=FALSE ) {
163
+ $post_length = 140;
164
  $sentence = trim($sentence);
165
  $thisposttitle = trim($thisposttitle);
166
  $thisblogtitle = trim($thisblogtitle);
172
  $thisauthor = get_the_author_meta( 'display_name',$post_author );
173
 
174
  if ( get_option( 'jd_individual_twitter_users' ) == 1 ) {
175
+ if ( get_usermeta( $authID, 'wp-to-twitter-enable-user' ) == 'mainAtTwitter' ) {
176
+ $at_append = "@" . stripcslashes(get_usermeta( $authID, 'wp-to-twitter-user-username' ));
177
+ } else if ( get_usermeta( $authID, 'wp-to-twitter-enable-user' ) == 'mainAtTwitterPlus' ) {
178
+ $at_append = "@" . stripcslashes(get_usermeta( $authID, 'wp-to-twitter-user-username' ) . ' @' . get_option( 'wtt_twitter_username' ));
 
 
179
  }
180
  } else {
181
  $at_append = "";
182
  }
183
+ if ($sentence != '') {
184
  $sentence = $at_append . " " . $sentence;
185
+ }
186
+ if ( get_option( 'use_tags_as_hashtags' ) == '1' && $sentence != '' ) {
187
  $sentence = $sentence . " " . generate_hash_tags( $post_ID );
188
  }
189
 
190
+ if ( get_option( 'jd_twit_prepend' ) != "" && $sentence != '' ) {
191
  $sentence = get_option( 'jd_twit_prepend' ) . " " . $sentence;
192
  }
193
+ if ( get_option( 'jd_twit_append' ) != "" && $sentence != '' ) {
194
  $sentence = $sentence . " " . get_option( 'jd_twit_append' );
195
  }
196
  if ( mb_substr( $thispostexcerpt, -1 ) == ";" || mb_substr( $thispostexcerpt, -1 ) == "," || mb_substr( $thispostexcerpt, -1 ) == ":" ) {
231
  }
232
  }
233
  }
234
+ $sentence = $post_sentence;
235
  return $sentence;
236
  }
237
 
238
+ function jd_shorten_link( $thispostlink, $thisposttitle, $post_ID, $testmode='false' ) {
239
+ $cligsapi = trim ( get_option( 'cligsapi' ) );
240
+ $bitlyapi = trim ( get_option( 'bitlyapi' ) );
241
+ $bitlylogin = trim ( get_option( 'bitlylogin' ) );
242
+ $yourlslogin = trim ( get_option( 'yourlslogin') );
243
  $yourlsapi = stripcslashes( get_option( 'yourlsapi' ) );
244
+ if ($testmode != 'false') {
245
+ if ( ( get_option('twitter-analytics-campaign') != '' ) && ( get_option('use-twitter-analytics') == 1 || get_option('use_dynamic_analytics') == 1 ) ) {
246
+ if ( get_option('use_dynamic_analytics') == '1' ) {
247
+ $campaign_type = get_option('jd_dynamic_analytics');
248
+ if ($campaign_type == "post_category" && $testmode != 'link' ) {
249
+ $category = get_the_category( $post_ID );
250
+ $this_campaign = $category[0]->cat_name;
251
+ } else if ($campaign_type == "post_ID") {
252
+ $this_campaign = $post_ID;
253
+ } else if ($campaign_type == "post_title" && $testmode != 'link' ) {
254
+ $post = get_post( $post_ID );
255
+ $this_campaign = $post->post_title;
256
+ } else {
257
+ if ( $testmode != 'link' ) {
258
+ $post = get_post( $post_ID );
259
+ $post_author = $post->post_author;
260
+ $this_campaign = get_the_author_meta( 'user_login',$post_author );
261
+ } else {
262
+ $post_author = '';
263
+ $this_campaign = '';
264
+ }
265
+ }
266
  } else {
267
+ $this_campaign = get_option('twitter-analytics-campaign');
 
 
268
  }
269
+ $search = array(" ","&","?");
270
+ $this_campaign = str_replace($search,'',$this_campaign);
271
+ if ( strpos( $thispostlink,"%3F" ) === FALSE) {
272
+ $thispostlink .= "?";
273
+ } else {
274
+ $thispostlink .= "&";
275
+ }
276
+ $thispostlink .= "utm_campaign=$this_campaign&utm_medium=twitter&utm_source=twitter";
 
277
  }
 
278
  }
279
+ $thispostlink = urlencode(trim($thispostlink));
280
+
281
  // custom word setting
282
+ $keyword_format = ( get_option( 'jd_keyword_format' ) == '1' )?$post_ID:'';
 
 
 
 
283
  // Generate and grab the short url
284
  switch ( get_option( 'jd_shortener' ) ) {
285
  case 0:
286
  case 1:
287
  $shrink = jd_fetch_url( "http://cli.gs/api/v1/cligs/create?t=wphttp&appid=WP-to-Twitter&url=".$thispostlink."&title=".$thisposttitle."&key=".$cligsapi );
288
+ update_option( 'wp_cligs_error',"Cligs API result: $shrink" );
289
+ if ( !is_valid_url($shrink) ) { $shrink = false; }
290
  break;
291
  case 2: // updated to v3 3/31/2010
292
  $decoded = jd_remote_json( "http://api.bit.ly/v3/shorten?longUrl=".$thispostlink."&login=".$bitlylogin."&apiKey=".$bitlyapi."&format=json" );
293
  if ($decoded) {
294
  if ($decoded['status_code'] != 200) {
295
+ $shrink = $decoded;
296
+ $error = $decoded['status_txt'];
 
297
  } else {
298
  $shrink = $decoded['data']['url'];
299
  }
300
  } else {
301
  $shrink = false;
302
+ update_option( 'wp_bitly_error',"JSON result could not be decoded");
303
+ }
304
+ if ( !is_valid_url($shrink) ) { $shrink = false; update_option( 'wp_bitly_error',$error ); }
305
  break;
306
  case 3:
307
  $shrink = urldecode($thispostlink);
342
  }
343
  break;
344
  }
345
+ if ($testmode == 'false') {
346
+ if ( $shrink === FALSE || ( stristr( $shrink, "http://" ) === FALSE )) {
347
+ update_option( 'wp_url_failure','1' );
348
+ $shrink = $thispostlink;
349
+ } else {
350
+ update_option( 'wp_url_failure','0' );
351
+ }
352
  }
353
  return $shrink;
354
  }
388
  }
389
 
390
  function in_allowed_category( $array ) {
391
+ $allowed_categories = get_option( 'tweet_categories' );
392
  if ( is_array( $array ) && is_array( $allowed_categories ) ) {
393
  $common = @array_intersect( $array,$allowed_categories );
394
  if ( count( $common ) >= 1 ) {
401
  }
402
  }
403
 
404
+ function jd_post_info( $post_ID ) {
405
+ $get_post_info = get_post( $post_ID );
406
+ $values = array();
407
+ // get post author
408
+ $values['authId'] = $get_post_info->post_author;
 
 
409
  $postdate = $get_post_info->post_date;
410
+ $dateformat = (get_option('jd_date_format')=='')?get_option('date_format'):get_option('jd_date_format');
 
 
 
 
411
  $thisdate = mysql2date( $dateformat,$postdate );
412
+ $values['postDate'] = $thisdate;
413
+ // get first category
414
  $category = null;
415
  $categories = get_the_category( $post_ID );
416
  if ( $categories > 0 ) {
419
  foreach ($categories AS $cat) {
420
  $category_ids[] = $cat->term_id;
421
  }
422
+ $values['categoryIds'] = $category_ids;
423
+ $values['category'] = $category;
424
  $excerpt_length = get_option( 'jd_post_excerpt' );
425
+ $values['postExcerpt'] = ( trim( $get_post_info->post_excerpt ) == "" )?@mb_substr( strip_tags($get_post_info->post_content), 0, $excerpt_length ):@mb_substr( strip_tags($get_post_info->post_excerpt), 0, $excerpt_length );
426
+ $thisposttitle = stripcslashes( strip_tags( $get_post_info->post_title ) );
 
 
 
 
427
  if ($thisposttitle == "") {
428
+ $thisposttitle = stripcslashes( strip_tags( $_POST['title'] ) );
429
  }
430
+ $values['postTitle'] = $thisposttitle;
431
+ $values['postLink'] = external_or_permalink( $post_ID );
432
+ $values['blogTitle'] = get_bloginfo( 'name' );
433
+ $values['shortUrl'] = get_post_meta( $post_ID, '_wp_jd_clig', TRUE );
434
+ $values['postStatus'] = $get_post_info->post_status;
435
+ return $values;
436
+ }
437
+
438
+
439
+ function jd_get_post_meta( $post_ID, $value, $boolean ) {
440
+ $return = get_post_meta( $post_ID, "_$value", TRUE );
441
+ if (!$return) {
442
+ $return = get_post_meta( $post_ID, $value, TRUE );
443
+ }
444
+ return $return;
445
+ }
446
+
447
+ function jd_twit( $post_ID ) {
448
+ $jd_tweet_this = get_post_meta( $post_ID, '_jd_tweet_this', TRUE);
449
+ if ( $jd_tweet_this != "no" ) {
450
+ $jd_post_info = jd_post_info( $post_ID );
451
  $sentence = '';
452
+ $customTweet = stripcslashes( trim( $_POST['_jd_twitter'] ) );
453
+ if ( ( $jd_post_info['postStatus'] == 'publish' || $_POST['publish'] == 'Publish') && ($_POST['prev_status'] == 'draft' || $_POST['original_post_status'] == 'draft' || $_POST['prev_status'] == 'pending' || $_POST['original_post_status'] =='pending' || $_POST['original_post_status'] == 'auto-draft' ) ) {
454
+ // publish new post
 
455
  if ( get_option( 'newpost-published-update' ) == '1' ) {
456
+ $nptext = stripcslashes( get_option( 'newpost-published-text' ) );
457
+ $newpost = true;
 
 
 
 
 
 
 
 
 
 
 
 
458
  }
459
+ } else if ( (( $_POST['originalaction'] == "editpost" ) && ( ( $_POST['prev_status'] == 'publish' ) || ($_POST['original_post_status'] == 'publish') ) ) && $jd_post_info['postStatus'] == 'publish') {
460
  // if this is an old post and editing updates are enabled
461
  if ( get_option( 'oldpost-edited-update') == '1' ) {
462
+ $nptext = stripcslashes( get_option( 'oldpost-edited-text' ) );
463
+ $oldpost = true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
464
  }
465
+ }
466
+ if ($newpost || $oldpost) {
467
+ $sentence = ( $customTweet != "" ) ? $customTweet : $nptext;
468
+ if ($jd_post_info['shortUrl'] != '') {
469
+ $shrink = $jd_post_info['shortUrl'];
470
+ } else {
471
+ $shrink = jd_shorten_link( $jd_post_info['postLink'], $jd_post_info['postTitle'], $post_ID );
472
+ store_url( $post_ID, $shrink );
473
+ }
474
+ $sentence = custom_shortcodes( $sentence, $post_ID );
475
+ $sentence = jd_truncate_tweet( $sentence, $jd_post_info['postTitle'], $jd_post_info['blogTitle'], $jd_post_info['postExcerpt'], $shrink, $jd_post_info['category'], $jd_post_info['postDate'], $post_ID, $jd_post_info['authId'] );
476
+ }
477
+
478
+ if ( $sentence != '' ) {
479
+ if ( get_option('limit_categories') == '0' || in_allowed_category( $jd_post_info['categoryIds'] ) ) {
480
+ $sendToTwitter = ( get_option( 'x_jd_api_post_status' ) == '' )?jd_doTwitterAPIPost( $sentence ):jd_doUnknownAPIPost( $sentence, $jd_post_info['authId'] );
481
+ if ( $sendToTwitter == false ) {
482
+ update_post_meta( $post_ID,'_jd_wp_twitter',urldecode( $sentence ) );
483
+ update_option( 'wp_twitter_failure','1' );
484
+ }
485
  }
486
  }
487
  }
489
  }
490
 
491
  function jd_twit_page( $post_ID ) {
492
+ $jd_tweet_this = get_post_meta( $post_ID, '_jd_tweet_this', TRUE);
493
+ if ( $jd_tweet_this != "no" ) {
494
+ $jd_post_info = jd_post_info( $post_ID );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
495
  $sentence = '';
496
+ $customTweet = stripcslashes( trim( $_POST['_jd_twitter'] ) );
497
+ if (( $jd_post_info['postStatus'] == 'publish' || $_POST['publish'] == 'Publish') && ($_POST['prev_status'] == 'draft' || $_POST['original_post_status'] == 'draft' || $_POST['original_post_status'] == 'auto-draft' ) ) {
498
+ $newpost = true; // publish new post
 
499
  if ( get_option( 'jd_twit_pages' ) == '1' ) {
500
+ $nptext = stripcslashes( get_option( 'newpage-published-text' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
501
  }
502
+ } else if ( (( $_POST['originalaction'] == "editpost" ) && ( ( $_POST['prev_status'] == 'publish' ) || ($_POST['original_post_status'] == 'publish') ) ) && $jd_post_info['postStatus'] == 'publish') {
503
+ $oldpost = true; // if this is an old page and editing updates are enabled
504
  if ( get_option( 'jd_twit_edited_pages' ) == '1' ) {
505
+ $nptext = stripcslashes( get_option( 'oldpage-published-text' ) );
 
 
 
 
 
 
 
 
 
 
 
 
506
  }
507
  }
508
+ if ($newpost || $oldpost) {
509
+ $sentence = ( $customTweet != "" ) ? $customTweet : $nptext;
510
+ if ($jd_post_info['shortUrl'] != '') {
511
+ $shrink = $jd_post_info['shortUrl'];
512
+ } else {
513
+ $shrink = jd_shorten_link( $jd_post_info['postLink'], $jd_post_info['postTitle'], $post_ID );
514
+ store_url( $post_ID, $shrink );
515
+ }
516
+ $sentence = custom_shortcodes( $sentence, $post_ID );
517
+ $sentence = jd_truncate_tweet( $sentence, $jd_post_info['postTitle'], $jd_post_info['blogTitle'], $jd_post_info['postExcerpt'], $shrink, $jd_post_info['category'], $jd_post_info['postDate'], $post_ID, $jd_post_info['authId'] );
518
+ }
519
  if ( $sentence != '' ) {
520
+ if ( get_option('limit_categories') == '0' || in_allowed_category( $jd_post_info['categoryIds'] ) ) {
521
+ $sendToTwitter = ( get_option( 'x_jd_api_post_status' ) == '' )?jd_doTwitterAPIPost( $sentence ):jd_doUnknownAPIPost( $sentence, $jd_post_info['authId'] );
522
+ if ( $sendToTwitter == false ) {
523
+ update_post_meta( $post_ID,'_jd_wp_twitter',urldecode( $sentence ) );
524
+ update_option( 'wp_twitter_failure','1' );
525
+ }
 
 
 
 
526
  }
527
  }
528
  }
534
  global $version;
535
  $thislinkprivate = $_POST['link_visible'];
536
  if ($thislinkprivate != 'N') {
537
+ $thislinkname = stripcslashes( $_POST['link_name'] );
538
+ $thispostlink = $_POST['link_url'] ;
539
+ $thislinkdescription = stripcslashes( $_POST['link_description'] );
540
  $sentence = stripcslashes( get_option( 'newlink-published-text' ) );
 
541
  if ( get_option( 'jd-use-link-description' ) == '1' || get_option ( 'jd-use-link-title' ) == '1' ) {
542
  if ( get_option( 'jd-use-link-description' ) == '1' && get_option ( 'jd-use-link-title' ) == '0' ) {
543
  $sentence = $sentence . ' ' . $thislinkdescription;
551
  if (mb_strlen( $sentence ) > 120) {
552
  $sentence = mb_substr($sentence,0,116) . '...';
553
  }
554
+ $shrink = jd_shorten_link( $thispostlink, $thislinkname, $link_ID, 'link' );
 
555
  if ( stripos($sentence,"#url#") === FALSE ) {
556
  $sentence = $sentence . " " . $shrink;
557
  } else {
558
  $sentence = str_ireplace("#url#",$shrink,$sentence);
559
  }
560
  if ( $sentence != '' ) {
561
+ $sendToTwitter = ( get_option( 'x_jd_api_post_status' ) == '' )?jd_doTwitterAPIPost( $sentence ):jd_doUnknownAPIPost( $sentence, $jd_post_info['authId'] );
562
+ if ( $sendToTwitter == false ) {
 
 
 
 
 
563
  update_option('wp_twitter_failure','2');
564
  }
565
  }
572
  // HANDLES SCHEDULED POSTS
573
  function jd_twit_future( $post_ID ) {
574
  $post_ID = $post_ID->ID;
575
+ if ( $jd_tweet_this != "no" ) {
576
+ $jd_post_info = jd_post_info( $post_ID );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
577
  $sentence = '';
578
+ $customTweet = get_post_meta( $post_ID, '_jd_twitter', TRUE );
579
  $sentence = stripcslashes(get_option( 'newpost-published-text' ));
580
+ $shrink = jd_shorten_link( $jd_post_info['postLink'], $jd_post_info['postTitle'], $post_ID );
581
  // Stores the post's short URL in a custom field for later use as needed.
582
  store_url($post_ID, $shrink);
583
  if ( $customTweet != "" ) {
584
  $sentence = $customTweet;
585
  }
586
  $sentence = custom_shortcodes( $sentence, $post_ID );
587
+ $sentence = jd_truncate_tweet( $sentence, $jd_post_info['postTitle'], $jd_post_info['blogTitle'], $jd_post_info['postExcerpt'], $shrink, $jd_post_info['category'], $jd_post_info['postDate'], $post_ID, $jd_post_info['authId'] );
588
 
589
  if ( $sentence != '' ) {
590
+ if ( get_option('limit_categories') == '0' || in_allowed_category( $jd_post_info['categoryIds'] ) ) {
591
+ $sendToTwitter = ( get_option( 'x_jd_api_post_status' ) == '' )?jd_doTwitterAPIPost( $sentence ):jd_doUnknownAPIPost( $sentence, $jd_post_info['authId'] );
592
+ if ( $sendToTwitter == false ) {
593
+ add_post_meta( $post_ID,'_jd_wp_twitter',urldecode($sentence) );
594
+ update_option( 'wp_twitter_failure','1' );
595
+ }
 
 
 
596
  }
597
+ }
598
  return $post_ID;
599
  }
600
  } // END jd_twit_future
602
  // Tweet from QuickPress (no custom fields, so can't control whether to tweet.)
603
  function jd_twit_quickpress( $post_ID ) {
604
  $post_ID = $post_ID->ID;
605
+ $jd_post_info = jd_post_info ( $post_ID );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
606
  $sentence = '';
607
  $sentence = stripcslashes(get_option( 'newpost-published-text' ));
608
+ $shrink = jd_shorten_link( $jd_post_info['postLink'], $jd_post_info['postTitle'], $post_ID );
609
  // Stores the posts CLIG in a custom field for later use as needed.
610
  store_url($post_ID, $shrink);
611
  $sentence = custom_shortcodes( $sentence, $post_ID );
612
+ $sentence = jd_truncate_tweet( $sentence, $jd_post_info['postTitle'], $jd_post_info['blogTitle'], $jd_post_info['postExcerpt'], $shrink, $jd_post_info['category'], $jd_post_info['postDate'], $post_ID, $jd_post_info['authId'] );
613
+ if ( $sentence != '' ) {
614
+ if ( get_option('limit_categories') == '0' || in_allowed_category( $jd_post_info['categoryIds'] ) ) {
615
+ $sendToTwitter = ( get_option( 'x_jd_api_post_status' ) == '' )?jd_doTwitterAPIPost( $sentence ):jd_doUnknownAPIPost( $sentence, $jd_post_info['authId'] );
616
+ if ($sendToTwitter == false ) {
617
+ add_post_meta( $post_ID,'_jd_wp_twitter',urldecode($sentence) );
 
 
 
 
618
  update_option( 'wp_twitter_failure','1' );
619
  }
620
  }
621
+ }
622
  return $post_ID;
623
  } // END jd_twit_quickpress
624
 
626
  function jd_twit_xmlrpc( $post_ID ) {
627
  $get_post_info = get_post( $post_ID );
628
  $post_status = $get_post_info->post_status;
629
+ if ( get_option('oldpost-edited-update') != 1 && get_post_meta ( $post_ID, '_wp_jd_clig', TRUE ) != '' ) {
630
  return;
631
  } else {
632
  if ( get_option('jd_tweet_default') != '1' && get_option('jd_twit_remote') == '1' ) {
633
+ $jd_post_info = jd_post_info( $post_ID );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
634
  $sentence = '';
635
  $sentence = stripcslashes(get_option( 'newpost-published-text' ));
636
+ $shrink = jd_shorten_link( $jd_post_info['postLink'], $jd_post_info['postTitle'], $post_ID );
637
  // Stores the posts CLIG in a custom field for later use as needed.
638
  store_url($post_ID, $shrink);
639
  // Check the length of the tweet and truncate parts as necessary.
640
  $sentence = custom_shortcodes( $sentence, $post_ID );
641
+ $sentence = jd_truncate_tweet( $sentence, $jd_post_info['postTitle'], $jd_post_info['blogTitle'], $jd_post_info['postExcerpt'], $shrink, $jd_post_info['category'], $jd_post_info['postDate'], $post_ID, $jd_post_info['authId'] );
642
 
643
+ if ( $sentence != '' ) {
644
+ if ( get_option('limit_categories') == '0' || in_allowed_category( $jd_post_info['categoryIds'] ) ) {
645
+ $sendToTwitter = ( get_option( 'x_jd_api_post_status' ) == '' )?jd_doTwitterAPIPost( $sentence ):jd_doUnknownAPIPost( $sentence, $jd_post_info['authId'] );
646
+ if ($sendToTwitter == false ) {
647
+ add_post_meta( $post_ID,'_jd_wp_twitter',urldecode($sentence));
648
+ update_option('wp_twitter_failure','1');
649
+ }
650
+ }
 
 
 
651
  }
652
  }
653
  return $post_ID;
659
 
660
  function store_url($post_ID, $url) {
661
  if ( get_option( 'jd_shortener' ) == 0 || get_option( 'jd_shortener' ) == 1) {
662
+ if ( get_post_meta ( $post_ID, '_wp_jd_clig', TRUE ) != $url ) {
663
+ update_post_meta ( $post_ID, '_wp_jd_clig', $url );
664
  }
665
  } elseif ( get_option( 'jd_shortener' ) == 2 ) {
666
+ if ( get_post_meta ( $post_ID, '_wp_jd_bitly', TRUE ) != $url ) {
667
+ update_post_meta ( $post_ID, '_wp_jd_bitly', $url );
668
  }
669
  } elseif ( get_option( 'jd_shortener' ) == 3 ) {
670
+ if ( get_post_meta ( $post_ID, '_wp_jd_url', TRUE ) != $url ) {
671
+ update_post_meta ( $post_ID, '_wp_jd_url', $url );
672
  }
673
  } elseif ( get_option( 'jd_shortener' ) == 4 ) {
674
+ if ( get_post_meta ( $post_ID, '_wp_jd_wp', TRUE ) != $url ) {
675
+ update_post_meta ( $post_ID, '_wp_jd_wp', $url );
676
  }
677
  } elseif ( get_option( 'jd_shortener' ) == 5 || get_option( 'jd_shortener' ) == 6 ) {
678
+ if ( get_post_meta ( $post_ID, '_wp_jd_yourls', TRUE ) != $url ) {
679
+ update_post_meta ( $post_ID, '_wp_jd_yourls', $url );
680
  }
681
  }
682
+ if ( get_option( 'jd_shortener' ) == '0' || get_option( 'jd_shortener' ) == '1' || get_option( 'jd_shortener' ) == '2' ) {
683
  $target = jd_expand_url( $url );
684
+ } else if ( get_option( 'jd_shortener' ) == '5' || get_option( 'jd_shortener' ) == '6' ) {
685
  $target = jd_expand_yourl( $url, get_option( 'jd_shortener' ) );
686
  } else {
687
  $target = $url;
688
  }
689
+ update_post_meta( $post_ID, '_wp_jd_target', $target );
690
  }
691
 
692
  function generate_hash_tags( $post_ID ) {
746
  }
747
 
748
  function jd_add_twitter_inner_box() {
749
+ $twitter = "Twitter";
750
+ $post_length = 140;
751
+
 
 
 
 
 
 
 
752
  global $post, $jd_plugin_url;
753
  $post_id = $post;
754
  if (is_object($post_id)) {
755
  $post_id = $post_id->ID;
756
  }
757
+ if ( get_post_meta ( $post_id, "_jd_post_meta_fixed", true ) != 'true' ) {
758
+ jd_fix_post_meta( $post_id );
759
+ }
760
+
761
+ $jd_twitter = htmlspecialchars( stripcslashes( get_post_meta($post_id, '_jd_twitter', true ) ) );
762
+ $jd_tweet_this = get_post_meta( $post_id, '_jd_tweet_this', true );
763
+ if ( ( get_option( 'jd_tweet_default' ) == '1' && $jd_tweet_this != 'yes' ) || $jd_tweet_this == 'no') {
764
  $jd_selected = ' checked="checked"';
765
  } else {
766
  $jd_selected = '';
767
  }
768
+ $jd_short = get_post_meta( $post_id, '_wp_jd_clig', true );
769
  $shortener = "Cli.gs";
770
  if ( $jd_short == "" ) {
771
+ $jd_short = get_post_meta( $post_id, '_wp_jd_bitly', true );
772
  $shortener = "Bit.ly";
773
  }
774
  if ( $jd_short == "" ) {
775
+ $jd_short = get_post_meta( $post_id, '_wp_jd_wp', true );
776
  $shortener = "WordPress";
777
  }
778
  if ( $jd_short == "" ) {
779
+ $jd_short = get_post_meta( $post_id, '_wp_jd_yourls', true );
780
  $shortener = "YOURLS";
781
  }
782
  if ( $jd_short == "" ) {
783
+ $jd_direct = get_post_meta( $post_id, '_wp_jd_url', true );
784
  }
785
+ $jd_expansion = get_post_meta( $post_id, '_wp_jd_target', true );
786
+ $previous_tweet = get_post_meta ( $post_id, '_jd_wp_twitter', true );
787
  ?>
788
  <script type="text/javascript">
789
  <!-- Begin
792
  }
793
  // End -->
794
  </script>
795
+ <?php if ( $previous_tweet != '' ) {
796
+ echo "<p class='error'><strong>Previous Tweet:</strong> $previous_tweet</p>";
797
+ } ?>
798
  <p>
799
+ <label for="jd_twitter"><?php _e("Custom $twitter Post", 'wp-to-twitter', 'wp-to-twitter') ?></label><br /><textarea style="width:95%;" name="_jd_twitter" id="jd_twitter" rows="2" cols="60"
800
  onKeyDown="countChars(document.post.jd_twitter,document.post.twitlength)"
801
  onKeyUp="countChars(document.post.jd_twitter,document.post.twitlength)"><?php echo attribute_escape( $jd_twitter ); ?></textarea>
802
  </p>
808
  <a target="__blank" href="<?php echo $jd_donate_url; ?>"><?php _e('Make a Donation', 'wp-to-twitter', 'wp-to-twitter') ?></a> &bull; <a target="__blank" href="<?php echo $jd_plugin_url; ?>"><?php _e('Get Support', 'wp-to-twitter', 'wp-to-twitter') ?></a> &raquo;
809
  </p>
810
  <p>
811
+ <input type="checkbox" name="_jd_tweet_this" value="no"<?php echo attribute_escape( $jd_selected ); ?> id="jd_tweet_this" /> <label for="jd_tweet_this"><?php _e("Don't Tweet this post.", 'wp-to-twitter'); ?></label>
812
  </p>
813
  <p>
814
  <?php
838
  }
839
  }
840
 
841
+ function jd_fix_post_meta( $post_id ) {
842
+ $oldmeta = array('jd_tweet_this','jd_twitter','wp_jd_clig','wp_jd_bitly','wp_jd_wp','wp_jd_yourls','wp_jd_url','wp_jd_target','jd_wp_twitter');
843
+ foreach ($oldmeta as $value) {
844
+ $old_value = get_post_meta($post_id,$value,true);
845
+ update_post_meta( $post_id, "_$value", $old_value );
846
+ delete_post_meta( $post_id, $value );
847
+ }
848
+ add_post_meta( $post_id, "_jd_post_meta_fixed",'true' );
849
+ }
850
+
851
  // Post the Custom Tweet into the post meta table
852
  function post_jd_twitter( $id ) {
853
+ // update meta data to new format
854
+ if ( get_post_meta ( $post_id, "_jd_post_meta_fixed", true ) != 'true' ) {
855
+ jd_fix_post_meta( $post_id );
856
+ }
857
+ $jd_twitter = $_POST[ '_jd_twitter' ];
858
  if (isset($jd_twitter) && !empty($jd_twitter)) {
859
+ update_post_meta( $id, '_jd_twitter', $jd_twitter );
860
  }
861
+ $jd_tweet_this = esc_attr($_POST[ '_jd_tweet_this' ]);
862
+ update_post_meta( $id, '_jd_tweet_this', $jd_tweet_this );
 
 
 
 
863
  }
864
 
865
 
866
  function jd_twitter_profile() {
 
 
 
 
 
867
  global $user_ID;
868
  get_currentuserinfo();
869
  if ( isset($_GET['user_id']) ) {
871
  }
872
  $is_enabled = get_usermeta( $user_ID, 'wp-to-twitter-enable-user' );
873
  $twitter_username = get_usermeta( $user_ID, 'wp-to-twitter-user-username' );
 
 
 
874
  ?>
875
  <h3><?php _e('WP to Twitter User Settings', 'wp-to-twitter'); ?></h3>
876
 
877
  <table class="form-table">
878
  <tr>
879
+ <th scope="row"><?php _e("Use My Twitter Username", 'wp-to-twitter'); ?></th>
880
+ <td><input type="radio" name="wp-to-twitter-enable-user" id="wp-to-twitter-enable-user-3" value="mainAtTwitter"<?php if ($is_enabled == "mainAtTwitter") { echo " checked='checked'"; } ?> /> <label for="wp-to-twitter-enable-user-3"><?php _e("Tweet my posts with an @ reference to my username.", 'wp-to-twitter'); ?></label><br />
881
+ <input type="radio" name="wp-to-twitter-enable-user" id="wp-to-twitter-enable-user-4" value="mainAtTwitterPlus"<?php if ($is_enabled == "mainAtTwitterPlus") { echo " checked='checked'"; } ?> /> <label for="wp-to-twitter-enable-user-3"><?php _e("Tweet my posts with an @ reference to both my username and to the main site username.", 'wp-to-twitter'); ?></label>
882
+ </td>
883
  </tr>
884
  <tr>
885
  <th scope="row"><label for="wp-to-twitter-user-username"><?php _e("Your $twitter Username", 'wp-to-twitter'); ?></label></th>
886
  <td><input type="text" name="wp-to-twitter-user-username" id="wp-to-twitter-user-username" value="<?php echo attribute_escape( $twitter_username ); ?>" /> <?php _e('Enter your own Twitter username.', 'wp-to-twitter'); ?></td>
887
  </tr>
 
 
 
 
888
  </table>
889
+ <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
890
  }
891
 
892
  function custom_shortcodes( $sentence, $post_ID ) {
914
  }
915
  update_usermeta($user_ID ,'wp-to-twitter-enable-user' , $_POST['wp-to-twitter-enable-user'] );
916
  update_usermeta($user_ID ,'wp-to-twitter-user-username' , $_POST['wp-to-twitter-user-username'] );
 
 
 
 
917
  }
 
918
  function jd_list_categories() {
919
  $selected = "";
920
  $categories = get_categories('hide_empty=0');
921
  $input = "<form action=\"\" method=\"post\">
922
  <fieldset><legend>".__('Check the categories you want to tweet:','wp-to-twitter')."</legend>
923
  <ul>\n";
924
+ $tweet_categories = get_option( 'tweet_categories' );
925
  foreach ($categories AS $cat) {
926
  if (is_array($tweet_categories)) {
927
  if (in_array($cat->term_id,$tweet_categories)) {
997
  padding: 5px;
998
  margin: 5px;
999
  }
1000
+ #wp-to-twitter ul {
1001
+ list-style-type: disc;
1002
+ margin-left: 3em;
1003
+ font-size: 1em;
1004
+ }
1005
  -->
1006
  </style>";
1007
  }
1018
  $links[] = "<a href='options-general.php?page=wp-to-twitter/wp-to-twitter.php'>" . __('Settings', 'wp-to-twitter', 'wp-to-twitter') . "</a>";
1019
  return $links;
1020
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1021
  //Add Plugin Actions to WordPress
1022
 
1023
  add_filter('plugin_action_links', 'plugin_action', -10, 2);
1047
  add_action( 'add_link', 'jd_twit_link' );
1048
  }
1049
  add_action( 'future_to_publish', 'jd_twit_future' );
 
 
 
 
 
1050
  add_action( 'publish_post', 'jd_twit', 12 );
 
1051
 
1052
  if ( get_option( 'jd_twit_quickpress' ) == '1' ) {
1053
+ add_action( 'new_to_publish', 'jd_twit_quickpress', 12 );
1054
  }
1055
 
1056
  if ( get_option( 'jd_twit_remote' ) == '1' ) {
1061
  add_action( 'admin_menu', 'jd_addTwitterAdminPages' );
1062
 
1063
  register_activation_hook( __FILE__, 'wptotwitter_activate' );
 
 
 
 
1064
  ?>
wp-to-twitter.pot CHANGED
@@ -1,4 +1,4 @@
1
- # Translation of the WordPress plugin WP to Twitter 2.1.1 by Joseph Dolson.
2
  # Copyright (C) 2010 Joseph Dolson
3
  # This file is distributed under the same license as the WP to Twitter package.
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
@@ -6,9 +6,9 @@
6
  #, fuzzy
7
  msgid ""
8
  msgstr ""
9
- "Project-Id-Version: WP to Twitter 2.1.1\n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-to-twitter\n"
11
- "POT-Creation-Date: 2010-05-13 21:26+0000\n"
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"
@@ -16,306 +16,264 @@ msgstr ""
16
  "Content-Type: text/plain; charset=utf-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
- #: functions.php:248
20
  msgid ""
21
  "[<a href='options-general.php?page=wp-to-twitter/wp-to-twitter.php'>Hide</"
22
  "a>] If you're experiencing trouble, please copy these settings into any "
23
  "request for support."
24
  msgstr ""
25
 
26
- #: wp-to-twitter-manager.php:76
27
- msgid "Please <a href='#twitterpw'>add your Twitter password</a>. "
28
  msgstr ""
29
 
30
  #: wp-to-twitter-manager.php:82
31
- msgid "WP to Twitter Errors Cleared"
32
- msgstr ""
33
-
34
- #: wp-to-twitter-manager.php:93
35
  msgid ""
36
- "Twitter API settings reset. You may need to change your username and "
37
- "password settings, if they are not the same as the alternate service "
38
- "previously in use."
39
  msgstr ""
40
 
41
- #: wp-to-twitter-manager.php:103
42
- msgid "Twitter-compatible API settings updated. "
43
  msgstr ""
44
 
45
- #: wp-to-twitter-manager.php:105
46
- msgid ""
47
- "You have configured WP to Twitter to use both Twitter and your selected "
48
- "service. Remember to add your username and login information for both "
49
- "services."
50
  msgstr ""
51
 
52
- #: wp-to-twitter-manager.php:114
53
  msgid ""
54
  "Sorry! I couldn't get in touch with the Twitter servers to post your new "
55
  "blog post. Your tweet has been stored in a custom field attached to the "
56
  "post, so you can Tweet it manually if you wish! "
57
  msgstr ""
58
 
59
- #: wp-to-twitter-manager.php:116
60
  msgid ""
61
  "Sorry! I couldn't get in touch with the Twitter servers to post your "
62
  "<strong>new link</strong>! You'll have to post it manually, I'm afraid. "
63
  msgstr ""
64
 
65
- #: wp-to-twitter-manager.php:145
66
  msgid "WP to Twitter Advanced Options Updated"
67
  msgstr ""
68
 
69
- #: wp-to-twitter-manager.php:162
70
  msgid ""
71
  "You must add your Bit.ly login and API key in order to shorten URLs with Bit."
72
  "ly."
73
  msgstr ""
74
 
75
- #: wp-to-twitter-manager.php:166
76
  msgid ""
77
  "You must add your YOURLS remote URL, login, and password in order to shorten "
78
  "URLs with a remote installation of YOURLS."
79
  msgstr ""
80
 
81
- #: wp-to-twitter-manager.php:170
82
  msgid ""
83
  "You must add your YOURLS server path in order to shorten URLs with a remote "
84
  "installation of YOURLS."
85
  msgstr ""
86
 
87
- #: wp-to-twitter-manager.php:174
88
  msgid "WP to Twitter Options Updated"
89
  msgstr ""
90
 
91
- #: wp-to-twitter-manager.php:184
92
  msgid "Category limits updated."
93
  msgstr ""
94
 
95
- #: wp-to-twitter-manager.php:188
96
  msgid "Category limits unset."
97
  msgstr ""
98
 
99
- #: wp-to-twitter-manager.php:209
100
- msgid "Twitter login and password updated. "
101
- msgstr ""
102
-
103
- #: wp-to-twitter-manager.php:211
104
- msgid "You need to provide your Twitter login and password! "
105
- msgstr ""
106
-
107
- #: wp-to-twitter-manager.php:218
108
  msgid "YOURLS password updated. "
109
  msgstr ""
110
 
111
- #: wp-to-twitter-manager.php:221
112
  msgid ""
113
  "YOURLS password deleted. You will be unable to use your remote YOURLS "
114
  "account to create short URLS."
115
  msgstr ""
116
 
117
- #: wp-to-twitter-manager.php:223
118
  msgid "Failed to save your YOURLS password! "
119
  msgstr ""
120
 
121
- #: wp-to-twitter-manager.php:227
122
  msgid "YOURLS username added. "
123
  msgstr ""
124
 
125
- #: wp-to-twitter-manager.php:231
126
  msgid "YOURLS API url added. "
127
  msgstr ""
128
 
129
- #: wp-to-twitter-manager.php:236
 
 
 
 
130
  msgid "YOURLS local server path added. "
131
  msgstr ""
132
 
133
- #: wp-to-twitter-manager.php:238
134
  msgid "The path to your YOURLS installation is not correct. "
135
  msgstr ""
136
 
137
- #: wp-to-twitter-manager.php:243
 
 
 
 
138
  msgid "YOURLS will use Post ID for short URL slug."
139
  msgstr ""
140
 
141
- #: wp-to-twitter-manager.php:246
142
  msgid "YOURLS will not use Post ID for the short URL slug."
143
  msgstr ""
144
 
145
- #: wp-to-twitter-manager.php:253
146
  msgid "Cligs API Key Updated"
147
  msgstr ""
148
 
149
- #: wp-to-twitter-manager.php:256
150
  msgid ""
151
  "Cli.gs API Key deleted. Cli.gs created by WP to Twitter will no longer be "
152
  "associated with your account. "
153
  msgstr ""
154
 
155
- #: wp-to-twitter-manager.php:258
156
  msgid ""
157
  "Cli.gs API Key not added - <a href='http://cli.gs/user/api/'>get one here</"
158
  "a>! "
159
  msgstr ""
160
 
161
- #: wp-to-twitter-manager.php:264
162
  msgid "Bit.ly API Key Updated."
163
  msgstr ""
164
 
165
- #: wp-to-twitter-manager.php:267
166
  msgid ""
167
  "Bit.ly API Key deleted. You cannot use the Bit.ly API without an API key. "
168
  msgstr ""
169
 
170
- #: wp-to-twitter-manager.php:269
171
  msgid ""
172
  "Bit.ly API Key not added - <a href='http://bit.ly/account/'>get one here</"
173
  "a>! An API key is required to use the Bit.ly URL shortening service."
174
  msgstr ""
175
 
176
- #: wp-to-twitter-manager.php:273
177
  msgid " Bit.ly User Login Updated."
178
  msgstr ""
179
 
180
- #: wp-to-twitter-manager.php:276
181
  msgid ""
182
  "Bit.ly User Login deleted. You cannot use the Bit.ly API without providing "
183
  "your username. "
184
  msgstr ""
185
 
186
- #: wp-to-twitter-manager.php:278
187
  msgid ""
188
  "Bit.ly Login not added - <a href='http://bit.ly/account/'>get one here</a>! "
189
  msgstr ""
190
 
191
- #: wp-to-twitter-manager.php:372
192
- msgid ""
193
- "<li><strong>Your selected URL shortener does not require testing.</strong></"
194
- "li>"
195
  msgstr ""
196
 
197
- #: wp-to-twitter-manager.php:375
198
  msgid ""
199
  "<li class=\"error\"><strong>WP to Twitter was unable to contact your "
200
  "selected URL shortening service.</strong></li>"
201
  msgstr ""
202
 
203
- #: wp-to-twitter-manager.php:379
204
  msgid ""
205
  "<li><strong>WP to Twitter successfully contacted your selected URL "
206
  "shortening service.</strong> The following link should point to your blog "
207
  "homepage:"
208
  msgstr ""
209
 
210
- #: wp-to-twitter-manager.php:390
211
  msgid ""
212
- "<li><strong>WP to Twitter successfully submitted a status update to your "
213
- "primary update service.</strong></li>"
214
  msgstr ""
215
 
216
- #: wp-to-twitter-manager.php:393
217
  msgid ""
218
- "<li class=\"error\"><strong>WP to Twitter failed to submit an update to your "
219
- "primary update service.</strong></li>"
220
  msgstr ""
221
 
222
- #: wp-to-twitter-manager.php:394
223
- msgid "Twitter returned this error:"
224
  msgstr ""
225
 
226
- #: wp-to-twitter-manager.php:398
227
- msgid ""
228
- "<li class=\"error\"><strong>WP to Twitter failed to contact your primary "
229
- "update service.</strong></li>"
230
- msgstr ""
231
-
232
- #: wp-to-twitter-manager.php:399
233
- msgid "No error was returned."
234
- msgstr ""
235
-
236
- #: wp-to-twitter-manager.php:406
237
- msgid ""
238
- "<li><strong>WP to Twitter successfully submitted a status update to your "
239
- "secondary update service.</strong></li>"
240
- msgstr ""
241
-
242
- #: wp-to-twitter-manager.php:409
243
- msgid ""
244
- "<li class=\"error\"><strong>WP to Twitter failed to submit an update to your "
245
- "secondary update service.</strong></li>"
246
- msgstr ""
247
-
248
- #: wp-to-twitter-manager.php:410
249
- msgid "The service returned this error:"
250
- msgstr ""
251
-
252
- #: wp-to-twitter-manager.php:417
253
- msgid ""
254
- "<li><strong>Your server should run WP to Twitter successfully.</strong></li>"
255
- msgstr ""
256
-
257
- #: wp-to-twitter-manager.php:420
258
  msgid ""
259
  "<li class=\"error\"><strong>Your server does not appear to support the "
260
  "required methods for WP to Twitter to function.</strong> You can try it "
261
  "anyway - these tests aren't perfect.</li>"
262
  msgstr ""
263
 
264
- #: wp-to-twitter-manager.php:430
265
  msgid ""
266
- "This plugin may not fully work in your server environment. The plugin failed "
267
- "to contact both a URL shortener API and the Twitter service API."
268
  msgstr ""
269
 
270
- #: wp-to-twitter-manager.php:444
271
  msgid "WP to Twitter Options"
272
  msgstr ""
273
 
274
- #: wp-to-twitter-manager.php:452 wp-to-twitter.php:925
275
  msgid "Get Support"
276
  msgstr ""
277
 
278
- #: wp-to-twitter-manager.php:453
279
  msgid "Export Settings"
280
  msgstr ""
281
 
282
- #: wp-to-twitter-manager.php:454 wp-to-twitter.php:925
283
  msgid "Make a Donation"
284
  msgstr ""
285
 
286
- #: wp-to-twitter-manager.php:469
287
  msgid "Shortcodes available in post update templates:"
288
  msgstr ""
289
 
290
- #: wp-to-twitter-manager.php:471
291
  msgid "<code>#title#</code>: the title of your blog post"
292
  msgstr ""
293
 
294
- #: wp-to-twitter-manager.php:472
295
  msgid "<code>#blog#</code>: the title of your blog"
296
  msgstr ""
297
 
298
- #: wp-to-twitter-manager.php:473
299
  msgid "<code>#post#</code>: a short excerpt of the post content"
300
  msgstr ""
301
 
302
- #: wp-to-twitter-manager.php:474
303
  msgid "<code>#category#</code>: the first selected category for the post"
304
  msgstr ""
305
 
306
- #: wp-to-twitter-manager.php:475
307
  msgid "<code>#date#</code>: the post date"
308
  msgstr ""
309
 
310
- #: wp-to-twitter-manager.php:476
311
  msgid "<code>#url#</code>: the post URL"
312
  msgstr ""
313
 
314
- #: wp-to-twitter-manager.php:477
315
- msgid "<code>#author#</code>: the post author'"
316
  msgstr ""
317
 
318
- #: wp-to-twitter-manager.php:479
319
  msgid ""
320
  "You can also create custom shortcodes to access WordPress custom fields. Use "
321
  "doubled square brackets surrounding the name of your custom field to add the "
@@ -323,14 +281,14 @@ msgid ""
323
  "[[custom_field]]</code></p>"
324
  msgstr ""
325
 
326
- #: wp-to-twitter-manager.php:484
327
  msgid ""
328
  "<p>One or more of your last posts has failed to send it's status update to "
329
  "Twitter. Your Tweet has been saved in your post custom fields, and you can "
330
  "re-Tweet it at your leisure.</p>"
331
  msgstr ""
332
 
333
- #: wp-to-twitter-manager.php:487
334
  msgid ""
335
  "<p>The query to the URL shortener API failed, and your URL was not shrunk. "
336
  "The full post URL was attached to your Tweet. Check with your URL shortening "
@@ -338,362 +296,312 @@ msgid ""
338
  "\">Cli.gs Blog</a>] [<a href=\"http://blog.bit.ly\">Bit.ly Blog</a>]</p>"
339
  msgstr ""
340
 
341
- #: wp-to-twitter-manager.php:494
342
  msgid "Clear 'WP to Twitter' Error Messages"
343
  msgstr ""
344
 
345
- #: wp-to-twitter-manager.php:507
346
  msgid "Basic Settings"
347
  msgstr ""
348
 
349
- #: wp-to-twitter-manager.php:513
350
  msgid "Tweet Templates"
351
  msgstr ""
352
 
353
- #: wp-to-twitter-manager.php:516
354
  msgid "Update when a post is published"
355
  msgstr ""
356
 
357
- #: wp-to-twitter-manager.php:516
358
  msgid "Text for new post updates:"
359
  msgstr ""
360
 
361
- #: wp-to-twitter-manager.php:521
362
  msgid "Update when a post is edited"
363
  msgstr ""
364
 
365
- #: wp-to-twitter-manager.php:521
366
  msgid "Text for editing updates:"
367
  msgstr ""
368
 
369
- #: wp-to-twitter-manager.php:525
 
 
 
 
 
370
  msgid "Update Twitter when new Wordpress Pages are published"
371
  msgstr ""
372
 
373
- #: wp-to-twitter-manager.php:525
374
  msgid "Text for new page updates:"
375
  msgstr ""
376
 
377
- #: wp-to-twitter-manager.php:529
378
  msgid "Update Twitter when WordPress Pages are edited"
379
  msgstr ""
380
 
381
- #: wp-to-twitter-manager.php:529
382
  msgid "Text for page edit updates:"
383
  msgstr ""
384
 
385
- #: wp-to-twitter-manager.php:533
386
  msgid "Update Twitter when you post a Blogroll link"
387
  msgstr ""
388
 
389
- #: wp-to-twitter-manager.php:534
390
  msgid "Text for new link updates:"
391
  msgstr ""
392
 
393
- #: wp-to-twitter-manager.php:534
394
  msgid ""
395
  "Available shortcodes: <code>#url#</code>, <code>#title#</code>, and "
396
  "<code>#description#</code>."
397
  msgstr ""
398
 
399
- #: wp-to-twitter-manager.php:538
400
  msgid "Choose your short URL service (account settings below)"
401
  msgstr ""
402
 
403
- #: wp-to-twitter-manager.php:541
404
  msgid "Use Cli.gs for my URL shortener."
405
  msgstr ""
406
 
407
- #: wp-to-twitter-manager.php:542
408
  msgid "Use Bit.ly for my URL shortener."
409
  msgstr ""
410
 
411
- #: wp-to-twitter-manager.php:543
412
  msgid "YOURLS (installed on this server)"
413
  msgstr ""
414
 
415
- #: wp-to-twitter-manager.php:544
416
  msgid "YOURLS (installed on a remote server)"
417
  msgstr ""
418
 
419
- #: wp-to-twitter-manager.php:545
420
  msgid "Use WordPress as a URL shortener."
421
  msgstr ""
422
 
423
- #: wp-to-twitter-manager.php:546
424
  msgid "Don't shorten URLs."
425
  msgstr ""
426
 
427
- #: wp-to-twitter-manager.php:548
428
  msgid ""
429
  "Using WordPress as a URL shortener will send URLs to Twitter in the default "
430
  "URL format for WordPress: <code>http://domain.com/wpdir/?p=123</code>. "
431
  "Google Analytics is not available when using WordPress shortened URLs."
432
  msgstr ""
433
 
434
- #: wp-to-twitter-manager.php:554
435
  msgid "Save WP->Twitter Options"
436
  msgstr ""
437
 
438
- #: wp-to-twitter-manager.php:580 wp-to-twitter-manager.php:599
439
- msgid "(<em>Saved</em>)"
440
- msgstr ""
441
-
442
- #: wp-to-twitter-manager.php:584 wp-to-twitter-manager.php:603
443
  msgid ""
444
- "&raquo; <small>Don't have a Twitter account? <a href='http://www.twitter."
445
- "com'>Get one for free here</a>"
446
  msgstr ""
447
 
448
- #: wp-to-twitter-manager.php:590
449
- msgid "Your Twitter account details"
450
- msgstr ""
451
-
452
- #: wp-to-twitter-manager.php:591
453
- msgid "These are your settings for Twitter as a second update service."
454
- msgstr ""
455
-
456
- #: wp-to-twitter-manager.php:595
457
- msgid "Your Twitter username:"
458
- msgstr ""
459
-
460
- #: wp-to-twitter-manager.php:599
461
- msgid "Your Twitter password:"
462
- msgstr ""
463
-
464
- #: wp-to-twitter-manager.php:603
465
- msgid "Save Twitter Login Info"
466
- msgstr ""
467
-
468
- #: wp-to-twitter-manager.php:609
469
  msgid "Your Cli.gs account details"
470
  msgstr ""
471
 
472
- #: wp-to-twitter-manager.php:614
473
  msgid ""
474
  "Your Cli.gs <abbr title='application programming interface'>API</abbr> Key:"
475
  msgstr ""
476
 
477
- #: wp-to-twitter-manager.php:620
478
  msgid ""
479
  "Don't have a Cli.gs account or Cligs API key? <a href='http://cli.gs/user/"
480
  "api/'>Get one free here</a>!<br />You'll need an API key in order to "
481
  "associate the Cligs you create with your Cligs account."
482
  msgstr ""
483
 
484
- #: wp-to-twitter-manager.php:626
485
  msgid "Your Bit.ly account details"
486
  msgstr ""
487
 
488
- #: wp-to-twitter-manager.php:631
489
  msgid "Your Bit.ly username:"
490
  msgstr ""
491
 
492
- #: wp-to-twitter-manager.php:635
493
  msgid ""
494
  "Your Bit.ly <abbr title='application programming interface'>API</abbr> Key:"
495
  msgstr ""
496
 
497
- #: wp-to-twitter-manager.php:642
498
  msgid "Save Bit.ly API Key"
499
  msgstr ""
500
 
501
- #: wp-to-twitter-manager.php:642
502
  msgid "Clear Bit.ly API Key"
503
  msgstr ""
504
 
505
- #: wp-to-twitter-manager.php:642
506
  msgid ""
507
  "A Bit.ly API key and username is required to shorten URLs via the Bit.ly API "
508
  "and WP to Twitter."
509
  msgstr ""
510
 
511
- #: wp-to-twitter-manager.php:647
512
  msgid "Your YOURLS account details"
513
  msgstr ""
514
 
515
- #: wp-to-twitter-manager.php:651
516
  msgid "Path to the YOURLS config file (Local installations)"
517
  msgstr ""
518
 
519
- #: wp-to-twitter-manager.php:652 wp-to-twitter-manager.php:656
520
  msgid "Example:"
521
  msgstr ""
522
 
523
- #: wp-to-twitter-manager.php:655
524
  msgid "URI to the YOURLS API (Remote installations)"
525
  msgstr ""
526
 
527
- #: wp-to-twitter-manager.php:659
528
  msgid "Your YOURLS username:"
529
  msgstr ""
530
 
531
- #: wp-to-twitter-manager.php:663
532
  msgid "Your YOURLS password:"
533
  msgstr ""
534
 
535
- #: wp-to-twitter-manager.php:663
536
  msgid "<em>Saved</em>"
537
  msgstr ""
538
 
539
- #: wp-to-twitter-manager.php:667
540
  msgid "Use Post ID for YOURLS url slug."
541
  msgstr ""
542
 
543
- #: wp-to-twitter-manager.php:672
544
  msgid "Save YOURLS Account Info"
545
  msgstr ""
546
 
547
- #: wp-to-twitter-manager.php:672
548
  msgid "Clear YOURLS password"
549
  msgstr ""
550
 
551
- #: wp-to-twitter-manager.php:672
552
  msgid ""
553
  "A YOURLS password and username is required to shorten URLs via the remote "
554
  "YOURLS API and WP to Twitter."
555
  msgstr ""
556
 
557
- #: wp-to-twitter-manager.php:677
558
- msgid "Change Twitter-compatible Service"
559
- msgstr ""
560
-
561
- #: wp-to-twitter-manager.php:681
562
- msgid "URI for Twitter-compatible Post Status API"
563
- msgstr ""
564
-
565
- #: wp-to-twitter-manager.php:685
566
- msgid "Service Name"
567
- msgstr ""
568
-
569
- #: wp-to-twitter-manager.php:689
570
- msgid "Status Update Character Limit"
571
- msgstr ""
572
-
573
- #: wp-to-twitter-manager.php:693
574
- msgid "Post status updates to both services."
575
- msgstr ""
576
-
577
- #: wp-to-twitter-manager.php:696
578
- msgid "Reset to normal Twitter settings"
579
- msgstr ""
580
-
581
- #: wp-to-twitter-manager.php:699
582
- msgid "Update Twitter Compatible Service"
583
- msgstr ""
584
-
585
- #: wp-to-twitter-manager.php:699
586
- msgid ""
587
- "&raquo; <small>You can use any service using the Twitter-compatible REST API "
588
- "returning data in JSON format with this plugin. Twitter-compatible services "
589
- "include <a href='http://identi.ca'>Identi.ca</a>, <a href='http://shoutem."
590
- "com'>Shoutem.com</a> and <a href='http://chirup.com'>Chirup.com</a>. "
591
- "<strong>No support will be provided for services other than Twitter.</strong>"
592
- msgstr ""
593
-
594
- #: wp-to-twitter-manager.php:716
595
  msgid "Advanced Settings"
596
  msgstr ""
597
 
598
- #: wp-to-twitter-manager.php:723
599
  msgid "Advanced Tweet settings"
600
  msgstr ""
601
 
602
- #: wp-to-twitter-manager.php:726
603
  msgid "Add tags as hashtags on Tweets"
604
  msgstr ""
605
 
606
- #: wp-to-twitter-manager.php:727
607
  msgid "Spaces replaced with:"
608
  msgstr ""
609
 
610
- #: wp-to-twitter-manager.php:728
611
  msgid ""
612
  "Default replacement is an underscore (<code>_</code>). Use <code>[ ]</code> "
613
  "to remove spaces entirely."
614
  msgstr ""
615
 
616
- #: wp-to-twitter-manager.php:731
617
  msgid "Maximum number of tags to include:"
618
  msgstr ""
619
 
620
- #: wp-to-twitter-manager.php:732
621
  msgid "Maximum length in characters for included tags:"
622
  msgstr ""
623
 
624
- #: wp-to-twitter-manager.php:733
625
  msgid ""
626
  "These options allow you to restrict the length and number of WordPress tags "
627
  "sent to Twitter as hashtags. Set to <code>0</code> or leave blank to allow "
628
  "any and all tags."
629
  msgstr ""
630
 
631
- #: wp-to-twitter-manager.php:736
632
  msgid "Length of post excerpt (in characters):"
633
  msgstr ""
634
 
635
- #: wp-to-twitter-manager.php:736
636
  msgid ""
637
  "By default, extracted from the post itself. If you use the 'Excerpt' field, "
638
  "that will be used instead."
639
  msgstr ""
640
 
641
- #: wp-to-twitter-manager.php:739
642
  msgid "WP to Twitter Date Formatting:"
643
  msgstr ""
644
 
645
- #: wp-to-twitter-manager.php:740
646
  msgid ""
647
  "Default is from your general settings. <a href='http://codex.wordpress.org/"
648
  "Formatting_Date_and_Time'>Date Formatting Documentation</a>."
649
  msgstr ""
650
 
651
- #: wp-to-twitter-manager.php:744
652
  msgid "Custom text before all Tweets:"
653
  msgstr ""
654
 
655
- #: wp-to-twitter-manager.php:745
656
  msgid "Custom text after all Tweets:"
657
  msgstr ""
658
 
659
- #: wp-to-twitter-manager.php:748
660
  msgid "Custom field for an alternate URL to be shortened and Tweeted:"
661
  msgstr ""
662
 
663
- #: wp-to-twitter-manager.php:749
664
  msgid ""
665
  "You can use a custom field to send an alternate URL for your post. The value "
666
  "is the name of a custom field containing your external URL."
667
  msgstr ""
668
 
669
- #: wp-to-twitter-manager.php:753
670
  msgid "Special Cases when WordPress should send a Tweet"
671
  msgstr ""
672
 
673
- #: wp-to-twitter-manager.php:756
674
  msgid "Do not post status updates by default"
675
  msgstr ""
676
 
677
- #: wp-to-twitter-manager.php:757
678
  msgid ""
679
  "By default, all posts meeting other requirements will be posted to Twitter. "
680
  "Check this to change your setting."
681
  msgstr ""
682
 
683
- #: wp-to-twitter-manager.php:761
684
  msgid ""
685
  "Send Twitter Updates on remote publication (Post by Email or XMLRPC Client)"
686
  msgstr ""
687
 
688
- #: wp-to-twitter-manager.php:765
 
 
 
 
 
 
689
  msgid "Update Twitter when a post is published using QuickPress"
690
  msgstr ""
691
 
692
- #: wp-to-twitter-manager.php:769
693
  msgid "Google Analytics Settings"
694
  msgstr ""
695
 
696
- #: wp-to-twitter-manager.php:770
697
  msgid ""
698
  "You can track the response from Twitter using Google Analytics by defining a "
699
  "campaign identifier here. You can either define a static identifier or a "
@@ -703,85 +611,94 @@ msgid ""
703
  "additional variable."
704
  msgstr ""
705
 
706
- #: wp-to-twitter-manager.php:774
707
  msgid "Use a Static Identifier with WP-to-Twitter"
708
  msgstr ""
709
 
710
- #: wp-to-twitter-manager.php:775
711
  msgid "Static Campaign identifier for Google Analytics:"
712
  msgstr ""
713
 
714
- #: wp-to-twitter-manager.php:779
715
  msgid "Use a dynamic identifier with Google Analytics and WP-to-Twitter"
716
  msgstr ""
717
 
718
- #: wp-to-twitter-manager.php:780
719
  msgid "What dynamic identifier would you like to use?"
720
  msgstr ""
721
 
722
- #: wp-to-twitter-manager.php:782
723
  msgid "Category"
724
  msgstr ""
725
 
726
- #: wp-to-twitter-manager.php:783
727
  msgid "Post ID"
728
  msgstr ""
729
 
730
- #: wp-to-twitter-manager.php:784
731
  msgid "Post Title"
732
  msgstr ""
733
 
734
- #: wp-to-twitter-manager.php:785
735
  msgid "Author"
736
  msgstr ""
737
 
738
- #: wp-to-twitter-manager.php:790
739
  msgid "Individual Authors"
740
  msgstr ""
741
 
742
- #: wp-to-twitter-manager.php:793
743
  msgid "Authors have individual Twitter accounts"
744
  msgstr ""
745
 
746
- #: wp-to-twitter-manager.php:793
747
  msgid ""
748
- "Authors can set their own Twitter username and password in their user "
749
- "profile."
 
750
  msgstr ""
751
 
752
- #: wp-to-twitter-manager.php:797
753
  msgid "Disable Error Messages"
754
  msgstr ""
755
 
756
- #: wp-to-twitter-manager.php:800
757
  msgid "Disable global URL shortener error messages."
758
  msgstr ""
759
 
760
- #: wp-to-twitter-manager.php:804
761
  msgid "Disable global Twitter API error messages."
762
  msgstr ""
763
 
764
- #: wp-to-twitter-manager.php:810
 
 
 
 
 
 
 
 
765
  msgid "Save Advanced WP->Twitter Options"
766
  msgstr ""
767
 
768
- #: wp-to-twitter-manager.php:824
769
  msgid "Limit Updating Categories"
770
  msgstr ""
771
 
772
- #: wp-to-twitter-manager.php:828
773
  msgid "Select which blog categories will be Tweeted. "
774
  msgstr ""
775
 
776
- #: wp-to-twitter-manager.php:831
777
  msgid "<em>Category limits are disabled.</em>"
778
  msgstr ""
779
 
780
- #: wp-to-twitter-manager.php:845
781
  msgid "Check Support"
782
  msgstr ""
783
 
784
- #: wp-to-twitter-manager.php:845
785
  msgid ""
786
  "Check whether your server supports <a href=\"http://www.joedolson.com/"
787
  "articles/wp-to-twitter/\">WP to Twitter's</a> queries to the Twitter and URL "
@@ -789,57 +706,224 @@ msgid ""
789
  "a URL using your selected methods."
790
  msgstr ""
791
 
792
- #. #-#-#-#-# plugin.pot (WP to Twitter 2.1.1) #-#-#-#-#
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
793
  #. Plugin Name of the plugin/theme
794
- #: wp-to-twitter.php:853
795
  msgid "WP to Twitter"
796
  msgstr ""
797
 
798
- #: wp-to-twitter.php:928
799
  msgid "Don't Tweet this post."
800
  msgstr ""
801
 
802
- #: wp-to-twitter.php:938
803
  msgid "This URL is direct and has not been shortened: "
804
  msgstr ""
805
 
806
- #: wp-to-twitter.php:990 wp-to-twitter.php:1009
807
  msgid "WP to Twitter User Settings"
808
  msgstr ""
809
 
810
- #: wp-to-twitter.php:1001 wp-to-twitter.php:1014
811
- msgid "Enter your own Twitter username."
812
- msgstr ""
813
-
814
- #: wp-to-twitter.php:1005 wp-to-twitter.php:1018
815
- msgid "Enter your own Twitter password."
816
  msgstr ""
817
 
818
- #: wp-to-twitter.php:1005 wp-to-twitter.php:1018
819
- msgid "<em>Password saved</em>"
820
  msgstr ""
821
 
822
- #: wp-to-twitter.php:1013
823
- msgid "Your Twitter Username"
 
 
824
  msgstr ""
825
 
826
- #: wp-to-twitter.php:1017
827
- msgid "Your Twitter Password"
828
  msgstr ""
829
 
830
- #: wp-to-twitter.php:1061
831
  msgid "Check the categories you want to tweet:"
832
  msgstr ""
833
 
834
- #: wp-to-twitter.php:1078
835
  msgid "Set Categories"
836
  msgstr ""
837
 
838
- #: wp-to-twitter.php:1147
839
  msgid "<p>Couldn't locate the settings page.</p>"
840
  msgstr ""
841
 
842
- #: wp-to-twitter.php:1152
843
  msgid "Settings"
844
  msgstr ""
845
 
1
+ # Translation of the WordPress plugin WP to Twitter 2.2.0 (beta 7) by Joseph Dolson.
2
  # Copyright (C) 2010 Joseph Dolson
3
  # This file is distributed under the same license as the WP to Twitter package.
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
6
  #, fuzzy
7
  msgid ""
8
  msgstr ""
9
+ "Project-Id-Version: WP to Twitter 2.2.0 (beta 7)\n"
10
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-to-twitter\n"
11
+ "POT-Creation-Date: 2010-08-26 22:15+0000\n"
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"
16
  "Content-Type: text/plain; charset=utf-8\n"
17
  "Content-Transfer-Encoding: 8bit\n"
18
 
19
+ #: functions.php:222
20
  msgid ""
21
  "[<a href='options-general.php?page=wp-to-twitter/wp-to-twitter.php'>Hide</"
22
  "a>] If you're experiencing trouble, please copy these settings into any "
23
  "request for support."
24
  msgstr ""
25
 
26
+ #: wp-to-twitter-manager.php:74
27
+ msgid "WP to Twitter is now connected with Twitter."
28
  msgstr ""
29
 
30
  #: wp-to-twitter-manager.php:82
 
 
 
 
31
  msgid ""
32
+ "OAuth Authentication Failed. Check your credentials and verify that <a href="
33
+ "\"http://www.twitter.com/\">Twitter</a> is running."
 
34
  msgstr ""
35
 
36
+ #: wp-to-twitter-manager.php:89
37
+ msgid "OAuth Authentication Data Cleared."
38
  msgstr ""
39
 
40
+ #: wp-to-twitter-manager.php:99
41
+ msgid "WP to Twitter Errors Cleared"
 
 
 
42
  msgstr ""
43
 
44
+ #: wp-to-twitter-manager.php:106
45
  msgid ""
46
  "Sorry! I couldn't get in touch with the Twitter servers to post your new "
47
  "blog post. Your tweet has been stored in a custom field attached to the "
48
  "post, so you can Tweet it manually if you wish! "
49
  msgstr ""
50
 
51
+ #: wp-to-twitter-manager.php:108
52
  msgid ""
53
  "Sorry! I couldn't get in touch with the Twitter servers to post your "
54
  "<strong>new link</strong>! You'll have to post it manually, I'm afraid. "
55
  msgstr ""
56
 
57
+ #: wp-to-twitter-manager.php:143
58
  msgid "WP to Twitter Advanced Options Updated"
59
  msgstr ""
60
 
61
+ #: wp-to-twitter-manager.php:160
62
  msgid ""
63
  "You must add your Bit.ly login and API key in order to shorten URLs with Bit."
64
  "ly."
65
  msgstr ""
66
 
67
+ #: wp-to-twitter-manager.php:164
68
  msgid ""
69
  "You must add your YOURLS remote URL, login, and password in order to shorten "
70
  "URLs with a remote installation of YOURLS."
71
  msgstr ""
72
 
73
+ #: wp-to-twitter-manager.php:168
74
  msgid ""
75
  "You must add your YOURLS server path in order to shorten URLs with a remote "
76
  "installation of YOURLS."
77
  msgstr ""
78
 
79
+ #: wp-to-twitter-manager.php:172
80
  msgid "WP to Twitter Options Updated"
81
  msgstr ""
82
 
83
+ #: wp-to-twitter-manager.php:182
84
  msgid "Category limits updated."
85
  msgstr ""
86
 
87
+ #: wp-to-twitter-manager.php:186
88
  msgid "Category limits unset."
89
  msgstr ""
90
 
91
+ #: wp-to-twitter-manager.php:194
 
 
 
 
 
 
 
 
92
  msgid "YOURLS password updated. "
93
  msgstr ""
94
 
95
+ #: wp-to-twitter-manager.php:197
96
  msgid ""
97
  "YOURLS password deleted. You will be unable to use your remote YOURLS "
98
  "account to create short URLS."
99
  msgstr ""
100
 
101
+ #: wp-to-twitter-manager.php:199
102
  msgid "Failed to save your YOURLS password! "
103
  msgstr ""
104
 
105
+ #: wp-to-twitter-manager.php:203
106
  msgid "YOURLS username added. "
107
  msgstr ""
108
 
109
+ #: wp-to-twitter-manager.php:207
110
  msgid "YOURLS API url added. "
111
  msgstr ""
112
 
113
+ #: wp-to-twitter-manager.php:210
114
+ msgid "YOURLS API url removed. "
115
+ msgstr ""
116
+
117
+ #: wp-to-twitter-manager.php:215
118
  msgid "YOURLS local server path added. "
119
  msgstr ""
120
 
121
+ #: wp-to-twitter-manager.php:217
122
  msgid "The path to your YOURLS installation is not correct. "
123
  msgstr ""
124
 
125
+ #: wp-to-twitter-manager.php:221
126
+ msgid "YOURLS local server path removed. "
127
+ msgstr ""
128
+
129
+ #: wp-to-twitter-manager.php:225
130
  msgid "YOURLS will use Post ID for short URL slug."
131
  msgstr ""
132
 
133
+ #: wp-to-twitter-manager.php:228
134
  msgid "YOURLS will not use Post ID for the short URL slug."
135
  msgstr ""
136
 
137
+ #: wp-to-twitter-manager.php:235
138
  msgid "Cligs API Key Updated"
139
  msgstr ""
140
 
141
+ #: wp-to-twitter-manager.php:238
142
  msgid ""
143
  "Cli.gs API Key deleted. Cli.gs created by WP to Twitter will no longer be "
144
  "associated with your account. "
145
  msgstr ""
146
 
147
+ #: wp-to-twitter-manager.php:240
148
  msgid ""
149
  "Cli.gs API Key not added - <a href='http://cli.gs/user/api/'>get one here</"
150
  "a>! "
151
  msgstr ""
152
 
153
+ #: wp-to-twitter-manager.php:246
154
  msgid "Bit.ly API Key Updated."
155
  msgstr ""
156
 
157
+ #: wp-to-twitter-manager.php:249
158
  msgid ""
159
  "Bit.ly API Key deleted. You cannot use the Bit.ly API without an API key. "
160
  msgstr ""
161
 
162
+ #: wp-to-twitter-manager.php:251
163
  msgid ""
164
  "Bit.ly API Key not added - <a href='http://bit.ly/account/'>get one here</"
165
  "a>! An API key is required to use the Bit.ly URL shortening service."
166
  msgstr ""
167
 
168
+ #: wp-to-twitter-manager.php:255
169
  msgid " Bit.ly User Login Updated."
170
  msgstr ""
171
 
172
+ #: wp-to-twitter-manager.php:258
173
  msgid ""
174
  "Bit.ly User Login deleted. You cannot use the Bit.ly API without providing "
175
  "your username. "
176
  msgstr ""
177
 
178
+ #: wp-to-twitter-manager.php:260
179
  msgid ""
180
  "Bit.ly Login not added - <a href='http://bit.ly/account/'>get one here</a>! "
181
  msgstr ""
182
 
183
+ #: wp-to-twitter-manager.php:289
184
+ msgid "No error information is available for your shortener."
 
 
185
  msgstr ""
186
 
187
+ #: wp-to-twitter-manager.php:291
188
  msgid ""
189
  "<li class=\"error\"><strong>WP to Twitter was unable to contact your "
190
  "selected URL shortening service.</strong></li>"
191
  msgstr ""
192
 
193
+ #: wp-to-twitter-manager.php:294
194
  msgid ""
195
  "<li><strong>WP to Twitter successfully contacted your selected URL "
196
  "shortening service.</strong> The following link should point to your blog "
197
  "homepage:"
198
  msgstr ""
199
 
200
+ #: wp-to-twitter-manager.php:303
201
  msgid ""
202
+ "<li><strong>WP to Twitter successfully submitted a status update to Twitter."
203
+ "</strong></li>"
204
  msgstr ""
205
 
206
+ #: wp-to-twitter-manager.php:305
207
  msgid ""
208
+ "<li class=\"error\"><strong>WP to Twitter failed to submit an update to "
209
+ "Twitter.</strong></li>"
210
  msgstr ""
211
 
212
+ #: wp-to-twitter-manager.php:308
213
+ msgid "You have not connected WordPress to Twitter."
214
  msgstr ""
215
 
216
+ #: wp-to-twitter-manager.php:312
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
  msgid ""
218
  "<li class=\"error\"><strong>Your server does not appear to support the "
219
  "required methods for WP to Twitter to function.</strong> You can try it "
220
  "anyway - these tests aren't perfect.</li>"
221
  msgstr ""
222
 
223
+ #: wp-to-twitter-manager.php:316
224
  msgid ""
225
+ "<li><strong>Your server should run WP to Twitter successfully.</strong></li>"
 
226
  msgstr ""
227
 
228
+ #: wp-to-twitter-manager.php:333
229
  msgid "WP to Twitter Options"
230
  msgstr ""
231
 
232
+ #: wp-to-twitter-manager.php:343 wp-to-twitter.php:805
233
  msgid "Get Support"
234
  msgstr ""
235
 
236
+ #: wp-to-twitter-manager.php:344
237
  msgid "Export Settings"
238
  msgstr ""
239
 
240
+ #: wp-to-twitter-manager.php:345 wp-to-twitter.php:805
241
  msgid "Make a Donation"
242
  msgstr ""
243
 
244
+ #: wp-to-twitter-manager.php:360
245
  msgid "Shortcodes available in post update templates:"
246
  msgstr ""
247
 
248
+ #: wp-to-twitter-manager.php:362
249
  msgid "<code>#title#</code>: the title of your blog post"
250
  msgstr ""
251
 
252
+ #: wp-to-twitter-manager.php:363
253
  msgid "<code>#blog#</code>: the title of your blog"
254
  msgstr ""
255
 
256
+ #: wp-to-twitter-manager.php:364
257
  msgid "<code>#post#</code>: a short excerpt of the post content"
258
  msgstr ""
259
 
260
+ #: wp-to-twitter-manager.php:365
261
  msgid "<code>#category#</code>: the first selected category for the post"
262
  msgstr ""
263
 
264
+ #: wp-to-twitter-manager.php:366
265
  msgid "<code>#date#</code>: the post date"
266
  msgstr ""
267
 
268
+ #: wp-to-twitter-manager.php:367
269
  msgid "<code>#url#</code>: the post URL"
270
  msgstr ""
271
 
272
+ #: wp-to-twitter-manager.php:368
273
+ msgid "<code>#author#</code>: the post author"
274
  msgstr ""
275
 
276
+ #: wp-to-twitter-manager.php:370
277
  msgid ""
278
  "You can also create custom shortcodes to access WordPress custom fields. Use "
279
  "doubled square brackets surrounding the name of your custom field to add the "
281
  "[[custom_field]]</code></p>"
282
  msgstr ""
283
 
284
+ #: wp-to-twitter-manager.php:375
285
  msgid ""
286
  "<p>One or more of your last posts has failed to send it's status update to "
287
  "Twitter. Your Tweet has been saved in your post custom fields, and you can "
288
  "re-Tweet it at your leisure.</p>"
289
  msgstr ""
290
 
291
+ #: wp-to-twitter-manager.php:379
292
  msgid ""
293
  "<p>The query to the URL shortener API failed, and your URL was not shrunk. "
294
  "The full post URL was attached to your Tweet. Check with your URL shortening "
296
  "\">Cli.gs Blog</a>] [<a href=\"http://blog.bit.ly\">Bit.ly Blog</a>]</p>"
297
  msgstr ""
298
 
299
+ #: wp-to-twitter-manager.php:386
300
  msgid "Clear 'WP to Twitter' Error Messages"
301
  msgstr ""
302
 
303
+ #: wp-to-twitter-manager.php:402
304
  msgid "Basic Settings"
305
  msgstr ""
306
 
307
+ #: wp-to-twitter-manager.php:408
308
  msgid "Tweet Templates"
309
  msgstr ""
310
 
311
+ #: wp-to-twitter-manager.php:411
312
  msgid "Update when a post is published"
313
  msgstr ""
314
 
315
+ #: wp-to-twitter-manager.php:411
316
  msgid "Text for new post updates:"
317
  msgstr ""
318
 
319
+ #: wp-to-twitter-manager.php:417 wp-to-twitter-manager.php:420
320
  msgid "Update when a post is edited"
321
  msgstr ""
322
 
323
+ #: wp-to-twitter-manager.php:417 wp-to-twitter-manager.php:420
324
  msgid "Text for editing updates:"
325
  msgstr ""
326
 
327
+ #: wp-to-twitter-manager.php:421
328
+ msgid ""
329
+ "You can not disable updates on edits when using Postie or similar plugins."
330
+ msgstr ""
331
+
332
+ #: wp-to-twitter-manager.php:425
333
  msgid "Update Twitter when new Wordpress Pages are published"
334
  msgstr ""
335
 
336
+ #: wp-to-twitter-manager.php:425
337
  msgid "Text for new page updates:"
338
  msgstr ""
339
 
340
+ #: wp-to-twitter-manager.php:429
341
  msgid "Update Twitter when WordPress Pages are edited"
342
  msgstr ""
343
 
344
+ #: wp-to-twitter-manager.php:429
345
  msgid "Text for page edit updates:"
346
  msgstr ""
347
 
348
+ #: wp-to-twitter-manager.php:433
349
  msgid "Update Twitter when you post a Blogroll link"
350
  msgstr ""
351
 
352
+ #: wp-to-twitter-manager.php:434
353
  msgid "Text for new link updates:"
354
  msgstr ""
355
 
356
+ #: wp-to-twitter-manager.php:434
357
  msgid ""
358
  "Available shortcodes: <code>#url#</code>, <code>#title#</code>, and "
359
  "<code>#description#</code>."
360
  msgstr ""
361
 
362
+ #: wp-to-twitter-manager.php:438
363
  msgid "Choose your short URL service (account settings below)"
364
  msgstr ""
365
 
366
+ #: wp-to-twitter-manager.php:441
367
  msgid "Use Cli.gs for my URL shortener."
368
  msgstr ""
369
 
370
+ #: wp-to-twitter-manager.php:442
371
  msgid "Use Bit.ly for my URL shortener."
372
  msgstr ""
373
 
374
+ #: wp-to-twitter-manager.php:443
375
  msgid "YOURLS (installed on this server)"
376
  msgstr ""
377
 
378
+ #: wp-to-twitter-manager.php:444
379
  msgid "YOURLS (installed on a remote server)"
380
  msgstr ""
381
 
382
+ #: wp-to-twitter-manager.php:445
383
  msgid "Use WordPress as a URL shortener."
384
  msgstr ""
385
 
386
+ #: wp-to-twitter-manager.php:446
387
  msgid "Don't shorten URLs."
388
  msgstr ""
389
 
390
+ #: wp-to-twitter-manager.php:448
391
  msgid ""
392
  "Using WordPress as a URL shortener will send URLs to Twitter in the default "
393
  "URL format for WordPress: <code>http://domain.com/wpdir/?p=123</code>. "
394
  "Google Analytics is not available when using WordPress shortened URLs."
395
  msgstr ""
396
 
397
+ #: wp-to-twitter-manager.php:454
398
  msgid "Save WP->Twitter Options"
399
  msgstr ""
400
 
401
+ #: wp-to-twitter-manager.php:466
 
 
 
 
402
  msgid ""
403
+ "<abbr title=\"Uniform Resource Locator\">URL</abbr> Shortener Account "
404
+ "Settings"
405
  msgstr ""
406
 
407
+ #: wp-to-twitter-manager.php:470
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
  msgid "Your Cli.gs account details"
409
  msgstr ""
410
 
411
+ #: wp-to-twitter-manager.php:475
412
  msgid ""
413
  "Your Cli.gs <abbr title='application programming interface'>API</abbr> Key:"
414
  msgstr ""
415
 
416
+ #: wp-to-twitter-manager.php:481
417
  msgid ""
418
  "Don't have a Cli.gs account or Cligs API key? <a href='http://cli.gs/user/"
419
  "api/'>Get one free here</a>!<br />You'll need an API key in order to "
420
  "associate the Cligs you create with your Cligs account."
421
  msgstr ""
422
 
423
+ #: wp-to-twitter-manager.php:487
424
  msgid "Your Bit.ly account details"
425
  msgstr ""
426
 
427
+ #: wp-to-twitter-manager.php:492
428
  msgid "Your Bit.ly username:"
429
  msgstr ""
430
 
431
+ #: wp-to-twitter-manager.php:496
432
  msgid ""
433
  "Your Bit.ly <abbr title='application programming interface'>API</abbr> Key:"
434
  msgstr ""
435
 
436
+ #: wp-to-twitter-manager.php:503
437
  msgid "Save Bit.ly API Key"
438
  msgstr ""
439
 
440
+ #: wp-to-twitter-manager.php:503
441
  msgid "Clear Bit.ly API Key"
442
  msgstr ""
443
 
444
+ #: wp-to-twitter-manager.php:503
445
  msgid ""
446
  "A Bit.ly API key and username is required to shorten URLs via the Bit.ly API "
447
  "and WP to Twitter."
448
  msgstr ""
449
 
450
+ #: wp-to-twitter-manager.php:508
451
  msgid "Your YOURLS account details"
452
  msgstr ""
453
 
454
+ #: wp-to-twitter-manager.php:512
455
  msgid "Path to the YOURLS config file (Local installations)"
456
  msgstr ""
457
 
458
+ #: wp-to-twitter-manager.php:513 wp-to-twitter-manager.php:517
459
  msgid "Example:"
460
  msgstr ""
461
 
462
+ #: wp-to-twitter-manager.php:516
463
  msgid "URI to the YOURLS API (Remote installations)"
464
  msgstr ""
465
 
466
+ #: wp-to-twitter-manager.php:520
467
  msgid "Your YOURLS username:"
468
  msgstr ""
469
 
470
+ #: wp-to-twitter-manager.php:524
471
  msgid "Your YOURLS password:"
472
  msgstr ""
473
 
474
+ #: wp-to-twitter-manager.php:524
475
  msgid "<em>Saved</em>"
476
  msgstr ""
477
 
478
+ #: wp-to-twitter-manager.php:528
479
  msgid "Use Post ID for YOURLS url slug."
480
  msgstr ""
481
 
482
+ #: wp-to-twitter-manager.php:533
483
  msgid "Save YOURLS Account Info"
484
  msgstr ""
485
 
486
+ #: wp-to-twitter-manager.php:533
487
  msgid "Clear YOURLS password"
488
  msgstr ""
489
 
490
+ #: wp-to-twitter-manager.php:533
491
  msgid ""
492
  "A YOURLS password and username is required to shorten URLs via the remote "
493
  "YOURLS API and WP to Twitter."
494
  msgstr ""
495
 
496
+ #: wp-to-twitter-manager.php:550
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
497
  msgid "Advanced Settings"
498
  msgstr ""
499
 
500
+ #: wp-to-twitter-manager.php:557
501
  msgid "Advanced Tweet settings"
502
  msgstr ""
503
 
504
+ #: wp-to-twitter-manager.php:560
505
  msgid "Add tags as hashtags on Tweets"
506
  msgstr ""
507
 
508
+ #: wp-to-twitter-manager.php:561
509
  msgid "Spaces replaced with:"
510
  msgstr ""
511
 
512
+ #: wp-to-twitter-manager.php:562
513
  msgid ""
514
  "Default replacement is an underscore (<code>_</code>). Use <code>[ ]</code> "
515
  "to remove spaces entirely."
516
  msgstr ""
517
 
518
+ #: wp-to-twitter-manager.php:565
519
  msgid "Maximum number of tags to include:"
520
  msgstr ""
521
 
522
+ #: wp-to-twitter-manager.php:566
523
  msgid "Maximum length in characters for included tags:"
524
  msgstr ""
525
 
526
+ #: wp-to-twitter-manager.php:567
527
  msgid ""
528
  "These options allow you to restrict the length and number of WordPress tags "
529
  "sent to Twitter as hashtags. Set to <code>0</code> or leave blank to allow "
530
  "any and all tags."
531
  msgstr ""
532
 
533
+ #: wp-to-twitter-manager.php:570
534
  msgid "Length of post excerpt (in characters):"
535
  msgstr ""
536
 
537
+ #: wp-to-twitter-manager.php:570
538
  msgid ""
539
  "By default, extracted from the post itself. If you use the 'Excerpt' field, "
540
  "that will be used instead."
541
  msgstr ""
542
 
543
+ #: wp-to-twitter-manager.php:573
544
  msgid "WP to Twitter Date Formatting:"
545
  msgstr ""
546
 
547
+ #: wp-to-twitter-manager.php:574
548
  msgid ""
549
  "Default is from your general settings. <a href='http://codex.wordpress.org/"
550
  "Formatting_Date_and_Time'>Date Formatting Documentation</a>."
551
  msgstr ""
552
 
553
+ #: wp-to-twitter-manager.php:578
554
  msgid "Custom text before all Tweets:"
555
  msgstr ""
556
 
557
+ #: wp-to-twitter-manager.php:579
558
  msgid "Custom text after all Tweets:"
559
  msgstr ""
560
 
561
+ #: wp-to-twitter-manager.php:582
562
  msgid "Custom field for an alternate URL to be shortened and Tweeted:"
563
  msgstr ""
564
 
565
+ #: wp-to-twitter-manager.php:583
566
  msgid ""
567
  "You can use a custom field to send an alternate URL for your post. The value "
568
  "is the name of a custom field containing your external URL."
569
  msgstr ""
570
 
571
+ #: wp-to-twitter-manager.php:587
572
  msgid "Special Cases when WordPress should send a Tweet"
573
  msgstr ""
574
 
575
+ #: wp-to-twitter-manager.php:590
576
  msgid "Do not post status updates by default"
577
  msgstr ""
578
 
579
+ #: wp-to-twitter-manager.php:591
580
  msgid ""
581
  "By default, all posts meeting other requirements will be posted to Twitter. "
582
  "Check this to change your setting."
583
  msgstr ""
584
 
585
+ #: wp-to-twitter-manager.php:595
586
  msgid ""
587
  "Send Twitter Updates on remote publication (Post by Email or XMLRPC Client)"
588
  msgstr ""
589
 
590
+ #: wp-to-twitter-manager.php:597
591
+ msgid ""
592
+ "I'm using a plugin to post by email, such as Postie. Only check this if your "
593
+ "updates do not work."
594
+ msgstr ""
595
+
596
+ #: wp-to-twitter-manager.php:601
597
  msgid "Update Twitter when a post is published using QuickPress"
598
  msgstr ""
599
 
600
+ #: wp-to-twitter-manager.php:605
601
  msgid "Google Analytics Settings"
602
  msgstr ""
603
 
604
+ #: wp-to-twitter-manager.php:606
605
  msgid ""
606
  "You can track the response from Twitter using Google Analytics by defining a "
607
  "campaign identifier here. You can either define a static identifier or a "
611
  "additional variable."
612
  msgstr ""
613
 
614
+ #: wp-to-twitter-manager.php:610
615
  msgid "Use a Static Identifier with WP-to-Twitter"
616
  msgstr ""
617
 
618
+ #: wp-to-twitter-manager.php:611
619
  msgid "Static Campaign identifier for Google Analytics:"
620
  msgstr ""
621
 
622
+ #: wp-to-twitter-manager.php:615
623
  msgid "Use a dynamic identifier with Google Analytics and WP-to-Twitter"
624
  msgstr ""
625
 
626
+ #: wp-to-twitter-manager.php:616
627
  msgid "What dynamic identifier would you like to use?"
628
  msgstr ""
629
 
630
+ #: wp-to-twitter-manager.php:618
631
  msgid "Category"
632
  msgstr ""
633
 
634
+ #: wp-to-twitter-manager.php:619
635
  msgid "Post ID"
636
  msgstr ""
637
 
638
+ #: wp-to-twitter-manager.php:620
639
  msgid "Post Title"
640
  msgstr ""
641
 
642
+ #: wp-to-twitter-manager.php:621
643
  msgid "Author"
644
  msgstr ""
645
 
646
+ #: wp-to-twitter-manager.php:626
647
  msgid "Individual Authors"
648
  msgstr ""
649
 
650
+ #: wp-to-twitter-manager.php:629
651
  msgid "Authors have individual Twitter accounts"
652
  msgstr ""
653
 
654
+ #: wp-to-twitter-manager.php:629
655
  msgid ""
656
+ "Authors can set their username in their user profile. As of version 2.2.0, "
657
+ "this feature no longer allows authors to post to their own Twitter accounts. "
658
+ "It can only add an @reference to the author."
659
  msgstr ""
660
 
661
+ #: wp-to-twitter-manager.php:633
662
  msgid "Disable Error Messages"
663
  msgstr ""
664
 
665
+ #: wp-to-twitter-manager.php:636
666
  msgid "Disable global URL shortener error messages."
667
  msgstr ""
668
 
669
+ #: wp-to-twitter-manager.php:640
670
  msgid "Disable global Twitter API error messages."
671
  msgstr ""
672
 
673
+ #: wp-to-twitter-manager.php:644
674
+ msgid "Disable notification to implement OAuth"
675
+ msgstr ""
676
+
677
+ #: wp-to-twitter-manager.php:648
678
+ msgid "Get Debugging Data for OAuth Connection"
679
+ msgstr ""
680
+
681
+ #: wp-to-twitter-manager.php:654
682
  msgid "Save Advanced WP->Twitter Options"
683
  msgstr ""
684
 
685
+ #: wp-to-twitter-manager.php:668
686
  msgid "Limit Updating Categories"
687
  msgstr ""
688
 
689
+ #: wp-to-twitter-manager.php:672
690
  msgid "Select which blog categories will be Tweeted. "
691
  msgstr ""
692
 
693
+ #: wp-to-twitter-manager.php:675
694
  msgid "<em>Category limits are disabled.</em>"
695
  msgstr ""
696
 
697
+ #: wp-to-twitter-manager.php:689
698
  msgid "Check Support"
699
  msgstr ""
700
 
701
+ #: wp-to-twitter-manager.php:689
702
  msgid ""
703
  "Check whether your server supports <a href=\"http://www.joedolson.com/"
704
  "articles/wp-to-twitter/\">WP to Twitter's</a> queries to the Twitter and URL "
706
  "a URL using your selected methods."
707
  msgstr ""
708
 
709
+ #: wp-to-twitter-oauth.php:105 wp-to-twitter-oauth.php:143
710
+ msgid "Connect to Twitter"
711
+ msgstr ""
712
+
713
+ #: wp-to-twitter-oauth.php:108
714
+ msgid ""
715
+ "The process to set up OAuth authentication for your web site is needlessly "
716
+ "laborious. It is also confusing. However, this is the only method available "
717
+ "from Twitter at this time. Note that you will not, at any time, enter you "
718
+ "Twitter username or password into WP to Twitter; they are not used in OAuth "
719
+ "authentication."
720
+ msgstr ""
721
+
722
+ #: wp-to-twitter-oauth.php:111
723
+ msgid "1. Register this site as an application on "
724
+ msgstr ""
725
+
726
+ #: wp-to-twitter-oauth.php:111
727
+ msgid "Twitter's application registration page"
728
+ msgstr ""
729
+
730
+ #: wp-to-twitter-oauth.php:113
731
+ msgid ""
732
+ "If you're not currently logged in, use the Twitter username and password "
733
+ "which you want associated with this site"
734
+ msgstr ""
735
+
736
+ #: wp-to-twitter-oauth.php:114
737
+ msgid ""
738
+ "Your Application's Name will be what shows up after \"via\" in your twitter "
739
+ "stream; previously, \"WP to Twitter.\" Your application name cannot include "
740
+ "the word \"Twitter.\" I suggest using the name of your web site."
741
+ msgstr ""
742
+
743
+ #: wp-to-twitter-oauth.php:115
744
+ msgid "Your Application Description can be whatever you want."
745
+ msgstr ""
746
+
747
+ #: wp-to-twitter-oauth.php:116
748
+ msgid "Application Type should be set on "
749
+ msgstr ""
750
+
751
+ #: wp-to-twitter-oauth.php:116
752
+ msgid "Browser"
753
+ msgstr ""
754
+
755
+ #: wp-to-twitter-oauth.php:117
756
+ msgid "The Callback URL should be "
757
+ msgstr ""
758
+
759
+ #: wp-to-twitter-oauth.php:118
760
+ msgid "Default Access type must be set to "
761
+ msgstr ""
762
+
763
+ #: wp-to-twitter-oauth.php:118
764
+ msgid "Read &amp; Write"
765
+ msgstr ""
766
+
767
+ #: wp-to-twitter-oauth.php:118
768
+ msgid "(this is NOT the default)"
769
+ msgstr ""
770
+
771
+ #: wp-to-twitter-oauth.php:120
772
+ msgid ""
773
+ "Once you have registered your site as an application, you will be provided "
774
+ "with a consumer key and a consumer secret."
775
+ msgstr ""
776
+
777
+ #: wp-to-twitter-oauth.php:121
778
+ msgid ""
779
+ "2. Copy and paste your consumer key and consumer secret into the fields below"
780
+ msgstr ""
781
+
782
+ #: wp-to-twitter-oauth.php:124
783
+ msgid "Twitter Consumer Key"
784
+ msgstr ""
785
+
786
+ #: wp-to-twitter-oauth.php:128
787
+ msgid "Twitter Consumer Secret"
788
+ msgstr ""
789
+
790
+ #: wp-to-twitter-oauth.php:131
791
+ msgid ""
792
+ "3. Copy and paste your Access Token and Access Token Secret into the fields "
793
+ "below"
794
+ msgstr ""
795
+
796
+ #: wp-to-twitter-oauth.php:132
797
+ msgid ""
798
+ "On the right hand side of your application page, click on 'My Access Token'."
799
+ msgstr ""
800
+
801
+ #: wp-to-twitter-oauth.php:134
802
+ msgid "Access Token"
803
+ msgstr ""
804
+
805
+ #: wp-to-twitter-oauth.php:138
806
+ msgid "Access Token Secret"
807
+ msgstr ""
808
+
809
+ #: wp-to-twitter-oauth.php:153
810
+ msgid "Disconnect from Twitter"
811
+ msgstr ""
812
+
813
+ #: wp-to-twitter-oauth.php:160
814
+ msgid "Twitter Username "
815
+ msgstr ""
816
+
817
+ #: wp-to-twitter-oauth.php:161
818
+ msgid "Consumer Key "
819
+ msgstr ""
820
+
821
+ #: wp-to-twitter-oauth.php:162
822
+ msgid "Consumer Secret "
823
+ msgstr ""
824
+
825
+ #: wp-to-twitter-oauth.php:163
826
+ msgid "Access Token "
827
+ msgstr ""
828
+
829
+ #: wp-to-twitter-oauth.php:164
830
+ msgid "Access Token Secret "
831
+ msgstr ""
832
+
833
+ #: wp-to-twitter-oauth.php:167
834
+ msgid "Disconnect Your WordPress and Twitter Account"
835
+ msgstr ""
836
+
837
+ #: wp-to-twitter.php:55
838
+ #, php-format
839
+ msgid ""
840
+ "Twitter now requires authentication by OAuth. You will need you to update "
841
+ "your <a href=\"%s\">settings</a> in order to continue to use WP to Twitter."
842
+ msgstr ""
843
+
844
+ #: wp-to-twitter.php:136
845
+ msgid "200 OK: Success!"
846
+ msgstr ""
847
+
848
+ #: wp-to-twitter.php:139
849
+ msgid ""
850
+ "400 Bad Request: The request was invalid. This is the status code returned "
851
+ "during rate limiting."
852
+ msgstr ""
853
+
854
+ #: wp-to-twitter.php:142
855
+ msgid "401 Unauthorized: Authentication credentials were missing or incorrect."
856
+ msgstr ""
857
+
858
+ #: wp-to-twitter.php:145
859
+ msgid ""
860
+ "403 Forbidden: The request is understood, but it has been refused. This code "
861
+ "is used when requests are being denied due to update limits."
862
+ msgstr ""
863
+
864
+ #: wp-to-twitter.php:147
865
+ msgid "500 Internal Server Error: Something is broken at Twitter."
866
+ msgstr ""
867
+
868
+ #: wp-to-twitter.php:150
869
+ msgid ""
870
+ "503 Service Unavailable: The Twitter servers are up, but overloaded with "
871
+ "requests Please try again later."
872
+ msgstr ""
873
+
874
+ #: wp-to-twitter.php:153
875
+ msgid "502 Bad Gateway: Twitter is down or being upgraded."
876
+ msgstr ""
877
+
878
+ #. #-#-#-#-# plugin.pot (WP to Twitter 2.2.0 (beta 7)) #-#-#-#-#
879
  #. Plugin Name of the plugin/theme
880
+ #: wp-to-twitter.php:732
881
  msgid "WP to Twitter"
882
  msgstr ""
883
 
884
+ #: wp-to-twitter.php:808
885
  msgid "Don't Tweet this post."
886
  msgstr ""
887
 
888
+ #: wp-to-twitter.php:818
889
  msgid "This URL is direct and has not been shortened: "
890
  msgstr ""
891
 
892
+ #: wp-to-twitter.php:872
893
  msgid "WP to Twitter User Settings"
894
  msgstr ""
895
 
896
+ #: wp-to-twitter.php:876
897
+ msgid "Use My Twitter Username"
 
 
 
 
898
  msgstr ""
899
 
900
+ #: wp-to-twitter.php:877
901
+ msgid "Tweet my posts with an @ reference to my username."
902
  msgstr ""
903
 
904
+ #: wp-to-twitter.php:878
905
+ msgid ""
906
+ "Tweet my posts with an @ reference to both my username and to the main site "
907
+ "username."
908
  msgstr ""
909
 
910
+ #: wp-to-twitter.php:883
911
+ msgid "Enter your own Twitter username."
912
  msgstr ""
913
 
914
+ #: wp-to-twitter.php:919
915
  msgid "Check the categories you want to tweet:"
916
  msgstr ""
917
 
918
+ #: wp-to-twitter.php:936
919
  msgid "Set Categories"
920
  msgstr ""
921
 
922
+ #: wp-to-twitter.php:1010
923
  msgid "<p>Couldn't locate the settings page.</p>"
924
  msgstr ""
925
 
926
+ #: wp-to-twitter.php:1015
927
  msgid "Settings"
928
  msgstr ""
929