diff --git a/admin.php b/admin.php index 2d9151d..c423437 100755 --- a/admin.php +++ b/admin.php @@ -5,7 +5,7 @@ class BJLL_Admin_Page extends scbAdminPage { function setup() { $this->args = array( 'menu_title' => 'BJ Lazy Load', - 'page_title' => __( 'BJ Lazy Load Options', 'bj-lazy-load' ), + 'page_title' => 'BJ Lazy Load Options', ); } diff --git a/lang/bj-lazy-load.pot b/lang/bj-lazy-load.pot index 2aef7bc..a45af91 100755 --- a/lang/bj-lazy-load.pot +++ b/lang/bj-lazy-load.pot @@ -31,6 +31,10 @@ msgid "No" msgstr "" #: admin.php:23 +msgid "Apply to text widgets" +msgstr "" + +#: admin.php:29 msgid "Apply to post thumbnails" msgstr "" diff --git a/scb/AdminPage.php b/scb/AdminPage.php index 64dbdb1..78a0c72 100755 --- a/scb/AdminPage.php +++ b/scb/AdminPage.php @@ -160,7 +160,7 @@ function page_help(){} function page_header() { echo "
\n"; screen_icon( $this->args['screen_icon'] ); - echo html( 'h2', $this->args['page_title'] ); + echo html( 'h2', __( $this->args['page_title'], 'bj-lazy-load' ) ); } /** @@ -224,7 +224,7 @@ function form_handler() { */ function admin_msg( $msg = '', $class = 'updated' ) { if ( empty( $msg ) ) - $msg = __( 'Settings saved.', $this->textdomain ); + $msg = __( 'Settings saved.', 'bj-lazy-load' ); echo scb_admin_notice( $msg, $class ); } @@ -409,7 +409,7 @@ function page_init() { if ( ! $this->args['toplevel'] ) { $this->pagehook = add_submenu_page( $this->args['parent'], - $this->args['page_title'], + __( $this->args['page_title'], 'bj-lazy-load' ), $this->args['menu_title'], $this->args['capability'], $this->args['page_slug'], @@ -418,7 +418,7 @@ function page_init() { } else { $func = 'add_' . $this->args['toplevel'] . '_page'; $this->pagehook = $func( - $this->args['page_title'], + __( $this->args['page_title'], 'bj-lazy-load' ), $this->args['menu_title'], $this->args['capability'], $this->args['page_slug'], @@ -429,7 +429,7 @@ function page_init() { add_submenu_page( $this->args['page_slug'], - $this->args['page_title'], + __( $this->args['page_title'], 'bj-lazy-load' ), $this->args['submenu_title'], $this->args['capability'], $this->args['page_slug'], @@ -463,7 +463,7 @@ private function check_args() { 'menu_title' => $this->args['page_title'], 'page_slug' => '', 'nonce' => '', - 'action_link' => __( 'Settings', $this->textdomain ), + 'action_link' => 'Settings', 'admin_action_priority' => 10, ) ); @@ -511,7 +511,7 @@ function _page_content_hook() { function _action_link( $links ) { $url = add_query_arg( 'page', $this->args['page_slug'], admin_url( $this->args['parent'] ) ); - $links[] = html_link( $url, $this->args['action_link'] ); + $links[] = html_link( $url, __( $this->args['action_link'] ) ); return $links; }