Alexandre
asked 7 years ago

Translation

How do I translate the button “More News” in functions.php?

?>
<a class=”dropdown-toggle” data-toggle=”dropdown” href=”#”>
<span class=”number”> <? php echo $ r-> post_count;?> </ span>
<span> <? php echo $ display_type == ‘today’ && $ is_news_today? __ (‘Tonight’, ‘dw_focus’): __ (‘More News’, ‘dw_focus’);?> <i Class=”icon-caret-down”> </ i> </ span>
</ a>
<? php
____________________________________________-
More News was translated, but could not find the place that can translate the word “NO MORE NEWS”, where I can find? I would translate this word. It’s good if your news theme have more translate version.

Thanks,
Alexandre.

2 Answers
BigHug
answered 7 years ago

Hi GeoMarketingDigital.com,

You can find out that text in yoursite/wp-content/themes/dw-focus/assets/js/custom.js inline 109:

$('div.navigation a').addClass('disabled').text('No More News');

Please help us change this to

$('div.navigation a').addClass('disabled').text( dw_focus.endless_content_message );

And go to yoursite/wp-content/themes/dw-focus/functions.php add this code below line 189 ( please don’t forget end prev line with a comma ) :

'endless_content_message' => __('No More News','dw_focus')

It will become like this

.....
+188    wp_localize_script('dw_focus', 'dw_focus', array(
+189        'ajax_url' => admin_url('admin-ajax.php'),
+190        'endless_content_message' => __('No More News','dw_focus')
+191    ) );
.....

Thanks
Rambu

Alexandre
answered 7 years ago

Thankssss Rambu!

 

Powered by DW Question & Answer Pro