Skip to content

Commit 5d4a6a6

Browse files
Fix Untranslatable Text
1 parent 99803c0 commit 5d4a6a6

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

inc/settings.php

+11-5
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,16 @@ public function admin_scripts( $prefix ) {
226226
* Add the Page Builder settings page
227227
*/
228228
public function add_settings_page() {
229-
$page = add_options_page( esc_html( 'SiteOrigin Page Builder', 'siteorigin-panels' ), esc_html( 'Page Builder', 'siteorigin-panels' ), 'manage_options', 'siteorigin_panels', array(
230-
$this,
231-
'display_settings_page',
232-
) );
229+
$page = add_options_page(
230+
esc_html__( 'SiteOrigin Page Builder', 'siteorigin-panels' ),
231+
esc_html__( 'Page Builder', 'siteorigin-panels' ),
232+
'manage_options',
233+
'siteorigin_panels',
234+
array(
235+
$this,
236+
'display_settings_page',
237+
)
238+
);
233239
add_action( 'load-' . $page, array( $this, 'add_help_tab' ) );
234240
add_action( 'load-' . $page, array( $this, 'save_settings' ) );
235241
}
@@ -253,7 +259,7 @@ public function add_help_tab() {
253259

254260
$screen->add_help_tab( array(
255261
'id' => 'panels-help-tab',
256-
'title' => esc_html( 'Page Builder Settings', 'siteorigin-panels' ),
262+
'title' => esc_html__( 'Page Builder Settings', 'siteorigin-panels' ),
257263
'content' => $content,
258264
) );
259265
}

settings/tpl/help.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
echo preg_replace(
44
'/1\{ *(.*?) *\}/',
55
'<a href="https://siteorigin.com/page-builder/settings/" target="_blank" rel="noopener noreferrer">$1</a>',
6-
esc_html( 'Please read the 1{settings guide} of the Page Builder documentation for help.', 'siteorigin-panels' )
6+
esc_html__( 'Please read the 1{settings guide} of the Page Builder documentation for help.', 'siteorigin-panels' )
77
);
88
?>
99
</p>

tpl/admin-home-page.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class="hide-if-no-js siteorigin-panels-builder-form"
3939
echo preg_replace(
4040
'/1\{ *(.*?) *\}/',
4141
'<a href="' . esc_url( get_the_permalink( $post ) ) . '">$1</a>',
42-
esc_html( 'Home page updated. 1{View page}.', 'siteorigin-panels' )
42+
esc_html__( 'Home page updated. 1{View page}.', 'siteorigin-panels' )
4343
);
4444
?>
4545
</p>

0 commit comments

Comments
 (0)