PDA

View Full Version : Solved Forum Blocks still buggy and also not translated



Jesh
07-05-10, 16:34
Michal,

The forum blocks are still buggy. The end of the thread title is still showing [/langtitle], and the thread is showing it in the original posters language.

Example:

http://www.jesh.com/bug2.jpg

Thread TEXT should be in user viewing language?

Using vBET that came out today (4.2.2)

vBET
07-05-10, 18:00
I see it and I know the reason without code checking. Yes - it is our bug. vBET is checking for '...' in titles to solve titles in other languages which where cut (correction of bug: http://www.vbenterprisetranslator.com/forum/vbet4-bug-reporting/644-forum-sidebar-problem.html). We miss hat user can set there '...' himself ;)

It seems that correcting one bug we created another one - sorry for tat miss. We will take care about this. Please note that it will happen only with titles in other languages having originally '...' at the beginning. We will give quick fix for that here.

About TEXT not in viewed language - this is unfortunately out of our scope at this moment - please see here for explanation: http://www.vbenterprisetranslator.com/forum/vbet4-general-discussions/655-sidebars-show-text-original-language.html#post2735

vBET
07-05-10, 18:15
Corrected. For quick fix please:
1. Edit file /inclues/vbenterprisetranslator_functions_bbcode.html
2. Find:


if ($endShorted && $endShorted < $end) {
$end = $endShorted + 3;
$toParse = substr($title,$start,$end - $start).'[/langtitle]';

3. REPLACE by:


if ($endShorted && $endShorted < $end) {
$nextStart = strpos($title, '[langtitle=', $endShorted);
if (!$nextStart || $nextStart > $end) {
$toParse = substr($title,$start,$end - $start);
} else {
$end = $endShorted + 3;
$toParse = substr($title,$start,$end - $start).'[/langtitle]';
}

Jesh
07-05-10, 20:16
Corrected. For quick fix please:
1. Edit file /inclues/vbenterprisetranslator_functions_bbcode.html
2. Find:


if ($endShorted && $endShorted < $end) {
$end = $endShorted + 3;
$toParse = substr($title,$start,$end - $start).'[/langtitle]';

3. REPLACE by:


if ($endShorted && $endShorted < $end) {
$nextStart = strpos($title, '';
}


Not working... here is the whole block


if (false === $end) {
$endShorted = strpos($title, '...', $start);

if ($endShorted && $endShorted < $end) {
$nextStart = strpos($title, '[langtitle=', $endShorted);
if (!$nextStart || $nextStart > $end) {
$toParse = substr($title,$start,$end - $start);
} else {
$end = $endShorted + 3;
$toParse = substr($title,$start,$end - $start).'';
}
} else {
break;
}
} else {
$end += 12;
}

vBET
07-06-10, 18:32
You used it in wrong place...[/langtitle] Please undo those changes and use it in appropriate place. Whole block should be:


if (!$toParse) {
$endShorted = strpos($title, '...', $start);
if ($endShorted && $endShorted < $end) {
$nextStart = strpos($title, '[langtitle=', $endShorted);
if (!$nextStart || $nextStart > $end) {
$toParse = substr($title,$start,$end - $start);
} else {
$end = $endShorted + 3;
$toParse = substr($title,$start,$end - $start).'[/langtitle]';
}
} else {
$toParse = substr($title,$start,$end - $start);
}
}



And this is block just after this one which you changed.

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translations by vB Enterprise Translator 4.10.1