Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 4 of 4

Thread: Is there a way to do this?

  1. #1

    Default Is there a way to do this?

    I would like to put a notice at the top of all pages that have been auto-translated, to say that the translations were done by Google (and not 100% perfect). Is there something I can add to my header / navbar template?

    Basically I want a conditional for - IF the page is translated, show this ... else don't.

    Is it possible?

  2. #2
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Very easy just put if clause with condition checking $_REQUEST['language']

    Check this:
    Code:
    <vb:if condition="$_REQUEST['language']">
    THIS IS VISIBLE ONLY ON TRANSLATED VIEW
    </vb:if>

  3. #3

    Default

    Exactly like that or do I need to replace 'language' with a language code?

  4. #4
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Actual one checks does any language value is set. So it will show additional content on any translated page. If you want do it for specific language then you have to do this:
    Code:
    <vb:if condition="$_REQUEST['language'] == 'LANG_CODE'">
    THIS IS VISIBLE ONLY ON TRANSLATED VIEW FOR LANG_CODE
    </vb:if>

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •