@@ -50,9 +50,10 @@ protected static function validate_and_instantiate( array $config ): mixed {
50
50
51
51
$ config_class_map = static ::get_config_class_map ();
52
52
53
- $ config_class = $ config_class_map [$ service ] ?? null ;
53
+ $ config_class = $ config_class_map [ $ service ] ?? null ;
54
54
55
55
if ( null === $ config_class ) {
56
+ // translators: %s is the name of the service that is not supported
56
57
return new WP_Error (
57
58
'unsupported_service ' ,
58
59
sprintf (
@@ -70,6 +71,7 @@ private static function get_not_found_error_code(): string {
70
71
}
71
72
72
73
private static function get_not_found_error_message (): string {
74
+ // translators: %s is the error message prefix for the config type
73
75
return sprintf ( __ ( '%s not found ' , 'remote-data-blocks ' ), static ::get_error_message_prefix () );
74
76
}
75
77
@@ -78,6 +80,7 @@ private static function get_save_failed_error_code(): string {
78
80
}
79
81
80
82
private static function get_save_failed_error_message (): string {
83
+ // translators: %s is the error message prefix for the config type
81
84
return sprintf ( __ ( 'Failed to save %s ' , 'remote-data-blocks ' ), static ::get_error_message_prefix () );
82
85
}
83
86
@@ -86,6 +89,7 @@ private static function get_delete_failed_error_code(): string {
86
89
}
87
90
88
91
private static function get_delete_failed_error_message (): string {
92
+ // translators: %s is the error message prefix for the config type
89
93
return sprintf ( __ ( 'Failed to delete %s ' , 'remote-data-blocks ' ), static ::get_error_message_prefix () );
90
94
}
91
95
0 commit comments