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:
parent
88e0138be4
commit
125ead910a
|
@ -27,7 +27,7 @@ abstract class WP_REST_Controller {
|
||||||
* Register the routes for the objects of the controller.
|
* Register the routes for the objects of the controller.
|
||||||
*/
|
*/
|
||||||
public function register_routes() {
|
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' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue