Make "ID: " translatable

Ref #18738
This commit is contained in:
Claudio Sanches 2018-02-01 19:09:04 -02:00
parent 653295b60f
commit 36963afe99
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table {
* @return array
*/
protected function get_row_actions( $actions, $post ) {
return array_merge( array( 'id' => 'ID: ' . $post->ID ), $actions );
/* translators: %s: product ID. */
return array_merge( array( 'id' => sprintf( __( 'ID: %d', 'woocommerce' ), $post->ID ) ), $actions );
}
/**