Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Plugin ready for internationalisation and french translated #23

Closed
wants to merge 5 commits into from

2 participants

Fx Bénard Daniel Bachhuber
Fx Bénard

Adding the function load_plugin_textdomain

Creation of the languages folder and files :

Creation of the a8c-developer-en_EN.po file as a base for future translations (you just have to add your email adress to file)

Creation of the a8c-developer-fr_FR files

fxbenard added some commits
Fx Bénard fxbenard Added the function load_plugin_textdomain 7349280
Fx Bénard fxbenard Plugin ready for internationalisation and french translated
Creation of the languages folder and files

Creation of the a8c-developer-en_EN.po file as a base for future translations

Creation of the a8c-developer-fr_FR files
7034ec7
Fx Bénard fxbenard Merge remote-tracking branch 'upstream/master' 2235834
Daniel Bachhuber

Thanks for the pull request, @fxbenard ! And my apologies for the tardy response.

Mind refreshing your pull request against master? I've added a load_text_domain() call and languages folder already.

Fx Bénard fxbenard closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 4, 2012
  1. Fx Bénard
  2. Fx Bénard

    Plugin ready for internationalisation and french translated

    fxbenard authored
    Creation of the languages folder and files
    
    Creation of the a8c-developer-en_EN.po file as a base for future translations
    
    Creation of the a8c-developer-fr_FR files
Commits on Nov 27, 2012
  1. Fx Bénard
Commits on Jan 14, 2013
  1. Fx Bénard
Commits on Jan 15, 2013
  1. Fx Bénard

    [i18n] french update

    fxbenard authored
This page is out of date. Refresh to see the latest.
17 developer.php
View
@@ -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' );
@@ -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;
BIN  languages/a8c-developer-fr_FR.mo
View
Binary file not shown
368 languages/a8c-developer-fr_FR.po
View
@@ -0,0 +1,368 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: Developer\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-01-14 08:08+0100\n"
+"PO-Revision-Date: 2013-01-15 09:46+0100\n"
+"Last-Translator: FxB <fx@fxbenard.com>\n"
+"Language-Team: FxB <fx@fxbenard.com>\n"
+"Language: fr_FR\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-KeywordsList: __;_e;esc_attr__;esc_attr_e;esc_html__;esc_html_e;_n;"
+"_x;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;_n:1,2\n"
+"X-Poedit-Basepath: ../\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"X-Generator: Poedit 1.5.4\n"
+"X-Poedit-SearchPath-0: .\n"
+
+#: developer.php:78
+msgid "Debug Bar"
+msgstr "Debug Bar"
+
+#: developer.php:83
+msgid "Debug Bar Cron"
+msgstr "Debug Bar Cron"
+
+#: developer.php:88
+msgid "Rewrite Rules Inspector"
+msgstr "Rewrite Rules Inspector"
+
+#: developer.php:93
+msgid "Log Deprecated Notices"
+msgstr "Log Deprecated Notices"
+
+#: developer.php:98
+msgid "VIP Scanner"
+msgstr "VIP Scanner"
+
+#: developer.php:110
+msgid "Grunion Contact Form"
+msgstr "Grunion Contact Form"
+
+#: developer.php:115
+msgid "Polldaddy Polls & Ratings"
+msgstr "Polldaddy Polls & Ratings"
+
+#: developer.php:120
+msgid "Monster Widget"
+msgstr "Monster Widget"
+
+#: developer.php:125
+msgid "User Switching"
+msgstr "User Switching"
+
+#: developer.php:130
+msgid "Pig Latin"
+msgstr "Pig Latin"
+
+#: developer.php:135
+msgid "Beta Tester"
+msgstr "Beta Tester"
+
+#: developer.php:143
+msgid "RTL Tester"
+msgstr "RTL Tester"
+
+#: developer.php:148
+msgid "Regenerate Thumbnails"
+msgstr "Regenerate Thumbnails"
+
+#: developer.php:153
+msgid "Reveal IDs"
+msgstr "Reveal IDs"
+
+#: developer.php:158
+msgid "Theme Test Drive"
+msgstr "Theme Test Drive"
+
+#: developer.php:163
+msgid "Theme Check"
+msgstr "Theme Check"
+
+#: developer.php:169
+msgid ""
+"Enables <a href=\"http://codex.wordpress.org/Debugging_in_WordPress\" target="
+"\"_blank\">debug mode</a> which helps identify and resolve issues"
+msgstr ""
+"Activer le <a href=\"http://codex.wordpress.org/Debugging_in_WordPress\" "
+"target=\"_blank\">debug mode</a> qui permet d'identifier et de résoudre les "
+"problèmes"
+
+#: developer.php:170
+msgid ""
+"Logs database queries to an array so you can review them. The Debug Bar "
+"plugin will list out database queries if you set this constant."
+msgstr ""
+"Journaux des requêtes de bases de données dans un tableau afin que vous "
+"puissiez les consulter. L'extension Debug Bar donnera la liste de requêtes "
+"de bases de données si vous définissez cette constante."
+
+#: developer.php:179
+msgid "Developer: Plugin Setup"
+msgstr "Developer : Réglages de l'extension"
+
+#: developer.php:180
+msgid "Saving..."
+msgstr "Enregistrement en cours..."
+
+#: developer.php:181
+msgid "Installing..."
+msgstr "Installation..."
+
+#: developer.php:182
+msgid "Installed"
+msgstr "Installé"
+
+#: developer.php:183
+msgid "Activating..."
+msgstr "Activation..."
+
+#: developer.php:184
+msgid "Activated"
+msgstr "Activé"
+
+#: developer.php:185
+msgid "Error!"
+msgstr "Erreur !"
+
+#: developer.php:186 developer.php:503
+msgid "ACTIVE"
+msgstr "ACTIVÉ"
+
+#: developer.php:187
+msgid "INSTALLED"
+msgstr "INSTALLÉ"
+
+#: developer.php:188
+msgid "ERROR!"
+msgstr "ERREUR !"
+
+#: developer.php:197
+msgid "Settings saved."
+msgstr "Réglages enregistrés."
+
+#: developer.php:202
+msgid "Error saving settings. Please try again."
+msgstr ""
+"Une erreur est survenue lors de la sauvegarde des réglages. Veuillez "
+"réessayer plus tard."
+
+#: developer.php:211 developer.php:450
+msgid "Developer Helper"
+msgstr "Developer Helper"
+
+#: developer.php:211 developer.php:221
+msgid "Developer"
+msgstr "Developer"
+
+#: developer.php:225
+msgid "View the Developer Helper settings and status page"
+msgstr "Afficher les réglages et la page d'état de Developer Helper"
+
+#: developer.php:251
+msgid "Thanks for installing the Developer Helper plugin!"
+msgstr "Merci d'avoir installé l'extension Developer Helper !"
+
+#: developer.php:253
+msgid "Before we begin, what type of website are you developing?"
+msgstr "Avant de commencer, quel type de site web developpez-vous ?"
+
+#: developer.php:309 developer.php:406
+msgid "Plugins"
+msgstr "Extensions"
+
+#: developer.php:311
+msgid "We recommend that you also install and activate the following plugins:"
+msgstr ""
+"Nous vous recommandons également d'installer et d'activer les extensions "
+"suivantes :"
+
+#: developer.php:324
+msgid "Activate"
+msgstr "Activer"
+
+#: developer.php:326
+msgid "Install"
+msgstr "Installer"
+
+#: developer.php:338 developer.php:372
+msgid "ERROR: No slug was passed to the AJAX callback."
+msgstr "ERREUR : Aucun identifiant n'a été passé au rappel AJAX."
+
+#: developer.php:343
+msgid "ERROR: You lack permissions to install and/or activate plugins."
+msgstr ""
+"ERREUR : Vous n'avez pas d'autorisation pour installer et/ou activer des "
+"extensions."
+
+#: developer.php:350
+#, php-format
+msgid "ERROR: Error fetching plugin information: %s"
+msgstr "ERREUR : Erreur de récupération des informations de l'extension :%s"
+
+#: developer.php:361
+#, php-format
+msgid "ERROR: Failed to install plugin: %s"
+msgstr "ERREUR : Impossible d'installer l'extension : %s"
+
+#: developer.php:366 developer.php:382
+#, php-format
+msgid "ERROR: Failed to activate plugin: %s"
+msgstr "ERREUR : Impossible d'activer l'extension : %s"
+
+#: developer.php:377
+msgid "ERROR: You lack permissions to activate plugins."
+msgstr "ERREUR : Vous n'avez pas d'autorisation pour installer des extensions."
+
+#: developer.php:392
+msgid "Main Configuration"
+msgstr "Configuration principale"
+
+#: developer.php:393
+msgid "Project Type"
+msgstr "Type de projet"
+
+#: developer.php:416
+msgid "Constants"
+msgstr "Constantes"
+
+#: developer.php:425
+msgid "Settings"
+msgstr "Réglages"
+
+#: developer.php:426
+msgid "Pretty Permalinks"
+msgstr "Pretty Permalinks"
+
+#: developer.php:428
+msgid "Development Version"
+msgstr "Version de Développement"
+
+#: developer.php:429
+msgid "Shared Plugins"
+msgstr "Extensions partagées"
+
+#: developer.php:433
+msgid "Resources"
+msgstr "Ressources"
+
+#: developer.php:435
+msgid "Codex"
+msgstr "Codex"
+
+#: developer.php:438
+msgid "VIP Lobby"
+msgstr "VIP Lobby"
+
+#: developer.php:441
+msgid "Starter Themes"
+msgstr "Starter Themes"
+
+#: developer.php:498
+msgid "We recommend you have the following plugins installed:"
+msgstr "Nous vous recommandons d'avoir installé les extensions suivantes :"
+
+#: developer.php:508
+msgid "Click here to activate"
+msgstr "Cliquez ici pour activer."
+
+#: developer.php:508 developer.php:510
+msgid "INACTIVE"
+msgstr "INACTIF"
+
+#: developer.php:515
+msgid "Click here to install"
+msgstr "Cliquez ici pour installer."
+
+#: developer.php:515 developer.php:517
+msgid "NOT INSTALLED"
+msgstr "NON INSTALLÉ"
+
+#: developer.php:523
+msgid ""
+"We recommend you set the following constants to <code>true</code> in your "
+"<code>wp-config.php</code> file. <a href=\"http://codex.wordpress.org/"
+"Editing_wp-config.php\" target=\"_blank\">Need help?</a>"
+msgstr ""
+"Nous vous recommandons de régler les constantes suivantes sur <code>true</"
+"code> dans votre fichier <code>wp-config.php</code>. <a href=\"http://codex."
+"wordpress.org/Editing_wp-config.php\" target=\"_blank\">Besoin d'aide ?</a>"
+
+#: developer.php:528
+msgid "SET"
+msgstr "DÉFINI"
+
+#: developer.php:530
+msgid "NOT SET"
+msgstr "NON CONFIGURÉ"
+
+#: developer.php:539
+msgid "We recommend the following settings and configurations."
+msgstr "Nous vous recommandons les réglages et configurations suivantes :"
+
+#: developer.php:544 developer.php:554 developer.php:562
+msgid "ENABLED"
+msgstr "ACTIVÉ"
+
+#: developer.php:546 developer.php:556 developer.php:564
+msgid "DISABLED"
+msgstr "DÉSACTIVÉ"
+
+#: developer.php:546
+msgid ""
+"<a href=\"http://codex.wordpress.org/Using_Permalinks\" target=\"_blank"
+"\">Need help?</a>"
+msgstr ""
+"<a href=\"http://codex.wordpress.org/Using_Permalinks\" target=\"_blank"
+"\">Besoin d'aide ?</a>"
+
+#: developer.php:571
+msgid ""
+"The <a href='http://codex.wordpress.org/Developer_Documentation'>Developer "
+"Documentation section</a> of the Codex offers guidelines and references for "
+"anyone wishing to modify, extend, or contribute to WordPress."
+msgstr ""
+"La <a href='http://codex.wordpress.org/Developer_Documentation'>section "
+"Documentation pour les Développeurs</a> du Codex propose des lignes "
+"directrices et des références pour tous ceux qui souhaitent modifier, "
+"étendre ou contribuer à WordPress."
+
+#: developer.php:575
+msgid ""
+"The <a href='http://lobby.vip.wordpress.com'>VIP Lobby</a> is a technical "
+"documentation resource for developing sites on WordPress.com including best "
+"practices and helpful tips to help you code better, faster, and stronger."
+msgstr ""
+"Le <a href='http://lobby.vip.wordpress.com'>Lobby VIP</a> est une ressource "
+"de documentation technique pour développer des sites sur WordPress.com "
+"incluant les meilleures pratiques et des conseils utiles pour vous aider à "
+"coder mieux et plus vite."
+
+#: developer.php:579
+msgid ""
+"<a href='http://underscores.me'>_s (or underscores)</a>: a starter theme "
+"meant for hacking that will give you a \"1000-Hour Head Start\". Use it to "
+"create the next, most awesome WordPress theme out there."
+msgstr ""
+"<a href='http://underscores.me'>_s (or underscores)</a>: un starteur thème "
+"fait pour être hacké qui vous donnera \"1000 Heures d'avance \". Utilisez-le "
+"pour créer le plus impressionnant prochain thème pour WordPress."
+
+#: developer.php:628
+msgid "Plugin for a self-hosted WordPress installation"
+msgstr "Extension pour une installation auto-hébergé de WordPress"
+
+#: developer.php:629
+msgid "Theme for a self-hosted WordPress installation"
+msgstr "Thème pour une installation auto-hébergé de WordPress"
+
+#: developer.php:630
+msgid ""
+"Theme for a <a href=\"http://vip.wordpress.com\" target=\"_blank\">WordPress."
+"com VIP</a> site"
+msgstr ""
+"Theme pour un site <a href=\"http://vip.wordpress.com\" target=\"_blank"
+"\">WordPress.com VIP</a>"
Something went wrong with that request. Please try again.