PDA

View Full Version : Solved SOURCE First



Guni
19-11-10, 20:51
Hello, should I leave the original text will appear first? and the translation should be opened only when needed. Thank you

kamilkurczak
22-11-10, 09:25
now messages are translated but you can leave the original version of message under the translated version (in javascript)

Guni
22-11-10, 21:53
Yes I know. But I can adjust it to the original one is closed?

kamilkurczak
23-11-10, 10:40
Yes I know. But I can adjust it to the original one is closed?

I don't understand it. Can you explain it better?

mateuszr
23-11-10, 15:39
I understand, what you mean :)
You want to have original test be seen all the time and that translated, to the user's default language, only on demand - the reversed situation to that current :)
Unfortunatelly, there's only a half of solution for your question at the moment:

There are two options...

AdminCP -> VBET -> Misc -> Show original text for guest / Show original text for user
...and you can select 'Normal', so the original text is shown all the time with that translated one. Anyway, it's not a seo-friendly solution, because robots will see both original and translated message.

mateuszr
29-11-10, 13:04
Thread moved to Troubleshooting section

mateuszr
29-11-10, 16:05
Here are steps for full solution of your request:

1. Go to 'AdminCP' of your forum
2. Select 'Styles&Templates' from the list on your left
3. In 'Style Manager' choose your default style and from the dropdown list choose 'Edit templates'
4. You'll see a long list of templates - look for the one called 'vbenterprisetranslator_inpost_translate' and double-click on it
5. Replace all phrases 'translated' with 'toTranslated', and change order of flags. The final code should look as follows:



<fieldset>
<legend>
<img class="vbet-flag vbet-{vb:raw toLang}" width="16" height="11" src="http://www.vbenterprisetranslator.com/forum/images/vbet/flags/clear.gif" border="0"/>
<img src="http://www.vbenterprisetranslator.com/forum/images/vbet/{vb:stylevar right}_arrow.gif" alt="{vb:rawphrase vbenterprisetranslator_inpost_translate_header, {vb:raw fromLangText}, {vb:raw toLangText}}" border="0"/>
<img class="vbet-flag vbet-{vb:raw fromLang}" width="16" height="11" src="http://www.vbenterprisetranslator.com/forum/images/vbet/flags/clear.gif" border="0"/>
</legend>

<vb:if condition="$showOriginal">
<div class="smallfont" style="margin-bottom:2px">
<img class="vbet-flag vbet-{vb:raw fromLang}" width="16" height="11" src="http://www.vbenterprisetranslator.com/forum/images/vbet/flags/clear.gif" alt="{vb:rawphrase vbenterprisetranslator_inpost_translate_original}" border="0"/>
</div>
</vb:if>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset; text-align: {vb:raw alignTranslated}; overflow: auto">
<!--vBET_SNTA--><!--vBET_NRE-->{vb:raw toTranslate}<!--vBET_ENTA-->
</div>

<vb:if condition="$showOriginal">
<div class="collapse">
<div style="margin-bottom:2px">
<img class="vbet-flag vbet-{vb:raw toLang}" width="16" height="11" src="http://www.vbenterprisetranslator.com/forum/images/vbet/flags/clear.gif" alt="{vb:rawphrase vbenterprisetranslator_inpost_translate_translated}" border="0"/>
<a href="#top" class="collapse" style="position: static; float: none;" id="collapse_cel_{vb:raw id}"><img id="cel_{vb:raw id}_img" src="http://www.vbenterprisetranslator.com/forum/images/buttons/collapse_40b_collapsed.png" alt="" border="0"/></a>
</div>
<vb:if condition="$showOriginal == 1">
<div id="cel_{vb:raw id}" class="alt2" style="margin: 0px; padding: 6px; border: 1px inset; text-align: {vb:raw alignOriginal}; overflow: auto; display: none">
</div>
<script type="text/javascript">
<!--
document.getElementById("cel_{vb:raw id}").innerHTML = '{vb:raw translated}';
// -->
</script>
<vb:else />
<div id="cel_{vb:raw id}" class="alt2" style="margin: 0px; padding: 6px; border: 1px inset; text-align: {vb:raw alignOriginal}; overflow: auto; display: none">
<!--vBET_SNTA-->{vb:raw translated}<!--vBET_ENTA-->
</div>
</vb:if>
</div>
</vb:if>
</fieldset>

Guni
06-12-10, 11:11
Thank you for your help. That&#39;s what I mean.

kamilkurczak
06-12-10, 11:22
Thank you for confirmation :)

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Thanks to vBET 4.10.1 you can enjoy automatic translations