Ticket #5583: widgets-js-i18n-script-loader.diff

File widgets-js-i18n-script-loader.diff, 0.6 kB (added by nbachiyski, 5 months ago)

The part, which was left out in the previous i18n patch

  • wp-includes/script-loader.php

    old new  
    166166                                'confirmText' => __("Are you sure you want to delete the file '%title%'?\nClick ok to delete or cancel to go back.") 
    167167                        ) ); 
    168168                        $this->add( 'admin-widgets', '/wp-admin/js/widgets.js', array( 'interface' ), '20080109' ); 
     169                        $this->localize( 'admin-widgets', 'widgetsL10n', array( 
     170                                'add' => __('Add'), 
     171                                'edit' => __('Edit'), 
     172                                'cancel' => __('Cancel'), 
     173                        )); 
    169174                } 
    170175        } 
    171176