@@ -60,6 +60,9 @@ public function no_assets() {
6060 * @return array
6161 */
6262 public function register_settings ( $ pages ) {
63+
64+ $ plugin = $ this ->plugin ;
65+
6366 $ pages ['dashboard ' ] = array (
6467 'page_title ' => __ ( 'Cloudinary Dashboard ' , 'cloudinary ' ),
6568 'menu_title ' => __ ( 'Dashboard ' , 'cloudinary ' ),
@@ -154,7 +157,7 @@ public function register_settings( $pages ) {
154157 'cld-toggle ' ,
155158 'hidden ' ,
156159 ),
157- 'title ' => __ ( 'View errored assets ' , 'cloudinary ' ),
160+ 'title ' => __ ( 'View errored assets ' , 'cloudinary ' ),
158161 ),
159162 ),
160163 array (
@@ -183,7 +186,7 @@ public function register_settings( $pages ) {
183186 'cld-toggle ' ,
184187 'hidden ' ,
185188 ),
186- 'title ' => __ ( 'Retry sync assets with errors ' , 'cloudinary ' ),
189+ 'title ' => __ ( 'Retry sync assets with errors ' , 'cloudinary ' ),
187190 ),
188191 ),
189192 ),
@@ -357,7 +360,11 @@ public function register_settings( $pages ) {
357360 ),
358361 array (
359362 'type ' => 'panel ' ,
360- 'title ' => __ ( 'Plan details ' , 'cloudinary ' ),
363+ 'title ' => function () use ( $ plugin ) {
364+ $ cloud_name = $ plugin ->components ['connect ' ]->get_cloud_name ();
365+ /* Translators: placeholder is the Cloudinary cloud name. */
366+ return sprintf ( __ ( 'Plan details for @%s ' , 'cloudinary ' ), esc_html ( $ cloud_name ) );
367+ },
361368 array (
362369 'type ' => 'plan_details ' ,
363370 ),
0 commit comments