Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge remote-tracking branch 'upstream/master'

  • Loading branch information...
commit b88cf060ed31ee75e6b5c2a7f6c7408105ebe8ad 2 parents 2235834 + c4e01c3
Fx Bénard authored January 14, 2013
15  developer.php
@@ -5,7 +5,7 @@
5 5
 Plugin Name:  Developer
6 6
 Plugin URI:   http://wordpress.org/extend/plugins/developer/
7 7
 Description:  The first stop for every WordPress developer
8  
-Version:      1.1.1
  8
+Version:      1.1.2-alpha
9 9
 Author:       Automattic
10 10
 Author URI:   http://automattic.com
11 11
 License:      GPLv2 or later
@@ -24,7 +24,7 @@ class Automattic_Developer {
24 24
 	public $settings               = array();
25 25
 	public $default_settings       = array();
26 26
 
27  
-	const VERSION                  = '1.1.1';
  27
+	const VERSION                  = '1.1.2-alpha';
28 28
 	const OPTION                   = 'a8c_developer';
29 29
 	const PAGE_SLUG                = 'a8c_developer';
30 30
 
@@ -57,6 +57,9 @@ function __get( $var ) {
57 57
 	}
58 58
 
59 59
 	public function init() {
  60
+
  61
+		load_plugin_textdomain( 'a8c-developer', null, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
  62
+
60 63
 		$this->default_settings = array(
61 64
 			'project_type' => false,
62 65
 		);
@@ -344,7 +347,7 @@ public function ajax_handler( $action ) {
344 347
 				$api = plugins_api( 'plugin_information', array( 'slug' => $_POST['plugin_slug'], 'fields' => array( 'sections' => false ) ) );
345 348
 
346 349
 				if ( is_wp_error( $api ) )
347  
-					die( sprintf( __( 'ERROR: Error fetching plugin information: %s', 'a8c-developer' ), get_error_message( $api ) ) );
  350
+					die( sprintf( __( 'ERROR: Error fetching plugin information: %s', 'a8c-developer' ), $api->get_error_message( $api ) ) );
348 351
 
349 352
 				$upgrader = new Plugin_Upgrader( new Automattic_Developer_Empty_Upgrader_Skin( array(
350 353
 					'nonce'  => 'install-plugin_' . $_POST['plugin_slug'],
@@ -355,12 +358,12 @@ public function ajax_handler( $action ) {
355 358
 				$install_result = $upgrader->install( $api->download_link );
356 359
 
357 360
 				if ( ! $install_result || is_wp_error( $install_result ) )
358  
-					die( sprintf( __( 'ERROR: Failed to install plugin: %s', 'a8c-developer' ), get_error_message( $api ) ) );
  361
+					die( sprintf( __( 'ERROR: Failed to install plugin: %s', 'a8c-developer' ), $install_result->get_error_message( $install_result ) ) );
359 362
 
360 363
 				$activate_result = activate_plugin( $this->get_path_for_recommended_plugin( $_POST['plugin_slug'] ) );
361 364
 
362 365
 				if ( is_wp_error( $activate_result ) )
363  
-					die( sprintf( __( 'ERROR: Failed to activate plugin: %s', 'a8c-developer' ), get_error_message( $api ) ) );
  366
+					die( sprintf( __( 'ERROR: Failed to activate plugin: %s', 'a8c-developer' ), $activate_result->get_error_message( $activate_result ) ) );
364 367
 
365 368
 				exit( '1' );
366 369
 
@@ -376,7 +379,7 @@ public function ajax_handler( $action ) {
376 379
 				$activate_result = activate_plugin( $_POST['path'] );
377 380
 
378 381
 				if ( is_wp_error( $activate_result ) )
379  
-					die( sprintf( __( 'ERROR: Failed to activate plugin: %s', 'a8c-developer' ), get_error_message( $api ) ) );
  382
+					die( sprintf( __( 'ERROR: Failed to activate plugin: %s', 'a8c-developer' ), $activate_result->get_error_message( $activate_result ) ) );
380 383
 
381 384
 				exit( '1' );
382 385
 		}
347  languages/developer.pot
... ...
@@ -0,0 +1,347 @@
  1
+# Copyright (C) 2013 Developer
  2
+# This file is distributed under the same license as the Developer package.
  3
+msgid ""
  4
+msgstr ""
  5
+"Project-Id-Version: Developer 1.1.1\n"
  6
+"Report-Msgid-Bugs-To: http://wordpress.org/tag/developer\n"
  7
+"POT-Creation-Date: 2013-01-13 22:21:53+00:00\n"
  8
+"MIME-Version: 1.0\n"
  9
+"Content-Type: text/plain; charset=UTF-8\n"
  10
+"Content-Transfer-Encoding: 8bit\n"
  11
+"PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
  12
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  13
+"Language-Team: LANGUAGE <LL@li.org>\n"
  14
+
  15
+#: developer.php:70
  16
+msgid "Debug Bar"
  17
+msgstr ""
  18
+
  19
+#: developer.php:75
  20
+msgid "Debug Bar Cron"
  21
+msgstr ""
  22
+
  23
+#: developer.php:80
  24
+msgid "Rewrite Rules Inspector"
  25
+msgstr ""
  26
+
  27
+#: developer.php:85
  28
+msgid "Log Deprecated Notices"
  29
+msgstr ""
  30
+
  31
+#: developer.php:90
  32
+msgid "VIP Scanner"
  33
+msgstr ""
  34
+
  35
+#: developer.php:102
  36
+msgid "Grunion Contact Form"
  37
+msgstr ""
  38
+
  39
+#: developer.php:107
  40
+msgid "Polldaddy Polls & Ratings"
  41
+msgstr ""
  42
+
  43
+#: developer.php:112
  44
+msgid "Monster Widget"
  45
+msgstr ""
  46
+
  47
+#: developer.php:117
  48
+msgid "User Switching"
  49
+msgstr ""
  50
+
  51
+#: developer.php:122
  52
+msgid "Pig Latin"
  53
+msgstr ""
  54
+
  55
+#: developer.php:127
  56
+msgid "Beta Tester"
  57
+msgstr ""
  58
+
  59
+#: developer.php:135
  60
+msgid "RTL Tester"
  61
+msgstr ""
  62
+
  63
+#: developer.php:140
  64
+msgid "Regenerate Thumbnails"
  65
+msgstr ""
  66
+
  67
+#: developer.php:145
  68
+msgid "Reveal IDs"
  69
+msgstr ""
  70
+
  71
+#: developer.php:150
  72
+msgid "Theme Test Drive"
  73
+msgstr ""
  74
+
  75
+#: developer.php:155
  76
+msgid "Theme Check"
  77
+msgstr ""
  78
+
  79
+#: developer.php:161
  80
+msgid ""
  81
+"Enables <a href=\"http://codex.wordpress.org/Debugging_in_WordPress\" target="
  82
+"\"_blank\">debug mode</a> which helps identify and resolve issues"
  83
+msgstr ""
  84
+
  85
+#: developer.php:162
  86
+msgid ""
  87
+"Logs database queries to an array so you can review them. The Debug Bar "
  88
+"plugin will list out database queries if you set this constant."
  89
+msgstr ""
  90
+
  91
+#: developer.php:172
  92
+msgid "Developer: Plugin Setup"
  93
+msgstr ""
  94
+
  95
+#: developer.php:173
  96
+msgid "Saving..."
  97
+msgstr ""
  98
+
  99
+#: developer.php:174
  100
+msgid "Installing..."
  101
+msgstr ""
  102
+
  103
+#: developer.php:175
  104
+msgid "Installed"
  105
+msgstr ""
  106
+
  107
+#: developer.php:176
  108
+msgid "Activating..."
  109
+msgstr ""
  110
+
  111
+#: developer.php:177
  112
+msgid "Activated"
  113
+msgstr ""
  114
+
  115
+#: developer.php:178
  116
+msgid "Error!"
  117
+msgstr ""
  118
+
  119
+#: developer.php:179 developer.php:500
  120
+msgid "ACTIVE"
  121
+msgstr ""
  122
+
  123
+#: developer.php:180
  124
+msgid "INSTALLED"
  125
+msgstr ""
  126
+
  127
+#: developer.php:181
  128
+msgid "ERROR!"
  129
+msgstr ""
  130
+
  131
+#: developer.php:193
  132
+msgid "Settings saved."
  133
+msgstr ""
  134
+
  135
+#: developer.php:199
  136
+msgid "Error saving settings. Please try again."
  137
+msgstr ""
  138
+
  139
+#: developer.php:208 developer.php:447
  140
+msgid "Developer Helper"
  141
+msgstr ""
  142
+
  143
+#. #-#-#-#-#  plugin.pot (Developer 1.1.1)  #-#-#-#-#
  144
+#. Plugin Name of the plugin/theme
  145
+#: developer.php:208 developer.php:218
  146
+msgid "Developer"
  147
+msgstr ""
  148
+
  149
+#: developer.php:222
  150
+msgid "View the Developer Helper settings and status page"
  151
+msgstr ""
  152
+
  153
+#: developer.php:248
  154
+msgid "Thanks for installing the Developer Helper plugin!"
  155
+msgstr ""
  156
+
  157
+#: developer.php:250
  158
+msgid "Before we begin, what type of website are you developing?"
  159
+msgstr ""
  160
+
  161
+#: developer.php:306 developer.php:403
  162
+msgid "Plugins"
  163
+msgstr ""
  164
+
  165
+#: developer.php:308
  166
+msgid "We recommend that you also install and activate the following plugins:"
  167
+msgstr ""
  168
+
  169
+#: developer.php:321
  170
+msgid "Activate"
  171
+msgstr ""
  172
+
  173
+#: developer.php:323
  174
+msgid "Install"
  175
+msgstr ""
  176
+
  177
+#: developer.php:335 developer.php:369
  178
+msgid "ERROR: No slug was passed to the AJAX callback."
  179
+msgstr ""
  180
+
  181
+#: developer.php:340
  182
+msgid "ERROR: You lack permissions to install and/or activate plugins."
  183
+msgstr ""
  184
+
  185
+#: developer.php:347
  186
+msgid "ERROR: Error fetching plugin information: %s"
  187
+msgstr ""
  188
+
  189
+#: developer.php:358
  190
+msgid "ERROR: Failed to install plugin: %s"
  191
+msgstr ""
  192
+
  193
+#: developer.php:363 developer.php:379
  194
+msgid "ERROR: Failed to activate plugin: %s"
  195
+msgstr ""
  196
+
  197
+#: developer.php:374
  198
+msgid "ERROR: You lack permissions to activate plugins."
  199
+msgstr ""
  200
+
  201
+#: developer.php:389
  202
+msgid "Main Configuration"
  203
+msgstr ""
  204
+
  205
+#: developer.php:390
  206
+msgid "Project Type"
  207
+msgstr ""
  208
+
  209
+#: developer.php:413
  210
+msgid "Constants"
  211
+msgstr ""
  212
+
  213
+#: developer.php:422
  214
+msgid "Settings"
  215
+msgstr ""
  216
+
  217
+#: developer.php:423
  218
+msgid "Pretty Permalinks"
  219
+msgstr ""
  220
+
  221
+#: developer.php:425
  222
+msgid "Development Version"
  223
+msgstr ""
  224
+
  225
+#: developer.php:426
  226
+msgid "Shared Plugins"
  227
+msgstr ""
  228
+
  229
+#: developer.php:430
  230
+msgid "Resources"
  231
+msgstr ""
  232
+
  233
+#: developer.php:432
  234
+msgid "Codex"
  235
+msgstr ""
  236
+
  237
+#: developer.php:435
  238
+msgid "VIP Lobby"
  239
+msgstr ""
  240
+
  241
+#: developer.php:438
  242
+msgid "Starter Themes"
  243
+msgstr ""
  244
+
  245
+#: developer.php:495
  246
+msgid "We recommend you have the following plugins installed:"
  247
+msgstr ""
  248
+
  249
+#: developer.php:505
  250
+msgid "Click here to activate"
  251
+msgstr ""
  252
+
  253
+#: developer.php:505 developer.php:507
  254
+msgid "INACTIVE"
  255
+msgstr ""
  256
+
  257
+#: developer.php:512
  258
+msgid "Click here to install"
  259
+msgstr ""
  260
+
  261
+#: developer.php:512 developer.php:514
  262
+msgid "NOT INSTALLED"
  263
+msgstr ""
  264
+
  265
+#: developer.php:520
  266
+msgid ""
  267
+"We recommend you set the following constants to <code>true</code> in your "
  268
+"<code>wp-config.php</code> file. <a href=\"http://codex.wordpress.org/"
  269
+"Editing_wp-config.php\" target=\"_blank\">Need help?</a>"
  270
+msgstr ""
  271
+
  272
+#: developer.php:525
  273
+msgid "SET"
  274
+msgstr ""
  275
+
  276
+#: developer.php:527
  277
+msgid "NOT SET"
  278
+msgstr ""
  279
+
  280
+#: developer.php:536
  281
+msgid "We recommend the following settings and configurations."
  282
+msgstr ""
  283
+
  284
+#: developer.php:541 developer.php:551 developer.php:559
  285
+msgid "ENABLED"
  286
+msgstr ""
  287
+
  288
+#: developer.php:543 developer.php:553 developer.php:561
  289
+msgid "DISABLED"
  290
+msgstr ""
  291
+
  292
+#: developer.php:543
  293
+msgid ""
  294
+"<a href=\"http://codex.wordpress.org/Using_Permalinks\" target=\"_blank"
  295
+"\">Need help?</a>"
  296
+msgstr ""
  297
+
  298
+#: developer.php:568
  299
+msgid ""
  300
+"The <a href='http://codex.wordpress.org/Developer_Documentation'>Developer "
  301
+"Documentation section</a> of the Codex offers guidelines and references for "
  302
+"anyone wishing to modify, extend, or contribute to WordPress."
  303
+msgstr ""
  304
+
  305
+#: developer.php:572
  306
+msgid ""
  307
+"The <a href='http://lobby.vip.wordpress.com'>VIP Lobby</a> is a technical "
  308
+"documentation resource for developing sites on WordPress.com including best "
  309
+"practices and helpful tips to help you code better, faster, and stronger."
  310
+msgstr ""
  311
+
  312
+#: developer.php:576
  313
+msgid ""
  314
+"<a href='http://underscores.me'>_s (or underscores)</a>: a starter theme "
  315
+"meant for hacking that will give you a \"1000-Hour Head Start\". Use it to "
  316
+"create the next, most awesome WordPress theme out there."
  317
+msgstr ""
  318
+
  319
+#: developer.php:625
  320
+msgid "Plugin for a self-hosted WordPress installation"
  321
+msgstr ""
  322
+
  323
+#: developer.php:626
  324
+msgid "Theme for a self-hosted WordPress installation"
  325
+msgstr ""
  326
+
  327
+#: developer.php:627
  328
+msgid ""
  329
+"Theme for a <a href=\"http://vip.wordpress.com\" target=\"_blank\">WordPress."
  330
+"com VIP</a> site"
  331
+msgstr ""
  332
+
  333
+#. Plugin URI of the plugin/theme
  334
+msgid "http://wordpress.org/extend/plugins/developer/"
  335
+msgstr ""
  336
+
  337
+#. Description of the plugin/theme
  338
+msgid "The first stop for every WordPress developer"
  339
+msgstr ""
  340
+
  341
+#. Author of the plugin/theme
  342
+msgid "Automattic"
  343
+msgstr ""
  344
+
  345
+#. Author URI of the plugin/theme
  346
+msgid "http://automattic.com"
  347
+msgstr ""

0 notes on commit b88cf06

Please sign in to comment.
Something went wrong with that request. Please try again.