PDA

View Full Version : Solved Not translated meta name = "description"



Vetall
19-05-15, 09:25
Hi!

Not translated meta name = "description"
vbulletin 4.1.4
vBET Translator 4.7.2

Example Pages
A multimedia guide to car repair and maintenance of Peugeot 206 (1998 to date). (http://autorepman.com/en/peugeot/9-a-multimedia-guide-to-car-repair-and-maintenance-of-peugeot-206-1998-to-date.html)
Multimedia catalogue of technical specifications, repair a car Ford Fusion. (http://autorepman.com/en/ford/7-multimedia-catalogue-of-technical-specifications-repair-a-car-ford-fusion.html)
Motorcycle MV-750-manual (http://autorepman.com/en/moto-tehnika/8385-motorcycle-mv-750-manual.html)

and many others

Marcin Kalak
20-05-15, 15:32
Hi!
I see that some meta content are translated, e.g.: Forum Manuals Car - AutoRepMan.COM (http://autorepman.com/en/forum.php).
Part translation is caused by reaching your limits, but it not an error. See more: http://www.vbenterprisetranslator.com/forum/vbet4-troubleshooting/413-faq-2.html#post10869.

Vetall
02-06-15, 10:40
Good day!

The example below...
1. test_microsoftbyazure.php - Ok!
2. Text of the page translated into English
3. "meta name="description" content=" - not translated.



http://autorepman.com/files/prnscrvbet.jpg

Marcin Kalak
03-06-15, 09:21
Please send me a PM access details to Admin CP and FTP. I will check what is going on there :)

Vetall
03-06-15, 17:21
Data sent with a personal message

Marcin Kalak
04-06-15, 18:47
Quick fix for this issue:

Open file includes/vbenterprisetranslator_functions.php
Find code:

preg_match_all('|<meta[^>]+name=\"([^\"]*)\"[^>]+content=\"(.*?)\" />|i',$head, $meta, PREG_PATTERN_ORDER);
Replace it to code:


preg_match_all('|<meta[^>]+name=\"([^\"]*)\"[^>]+content=\"(.*?)\" />|ims',$head, $meta, PREG_PATTERN_ORDER);


This issue will be fixed in the next release.

Vetall
04-06-15, 18:53
Thank you very much!

Marcin Kalak
04-06-15, 18:56
I'm glad I could help you.

Vetall
19-06-15, 12:06
Good day!

After bug fixes meta name = "description" not fully translated:

http://autorepman.com/files/print20150619.jpg

Marcin Kalak
19-06-15, 15:49
In case of longer meta texts vBET translate only part due to the performance.
Too long meta is pointless because they have to be, by definition, short descriptions.
vBET previously appends rest of not translated meta. We'll fix it and we will not appends rest of not translated meta.

Quick fix for this issue:

Open file includes/vbenterprisetranslator_functions.php
Find code:

$keywords = $meta[2][$i];
Put after it this code:

$keywords_not_cut = $keywords;
Find code:

$description = $meta[2][$i];
Put after it this code:

$description_not_cut = $description;
Find codes:

$output = vbet_replaceFirst('<meta name="keywords" content="'.$keywords, '<meta name="keywords" content="'
Replace it to code:

$output = vbet_replaceFirst('<meta name="keywords" content="'.$keywords_not_cut, '<meta name="keywords" content="'
Find codes:

$output = vbet_replaceFirst('<meta name="description" content="'.$description, '<meta name="description" content="'
Replace it to code:

$output = vbet_replaceFirst('<meta name="description" content="'.$description_not_cut, '<meta name="description" content="'

This issue will be fixed in the next release.

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translations by vB Enterprise Translator 4.9.99