Skip to content

Commit

Permalink
Merge pull request #32 from fxbenard/master
Browse files Browse the repository at this point in the history
[i18n] > update french.po.mo
  • Loading branch information
danielbachhuber committed Jan 15, 2013
2 parents c4e01c3 + ecf22dc commit bb16689
Show file tree
Hide file tree
Showing 3 changed files with 379 additions and 6 deletions.
17 changes: 11 additions & 6 deletions developer.php
Expand Up @@ -14,7 +14,6 @@
Domain Path: /languages/
**************************************************************************/

// Load helper class if installing a plugin
if ( ! empty( $_POST['action'] ) && 'a8c_developer_install_plugin' == $_POST['action'] )
require_once( dirname( __FILE__ ) . '/includes/class-empty-upgrader-skin.php' );
Expand All @@ -33,19 +32,25 @@ class Automattic_Developer {
private $recommended_constants = array();

function __construct() {
add_action( 'init', array( $this, 'init' ) );
add_action( 'admin_init', array( $this, 'admin_init' ) );
add_action( 'init', array( $this, 'load_plugin_textdomain') );
add_action( 'init', array( $this, 'init' ) );
add_action( 'admin_init', array( $this, 'admin_init' ) );

add_action( 'admin_menu', array( $this, 'register_settings_page' ) );
add_action( 'admin_bar_menu', array( $this, 'add_node_to_admin_bar' ) );
add_action( 'admin_menu', array( $this, 'register_settings_page' ) );
add_action( 'admin_bar_menu', array( $this, 'add_node_to_admin_bar' ) );

add_action( 'admin_enqueue_scripts', array( $this, 'load_settings_page_script_and_style' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'load_settings_page_script_and_style' ) );

add_action( 'wp_ajax_a8c_developer_lightbox_step_1', array( $this, 'ajax_handler' ) );
add_action( 'wp_ajax_a8c_developer_install_plugin', array( $this, 'ajax_handler' ) );
add_action( 'wp_ajax_a8c_developer_activate_plugin', array( $this, 'ajax_handler' ) );
}

// Internationalization
function load_plugin_textdomain () {
load_plugin_textdomain ( 'a8c-developer', FALSE, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}

// Allows private variables to be read. Basically implements read-only variables.
function __get( $var ) {
return ( isset( $this->$var ) ) ? $this->$var : null;
Expand Down
Binary file added languages/a8c-developer-fr_FR.mo
Binary file not shown.

0 comments on commit bb16689

Please sign in to comment.