Forums

qTranslate problem (2 posts)

  1. levani01
    Member
    Posted 3 years ago #

    I have a problem with qTranslate plugin. According to this faq

    http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=3&st=0&sk=t&sd=a#p14

    I used this code

    <?php _e("[lang_en]english text[/lang_en][lang_de]german text[/lang_de]"); ?> but it doesn't work. It writes only

    [lang_en]english text[/lang_en][lang_de]german text[/lang_de]

    instead of translating anything. Why does the _e function doesn't work?

  2. Masino Sinaga
    Member
    Posted 2 years ago #

    IMHO, <?php _e("[lang_en]english text[/lang_en][lang_de]german text[/lang_de]"); ?> doesn't work because _e() function using gettext from .mo file, while this string does not or never exist in that .mo file.

    Try to use the following code:

    <?php echo ("[:en]english text[:de]german text"); ?>

    Please let me know your feedback. Thanks.

    [signature moderated Please read the Forum Rules]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.