Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Language Settings

Home / Forums / Ascend Theme / Language Settings

This topic is: Resolved
[Resolved]
Posted in: Ascend Theme
June 6, 2019 at 5:45 am

Hi,
for small Projects like this one, i try to get by without installing translation plugins, because they only need up to 10 words/strings translated.
Instead i use something like:

/*Change text strings */

function translate_text_multiple( $translated ) {
$text = array(
'About Author' => 'Autor',
'Latest Posts' => 'Beiträge',
'Recent Posts' => 'Aktuelles aus unserem Blog',
'Author' => 'Autorin',
'By' => 'Von',
'Posted in' => 'unter',
'Month' => 'Monat',
);
$translated = str_ireplace( array_keys($text), $text, $translated );
return $translated;
}
add_filter( 'gettext', 'translate_text_multiple', 20 );

Works great except for the Post Carousel on the startpage (bottom): By…. Posted in…

Why it’s not getting replaced? Can you guide me on this please?

It would be nice to have more options under Language Settings to cover the basic strings.

Thank you,
B. Anders

  • The forum ‘Ascend Theme’ is closed to new topics and replies.