Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Alex Gor

    (@alexgff)

    @labalab
    What is plugin name for Slideshow?

    Thread Starter labalab

    (@labalab)

    No plug-ins
    Slideshow themes customizr does not translate

    Thread Starter labalab

    (@labalab)

    I choose — Auto-generated slider from your blog posts — from customize front page.
    also ‘creating new slider’ does not has translation option, (title limited to 80 char, so it’s not enough to write text for other languages.

    Plugin Contributor Alex Gor

    (@alexgff)

    @labalab
    You can use filter to get correct title

    add_filter( 'tc_posts_slider_title', 'wpglobus_slider_title', 10, 2 );
    function wpglobus_slider_title( $title, $post_id ) {
    	$title = get_post_field( 'post_title', $post_id );
    	return WPGlobus_Core::text_filter( $title, WPGLobus::Config()->language );	
    
    }

    Moreover you can use filters ‘tc_posts_slider_text’ to get text,
    ‘tc_posts_slider_button_text’ to get button text.
    Please see class-content-slider.php file of customizr theme.

    Thread Starter labalab

    (@labalab)

    Thank you

    Plugin Contributor Alex Gor

    (@alexgff)

    @labalab
    You are welcome

    Tilman

    (@archeryimagesnet)

    I hope it is ok that I reanimate this thread, as my problem is very similar.
    I am sorry but I do not understand the solution with the filters as given above. Where am I supposed to add this piece of code?
    My problem is just about the frontpage slider.
    I tried the way as described here:
    http://www.wpglobus.com/extensions-archive/multilingual-texts-in-wordpress-theme-options-panel/
    First of all, as labalab said already, the customizr theme only allows 80 characters in the heading of the slider. So, with two language there is no space left already for a real heading, not to speak of more than two languages.
    Anyway, I added tc_theme_options and theme_mods_customizr to the options to translate. It didn’t work. The problem seems to be, that the text that is displayed in the slide is not stored in those tables. In these tables, there is only the name of the slider not the text. In my case that name is “homepage”. So, as my last resort, I created two sliders and changed the option "homepage" to "{:en}homepage{:}{:de}homepage-de{:}" in the database directly with phpmyadmin. After that, all settings I ever made to the theme were set back, and my website now looks as it came out of the box.
    So, no slider in two languages, and a website where I have to do the styling all over again. Please help.

    Plugin Contributor Alex Gor

    (@alexgff)

    @archeryimages.net
    Piece of code you must add to functions.php file of your active theme.
    The text was taken from post_title field of wp_posts table

    Tilman

    (@archeryimagesnet)

    Thanks for the fast response Alex! I tried that, but it seems to not change anything.
    I finally found where the theme stores the content of the slider, in the field meta_value (meta_key is slide_title_key and slide_text_key)in the wp_postmeta table.
    Is it somehow possible to let the “WPGlobus Translate Options” Plugin also translate this table?

    Plugin Contributor Alex Gor

    (@alexgff)

    @archeryimages.net
    You don’t need to use WPGlobus Translate option with wp_postmeta table.
    In your case code is

    add_filter( 'tc_posts_slider_title', 'wpglobus_slider_title', 10, 2 );
    function wpglobus_slider_title( $title, $post_id ) {
    	$title = get_postmeta( $post_id, 'slide_title_key', true );
    	return WPGlobus_Core::text_filter( $title, WPGLobus::Config()->language );	
    
    }

    Tilman

    (@archeryimagesnet)

    I tried that piece of code, but it doesn’t work. I opened a thread in the customizr forum, too. I mean, it seems like a theme problem and I hope they can solve it, I think I am not the only one with that problem.

    Tilman

    (@archeryimagesnet)

    Hi Alex,
    in support forum for the Cusomizr theme I get not answer about my problem. Would you mind explaining again what that piece of code is supposed to do? As I said, it did not change it, the slider is still not translated. Right now, nothing seems to work…

    Plugin Contributor Alex Gor

    (@alexgff)

    @archeryimages.net
    You can open ticket at
    http://www.wpglobus.com/support/submit-ticket/

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘does not translate Slideshow’ is closed to new replies.