• 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!');

    Thanks

  • The topic ‘How do I get to translate a text within .js like that line?’ is closed to new replies.