How do I get to translate a text within .js like that line? (1 post)

  1. iLucato
    Posted 1 year ago #

    Hi folks,
    How do I get to translate with qtranslate a text within .js code like that line:

    $('#ss_account_submit').val('Create Account!');

    I tried a lot of things with my low knowledge in Php that didn't work, such as:

    $('#ss_account_submit').val('[:pt]Crie uma conta![:en]Create Account!');

    $('#ss_account_submit').val('<--:pt-->Crie uma conta!<--:--><--:en-->Create Account!<--:pt-->');

    $('#ss_account_submit').val __(('<--:pt-->Crie uma conta!<--:--><--:en-->Create Account!<--:pt-->'));

    $('#ss_account_submit').val (<?php __('<--:pt-->Crie uma conta!<--:--><--:en-->Create Account!<--:pt-->') ?>);

    Any idea what could work for this original line?

    $('#ss_account_submit').val('Create Account!');


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • qTranslate
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic