i18n: Simpler translation string with placeholders

One more... replacing function name with `%s` placeholder, this way translators can't misspell the function name.
This commit is contained in:
Rami Yushuvaev 2017-08-16 00:42:32 +03:00 committed by GitHub
parent 88e0138be4
commit 125ead910a
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ abstract class WP_REST_Controller {
* Register the routes for the objects of the controller.
*/
public function register_routes() {
wc_doing_it_wrong( 'WP_REST_Controller::register_routes', __( 'The register_routes() method must be overridden', 'woocommerce' ), 'WPAPI-2.0' );
wc_doing_it_wrong( 'WP_REST_Controller::register_routes', sprintf( __( "Method '%s' must be overridden.", 'woocommerce' ), 'register_routes()' ), 'WPAPI-2.0' );
}
/**