Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);
}

Expand Down
4 changes: 4 additions & 0 deletions lang/bj-lazy-load.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""

Expand Down
14 changes: 7 additions & 7 deletions scb/AdminPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function page_help(){}
function page_header() {
echo "<div class='wrap'>\n";
screen_icon( $this->args['screen_icon'] );
echo html( 'h2', $this->args['page_title'] );
echo html( 'h2', __( $this->args['page_title'], 'bj-lazy-load' ) );
}

/**
Expand Down Expand Up @@ -224,7 +224,7 @@ function form_handler() {
*/
function admin_msg( $msg = '', $class = 'updated' ) {
if ( empty( $msg ) )
$msg = __( 'Settings <strong>saved</strong>.', $this->textdomain );
$msg = __( 'Settings <strong>saved</strong>.', 'bj-lazy-load' );

echo scb_admin_notice( $msg, $class );
}
Expand Down Expand Up @@ -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'],
Expand All @@ -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'],
Expand All @@ -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'],
Expand Down Expand Up @@ -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,
) );

Expand Down Expand Up @@ -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;
}
Expand Down