PDA

Ver Versión Completa: Resolto Bloques foro aínda buggy e tampouco traducido



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

Os bloques aínda están foro buggy. O fin do título do fío aínda está amosando [langtitle /], e o segmento é mostra-lo na lingua carteis orixinais.

Exemplo:

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

TEXTO fío debe ser en linguaxe de visualización de usuario?

Usando vBET que saíu hoxe (4.2.2)

vBET
07-05-10, 18:00
Eu vexo iso e eu sei o motivo, sen verificación de código. Si - é o noso erro. vBET está comprobando'...' en títulos de resolver títulos noutras linguas que se corte (corrección de erro: http://www.vbenterprisetranslator.com/forum/vbet4-bug-reporting/644-forum-sidebar-problem.html). Perdemos sombreiro usuario pode definir alí'...' si mesmo;)

Parece que corrixir un erro que creamos outro - pena de tat perder. Imos ter coidado con iso. Ten en conta que iso vai ocorrer só con títulos noutras linguas tendo orixinalmente'...' no inicio. Imos dar solución rápida para iso aquí.

Sobre TEXT non en linguaxe vistos - este é, por desgraza, fóra do noso alcance neste momento - vexa aquí para unha explicación:

vBET
07-05-10, 18:15
Corrixidos. Para solución rápida por favor:
1. Editar o ficheiro / inclúe / vbenterprisetranslator_functions_bbcode.html
2. Buscar:


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

3. Substituír por:


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
Corrixidos. Para solución rápida por favor:
1. Editar o ficheiro / inclúe / vbenterprisetranslator_functions_bbcode.html
2. Buscar:


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

3. Substituír por:


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


Non funciona ... aquí é todo o bloque


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
Usou o en lugar incorrecto ...[/ langtitle] Por favor, desfacer estas modificacións e usalo en lugar apropiado. Bloque enteiro debe ser:


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 este é o bloque logo este que cambiou.

Automatic Translations (Powered by Google, Microsoft®, Yandex, SDL Language Cloud, IBM Watson and Apertium):
AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Languages translations supported by vBET 4.10.1