From 0b6d8cd88b8d2540085137c2161d9774f6f365f4 Mon Sep 17 00:00:00 2001 From: Mayuko Moriyama Date: Tue, 3 May 2016 19:02:58 +0900 Subject: [PATCH 1/5] Make customizer option translatable. --- inc/customizer.php | 12 ++++++------ languages/codilight-lite.pot | 32 ++++++++++++++++++++++++-------- 2 files changed, 30 insertions(+), 14 deletions(-) diff --git a/inc/customizer.php b/inc/customizer.php index 90f64ca..91e3492 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -65,8 +65,8 @@ function codilight_lite_customize_register( $wp_customize ) { 'section' => 'codilight_lite_layout', 'type' => 'radio', 'choices' => array( - 'left' => 'Left Sidebar', - 'right' => 'Right Sidebar', + 'left' => __( 'Left Sidebar', 'codilight-lite' ), + 'right' => __( 'Right Sidebar', 'codilight-lite' ) ), ) ); @@ -79,8 +79,8 @@ function codilight_lite_customize_register( $wp_customize ) { 'section' => 'codilight_lite_layout', 'type' => 'radio', 'choices' => array( - 'list' => 'List', - 'grid' => 'Grid', + 'list' => __( 'List', 'codilight-lite' ), + 'grid' => __( 'Grid', 'codilight-lite' ), ), ) ); @@ -93,8 +93,8 @@ function codilight_lite_customize_register( $wp_customize ) { 'section' => 'codilight_lite_layout', 'type' => 'radio', 'choices' => array( - 'list' => 'List', - 'grid' => 'Grid', + 'list' => __( 'List', 'codilight-lite' ), + 'grid' => __( 'Grid', 'codilight-lite' ), ), 'description' => esc_html__( 'Category, Tag, Author, Archive Page…', 'codilight-lite' ), ) ); diff --git a/languages/codilight-lite.pot b/languages/codilight-lite.pot index f696300..c6b847e 100644 --- a/languages/codilight-lite.pot +++ b/languages/codilight-lite.pot @@ -141,32 +141,48 @@ msgid "" "order and styling!" msgstr "" -#: ../inc/customizer.php:43 +#: ../inc/customizer.php:41 msgid "Site Logo" msgstr "" -#: ../inc/customizer.php:45 +#: ../inc/customizer.php:43 msgid "Your site logo" msgstr "" -#: ../inc/customizer.php:56 +#: ../inc/customizer.php:54 msgid "Site Layout" msgstr "" -#: ../inc/customizer.php:66 +#: ../inc/customizer.php:64 msgid "Default Sidebar Position" msgstr "" -#: ../inc/customizer.php:80 +#: ../inc/customizer.php:68 +msgid "Left Sidebar" +msgstr "" + +#: ../inc/customizer.php:69 +msgid "Right Sidebar" +msgstr "" + +#: ../inc/customizer.php:78 msgid "Front Page Posts Layout" msgstr "" -#: ../inc/customizer.php:94 +#: ../inc/customizer.php:82 ../inc/customizer.php:96 +msgid "List" +msgstr "" + +#: ../inc/customizer.php:83 ../inc/customizer.php:97 +msgid "Grid" +msgstr "" + +#: ../inc/customizer.php:92 msgid "Archive Page Posts Layout" msgstr "" -#: ../inc/customizer.php:101 -msgid "Category, Tag, Author, Archive Page ..." +#: ../inc/customizer.php:99 +msgid "Category, Tag, Author, Archive Page…" msgstr "" #: ../inc/dashboard.php:9 From 8655fcb60f857d086c51566ebf13269fa16b2e10 Mon Sep 17 00:00:00 2001 From: Mayuko Moriyama Date: Tue, 3 May 2016 19:41:27 +0900 Subject: [PATCH 2/5] Use same format. --- inc/widgets/block_3_widget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/widgets/block_3_widget.php b/inc/widgets/block_3_widget.php index e3c8447..143499e 100644 --- a/inc/widgets/block_3_widget.php +++ b/inc/widgets/block_3_widget.php @@ -10,7 +10,7 @@ class Codilight_Lite_Widget_Block_3 extends WP_Widget { public function __construct() { - $widget_ops = array('classname' => 'block3_widget', 'description' => esc_html__( "Display a list of posts based on one parent category", 'codilight-lite') ); + $widget_ops = array('classname' => 'block3_widget', 'description' => esc_html__( "Display a list of posts based on one parent category.", 'codilight-lite') ); parent::__construct('ft_block3', esc_html__('FT Block 3', 'codilight-lite'), $widget_ops); $this->alt_option_name = 'widget_block3'; From 9f69be44369018a8a88a9df2578950646ec48b1a Mon Sep 17 00:00:00 2001 From: Mayuko Moriyama Date: Tue, 3 May 2016 19:59:48 +0900 Subject: [PATCH 3/5] Make string translatable. --- inc/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/dashboard.php b/inc/dashboard.php index b1fef77..eb9db7e 100644 --- a/inc/dashboard.php +++ b/inc/dashboard.php @@ -42,7 +42,7 @@ function codilight_lite_theme_info_page() {

Name); ?>

- Name); ?> + Name); ?>

From cb1bdfb0d437fb6cfe40d393634ee094ba4edaae Mon Sep 17 00:00:00 2001 From: Mayuko Moriyama Date: Tue, 3 May 2016 20:06:31 +0900 Subject: [PATCH 4/5] Make string translatable. --- inc/customizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/customizer.php b/inc/customizer.php index 91e3492..f1b62ac 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -108,7 +108,7 @@ function codilight_lite_customize_register( $wp_customize ) { array( 'section' => 'colors', 'type' => 'custom_message', - 'description' => wp_kses_post( 'Check out Codilight Premium version for full control over site color styling!', 'codilight-lite' ) + 'description' => wp_kses( __( 'Check out Codilight Premium version for full control over site color styling!', 'codilight-lite' ) ) ) )); From 823c9771b5cb06076614db3189eac36160ca381c Mon Sep 17 00:00:00 2001 From: Mayuko Moriyama Date: Tue, 3 May 2016 20:38:25 +0900 Subject: [PATCH 5/5] Restore function name. --- inc/customizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/customizer.php b/inc/customizer.php index f1b62ac..42a5b17 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -108,7 +108,7 @@ function codilight_lite_customize_register( $wp_customize ) { array( 'section' => 'colors', 'type' => 'custom_message', - 'description' => wp_kses( __( 'Check out Codilight Premium version for full control over site color styling!', 'codilight-lite' ) ) + 'description' => wp_kses_post( __( 'Check out Codilight Premium version for full control over site color styling!', 'codilight-lite' ) ) ) ));