• Resolved Nativum

    (@nativum)


    Hello,

    I am using this plugin with marketpress ecommerce from Wpmu Dev.

    But I dont’t know how can I translate the description of the product category in more languages? I have try to use [:en]English Text[:de]Deutsch but it doesn’t work.

    The product category descriptions show both languages along with the shortcodes when browsing a category page, e.g.:

    [:en]English Text[:de]Deutsch

    Please could you help me out?

    Thanks a lot,

    best regards,

    Edina

    https://www.ads-software.com/plugins/qtranslate-x/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Gunu

    (@grafcom)

    @nativum,

    have you tried Settings – Languages – Compatibility Functions ?

    Also try the latest beta version

    Download it here

    Thread Starter Nativum

    (@nativum)

    @ Gunu,

    thanks for your quick reply.

    Yes I have checked the Compatibility Functions.

    But nothing changed ??

    Is this beta version the same as the x-translate-x?

    Plugin Author Gunu

    (@grafcom)

    @nativum,

    The beta version is the same only newer.

    Unzip the new file.

    In WP admin deactivate qTranslate x, then with FTP delete all files in the existing qtranslate-x folder and after that copy all new files in it. Activate qTranslate x again.

    Do not use the WP plugin install in Admin in connection with folder names

    Thread Starter Nativum

    (@nativum)

    Hello @ gunu,

    I installed the new version , but it is the same ??

    When I switch between the languages nothing chenges it takes the other language with

    like so:

    [:en]English Text[:de]Deutsch

    Plugin Author Gunu

    (@grafcom)

    @nativum,

    and how it is in the front-end?

    Thread Starter Nativum

    (@nativum)

    On the front-end it is so:

    [:en]halo[:hr]Hrvatski[:de]Deutsch[:]

    Plugin Author Gunu

    (@grafcom)

    have you tried this see FAQ:

    Is it possible to translate theme custom fields?

    Thread Starter Nativum

    (@nativum)

    @gunu,

    I use this code

    <?php
        if( is_tax( 'product_category' ) ){
            $tax = $wp_query->get_queried_object();
            $desc = '<p>'.$tax->description.'</p>';
        }
    ?>
    <script type="text/javascript">
    jQuery(function($) {
    	$('.tax-product_category .entry-summary').append('<?php echo $desc; ?>');
    });
    </script>

    to show the description on the category page.

    Maybe is there something wrong?

    Plugin Author Gunu

    (@grafcom)

    maybe Wrapping strings in GetText calls can be useful

    Thread Starter Nativum

    (@nativum)

    Hello @gunu,

    the support team of Wpmu dev marketpress ecommerce ( the plugin which I am using) asked me to ask you what the name of function that translate the string in q translate x is?

    I need it to pass the description within that function:

    $desc = '<p>'. CUSTOM_FUNCTION( $tax->description ). '</p>';

    Thanks for your help,

    best regards,

    Edina

    Plugin Author Gunu

    (@grafcom)

    @nativum,

    I have forwarded the question to John.

    Thread Starter Nativum

    (@nativum)

    thanks @ Gunu

    Plugin Author Gunu

    (@grafcom)

    @nativum,

    the response of John:

    Most themes use __() translation by default, otherwise you may ask theme author to make this little modification for each field you need to be translatable.
    Also, proper way for them to pass a variable through a filter, and then you can put the filter name in “Custom Filters” configuration to integrate their plugin. This is the best and proper way which does not require any knowledge about q-X.

    Plugin Author Gunu

    (@grafcom)

    @nativum,

    this problem has been solved?

    Plugin Author Gunu

    (@grafcom)

    Closing due to inactivity.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘How to translate text in the product description!’ is closed to new replies.