• im trying to set different languages in the caption place but i looks impossible to make it work.
    I tried putting in the caption:

    - [:en] English text [:de] Deutsch text - <!--:en--> English text<!--:--><!--:de--> Deutsch text<!--:-->

    but when i print it, it would just make a display like this:

    [:en] English text [:de] Deutsch text
    Deutsch text

    So in the first case, it doesn’t interprets the shortcode of qtranslate and in the second case it just removes it.

    When calling the galley (im using SexyCycle) i call it this way in the post:

    <code><div class="centerColumn col gu3"> <?php print_custom_field('gallery:do_shortcode'); ?> </div></code>

    Then, in the plugin i have this:

    if ($caption == 'caption' && trim($attachment->post_excerpt)) {
    				echo $attachment->post_excerpt;
    				$ret .= "<{$captiontag} class='gallery-caption'>" . wptexturize( $attachment->post_excerpt) . "</{$captiontag}>";
    			}
    			else if ($caption == 'desc' && trim($attachment->post_content)) {
    				$ret .= "<{$captiontag} class='gallery-caption'>" . wptexturize($attachment->post_content) . "</{$captiontag}>";
    			}

    any suggestions?
    Thanks!

  • The topic ‘[Plugin: Qtranslate] qTranslate not working in caption’ is closed to new replies.