Plugin Directory

Changeset 365752


Ignore:
Timestamp:
03/28/2011 11:11:03 AM (15 years ago)
Author:
julienappert
Message:

localization et description changed

Location:
rich-text-widget/trunk
Files:
5 added
3 edited

Legend:

Unmodified
Added
Removed
  • rich-text-widget/trunk/readme.txt

    r364801 r365752  
    66Stable tag: trunk
    77
    8 Create rich text widgets (WYSIWYG)
     8Create rich text widgets (WYSIWYG), with media management.
    99
    1010== Description ==
    1111
    12 Create rich text widgets (WYSIWYG). Use wordpress' editor to easily change the text widgets.
     12Caution : the plugin is not compatible with the 0.2 version. So, you should save your content before upgrading. Sorry for the inconvenient.
     13
     14Create rich text widgets (WYSIWYG), with media management.
    1315
    1416== Installation ==
     
    24261. Rich Text Widget
    25272. Adding media
     28
     29== Changelog ==
     30
     31= 1.0.1 =
     32* localization
     33* description changed
  • rich-text-widget/trunk/rich-text-widget.js

    r364801 r365752  
    7373        if(getUserSetting( 'editor' ) == 'tinymce'){
    7474            var ed = tinyMCE.get(textarea.attr('id'));
    75             if(ed != undefined) alert("pensez à sauvegarder avant d'enregistrer");
     75            if(ed != undefined) alert(deactivate);
    7676           
    7777        }
  • rich-text-widget/trunk/rich-text-widget.php

    r364801 r365752  
    44Plugin URI: http://julienappert.com/realisations/plugin-rich-text-widget
    55Description: Create rich text widgets.
    6 Version: 1.0
     6Version: 1.0.1
    77Author: Julien Appert
    88Author URI: http://julienappert.com
     
    1111
    1212    function richText() {
    13         $widget_ops = array('classname' => 'widget_richtext', 'description' => __( 'WYSIWYG widget' ) );
     13
     14        $locale = get_locale ();
     15        if ( empty($locale) )
     16            $locale = 'en_US';
     17
     18        $mofile = dirname (__FILE__)."/locale/$locale.mo";
     19        load_textdomain ('rtw', $mofile);       
     20   
     21        $widget_ops = array('classname' => 'widget_richtext', 'description' => __( 'WYSIWYG widget','rtw' ) );
    1422        $control_ops = array('width' => 700, 'height' => 550);
    15         $this->WP_Widget('richetext', __('Rich Text'), $widget_ops,$control_ops);
     23        $this->WP_Widget('richetext', __('Rich Text','rtw'), $widget_ops,$control_ops);
    1624        $this->alt_option_name = 'widget_richtext';
    1725    }
     
    5664        </p>
    5765        <p>         
    58             <input type="button" class="button-primary rtw_activate" onclick="rtw_activate('<?php echo $this->get_field_id('text'); ?>')" value="Activer" />
    59             <input type="button" class="button-primary rtw_save" disabled="disabled" onclick="rtw_save('<?php echo $this->get_field_id('text'); ?>')" value="Désactiver" />
     66            <input type="button" class="button-primary rtw_activate" onclick="rtw_activate('<?php echo $this->get_field_id('text'); ?>')" value="<?php echo __('Activate','rtw'); ?>" />
     67            <input type="button" class="button-primary rtw_save" disabled="disabled" onclick="rtw_save('<?php echo $this->get_field_id('text'); ?>')" value="<?php echo __('Deactivate','rtw'); ?>" />
    6068        </p>
    6169        <?php
     
    107115   
    108116    function init(){
     117        $locale = get_locale ();
     118        if ( empty($locale) )
     119            $locale = 'en_US';
     120
     121        $mofile = dirname (__FILE__)."/locale/$locale.mo";
     122        load_textdomain ('rtw', $mofile);   
    109123        wp_enqueue_script('thickbox');   
    110124    }
     
    121135                ?>     
    122136                <script type="text/javascript">
     137                    var deactivate = "<?php echo esc_js(__('Please deactivate the editor before saving the widget','rtw')); ?>";
    123138                    var spellchecker_languages = "<?php echo $mce_spellchecker_languages; ?>";
    124139                    var language = '<?php echo $language; ?>';
Note: See TracChangeset for help on using the changeset viewer.