WordPress.org

Make WordPress Core

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

File widgets-js-i18n-script-loader.diff, 614 bytes (added by nbachiyski, 14 years ago)

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

  • wp-includes/script-loader.php

     
    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