| @@ -40,9 +40,9 @@ | ||
| 40 | 40 | * |
| 41 | 41 | * @param CMB2 $cmb The CMB2 object to hookup. |
| 42 | 42 | */ |
| 43 | 43 | public static function maybe_init_and_hookup( CMB2 $cmb ) { |
| 44 | - // translators: %1$s: function name | |
| 44 | + // translators: %s: function name. | |
| 45 | 45 | throw new Exception( sprintf( esc_html__( '%1$s should be implemented by the extended class.', 'cmb2' ), __FUNCTION__ ) ); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
| @@ -99,9 +99,9 @@ | ||
| 99 | 99 | case 'object_type': |
| 100 | 100 | case 'cmb': |
| 101 | 101 | return $this->{$field}; |
| 102 | 102 | default: |
| 103 | - // translators: %1$s: class %2$s: class | |
| 104 | - throw new Exception( sprintf( esc_html__( 'Invalid %1$s property: %2$s', 'cmb2' ), __CLASS__, $field ) ); | |
| 103 | + // translators: 1: class name, 2: property name. | |
| 104 | + throw new Exception( sprintf( esc_html__( 'Invalid %1$s property: %2$s', 'cmb2' ), __CLASS__, $field ) ); | |
| 105 | 105 | } |
| 106 | 106 | } |
| 107 | 107 | } |