View Full Version : Apertium bug

26-02-18, 05:28
It appears that Apertium API has internal bug and it is working wrong - when several translations are used in one request, it translates only last text instead of all of requested. We already send notice to Apertium, but we got no response.

Until Apertium correct their bug you have 3 choices:
1. Ignore it, but Apertium translations will have bugs and will not be cached
2. Disable Apertium in options (but it gives free translations without limits): AdminCP -> vBET -> Translation Providers -> Apertium FREE Translation API
3. Use quick fix below to ask only for one translation per request (NOTE: this will significantly affect performance for not cached translations)

Quick fix (not planned to be included in release, because it is internal Apertium bug):

Open file includes\vbenterprisetranslator_class_translator.php

const MAX_URL_SEGMENTS = 10000;
Replace with:


AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translated to other languages supported by vB Enterprise Translator 4.9.99