Skip to content

Commit

Permalink
Merge pull request #10 from mayukojpn/master
Browse files Browse the repository at this point in the history
Make customizer option translatable.
  • Loading branch information
congthien authored Oct 10, 2017
2 parents bddd953 + 823c977 commit 4f33d9c
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 17 deletions.
14 changes: 7 additions & 7 deletions inc/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' )
),
) );

Expand All @@ -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' ),
),
) );

Expand All @@ -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' ),
) );
Expand All @@ -108,7 +108,7 @@ function codilight_lite_customize_register( $wp_customize ) {
array(
'section' => 'colors',
'type' => 'custom_message',
'description' => wp_kses_post( 'Check out <a target="_blank" href="https://www.famethemes.com/themes/codilight-lite?utm_source=codilight_lite_customizer&utm_medium=text_link&utm_campaign=codilight_lite#compare">Codilight Premium</a> version for full control over site color styling!', 'codilight-lite' )
'description' => wp_kses_post( __( 'Check out <a target="_blank" href="https://www.famethemes.com/themes/codilight-lite?utm_source=codilight_lite_customizer&utm_medium=text_link&utm_campaign=codilight_lite#compare">Codilight Premium</a> version for full control over site color styling!', 'codilight-lite' ) )
)
));

Expand Down
2 changes: 1 addition & 1 deletion inc/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function codilight_lite_theme_info_page() {
<h3><?php esc_html_e( 'Having Trouble, Need Support?', 'codilight-lite' ); ?></h3>
<p class="about"><?php printf(esc_html__('Support for %s WordPress theme is conducted through the WordPress free theme support forum.', 'codilight-lite'), $theme_data->Name); ?></p>
<p>
<a href="https://wordpress.org/support/theme/codilight-lite" target="_blank" class="button button-secondary"><?php echo sprintf( esc_html('Go To %s Support Forum', 'codilight-lite'), $theme_data->Name); ?></a>
<a href="https://wordpress.org/support/theme/codilight-lite" target="_blank" class="button button-secondary"><?php echo sprintf( esc_html__('Go To %s Support Forum', 'codilight-lite'), $theme_data->Name); ?></a>
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion inc/widgets/block_3_widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
32 changes: 24 additions & 8 deletions languages/codilight-lite.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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&hellip;"
msgstr ""

#: ../inc/dashboard.php:9
Expand Down

0 comments on commit 4f33d9c

Please sign in to comment.