View Full Version : Solved Condition for translation

01-04-10, 12:02

I want to show the "Automatic Translation Powered by Google" in my footer below the copyright when a translated page is shown.

But the $_GET['language'] condition does not work in the footer template.

Is there another way?

01-04-10, 12:04
If you are using it in template use it in this way:

01-04-10, 12:31
Does not work!

<vb:if condition="$_GET[language]">
<div class="shade footer_copyright" align="center">
Automatic Translations (Powered by <span style="vertical-align: sub;"><img title="Powered by Google" src="http://www.google.com/uds/css/small-logo.png" alt="Powered by Google" border="0"></span>)

01-04-10, 12:36
Sorry I miss section ;) For vBET 4.x it is $_REQUEST['language'] (' signs are allowed in condition).

PLEASE NOTE: It is not tested - vB4 requires to predefine all variables used in templates. Some are defined automatically, but not sure that $_REQUEST is so this can not work.

If it doesn't work then ADDITIONALLY please edit file /includes/vbenterprisetrnaslator_functions_hooks.php
1. Find:

$templater->register('linkstitle', $linkstitle);

2. Put BEFORE:

$templater->register('_REQUEST', $_REQUEST);

This was also not tested.

01-04-10, 12:45
Perfect, thanks

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Languages translations supported by vBET PRODUCER_PRODUCT_VERSION