PDA

Visualizza la versione completa: Risolto Blocchi forum ancora buggy e anche non tradotto



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

I blocchi forum sono ancora buggy. La fine del titolo del thread è ancora mostrando [/ langtitle], e il filo è lo mostrano in lingua originale poster.

Esempio:

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

TESTO filo devono essere in lingua utente che visualizza?

Utilizzando vBET che è uscito oggi (4.2.2)

vBET
07-05-10, 18:00
Lo vedo e so che la ragione senza la verifica del codice. Sì - è la nostra bug. vBET sta controllando per'...' nei titoli di risolvere i titoli in altre lingue che dove tagliare (la correzione del bug: http://www.vbenterprisetranslator.com/forum/vbet4-bug-reporting/644-forum-sidebar-problem.html). Ci manca il cappello utente può impostare lì'...' lo stesso;)

Sembra che la correzione di un bug che abbiamo creato un altro - dispiace per focaccia perdere. Noi ci occuperemo di questo. Si prega di notare che avverrà solo con i titoli in altre lingue dopo aver inizialmente'...' all'inizio. Daremo soluzione rapida per questo qui.

Chi TESTO non in lingua visti - questo è purtroppo fuori dalla nostra portata in questo momento - si veda qui per la spiegazione:

vBET
07-05-10, 18:15
Corretto. Per la soluzione rapida per favore:
1. Modificare il file / INCLUES / vbenterprisetranslator_functions_bbcode.html
2. Cerca:


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

3. Sostituire con:


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
Corretto. Per la soluzione rapida per favore:
1. Modificare il file / INCLUES / vbenterprisetranslator_functions_bbcode.html
2. Cerca:


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

3. Sostituire con:


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


Non funziona ... è qui l'intero blocco


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
È stato utilizzato in langtitle sbagliato posto ...[/] Si prega di annullare le modifiche e utilizzarlo in luogo appropriato. Intero blocco dovrebbe essere:


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);
}
}



E questo è il blocco subito dopo questo che avete cambiato.

Automatic Translations (Powered by Google, Microsoft®, Yandex, SDL Language Cloud, IBM Watson and Apertium):
AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translated to other languages supported by vB Enterprise Translator 4.10.1