The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
vB Global Translator - Multiply your indexed pages & put search traffic on autopilot Details »» | |||||||||||||||||||||||||||
vB Global Translator - Multiply your indexed pages & put search traffic on autopilot
Developer Last Online: Dec 2013
**Text Removed**
Show Your Support
|
Comments |
#212
|
||||
|
||||
Quote:
Code:
delete from wt_cache_short where originaltext like '% %'; delete from wt_cache_medium where originaltext like '% %'; delete from wt_cache where originaltext like '% %'; X X X So for same X translation you can have many data in DB. Making mentioned change makes it works faster, and DB is smaller. Also executing those queries on DB will remove all data like listed above and bellow, X will be translated again and after that work without dummy DB filling, and unnecessary querying google for translations. Also indexes should be smaller and faster because there is less common prefixes in originaltext. Also in my forum many sites have translations like: Posts: X Y So now you have translations like i.e. Posts: 1 213 Posts: 1 6 Posts: 2 213 Posts: 2 6 Posts: 1 100 Posts: 2 100 Posts: 3 100 Posts: 3 213 Posts: 3 6 After my changes you will have less translations. For mentioned examples it will be only: Posts: 1 Posts: 2 Posts: 3 213 100 6 Once again - I advice those changes |
#213
|
|||
|
|||
Hi;
works pretty good: Googel.de Quote:
Quote:
Christian |
#214
|
|||
|
|||
Quote:
And what I should add here.. from here,I dont understand,I know,noob question maybe All the flags are on separate lines in alpha order, find your language and add <!-- to the start and --> to the end of the line. eg; <!-- language flag code --> <a rel="novbseo"href="<?php echo (strstr($_SERVER["VBSEO_URI"],'?hl='.@$_GET['hl'])) ? str_replace('?hl='.@$_GET['hl'], '', $_SERVER["VBSEO_URI"]) . '?hl=en' : str_replace('?hl='.@$_GET['hl'], '', $_SERVER["VBSEO_URI"]) . "?hl=en"; ?>"><img src="/flags/United States.gif" alt="English" border="0" /></a> |
#215
|
||||
|
||||
I notice that for some data cache is not used, translation is made again and again cache is populated. So there can be data duplication in DB. It is rare and didn't find out why yet (1 clue - working on that).
If you would like to check do you have data duplication in your cache execute those queries. Execute one by one - each one works on other cache table and tells you how many times and which data is duplicated (1st column duplication counter, 2nd for which originaltext, 3rd for which language): Code:
select count(*) counter, originaltext, tl from wt_cache_short group by originaltext, tl having count(*) > 1 order by counter desc; select count(*) counter, originaltext, tl from wt_cache_medium group by originaltext, tl having count(*) > 1 order by counter desc; select count(*) counter, originaltext, tl from wt_cache group by originaltext, tl having count(*) > 1 order by counter desc; So till it will be solved you can just clear data duplications. I can share my queries to do that, but be aware that those can evaluating for some time and I had to connect by some mysql client on my comp, because by www client server was passing away before query finished it's job. So if you want to delete data duplication first need to create 2 tables for temporary data: Code:
CREATE TABLE saver ( id INT, tl VARCHAR(10), originaltext VARCHAR(65000) ) ENGINE = MYISAM, CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE TABLE cleaner ( id INT ) ENGINE = MYISAM, CHARACTER SET utf8 COLLATE utf8_general_ci; Code:
delete from cleaner; delete from saver; insert into saver (SELECT min(id) as id, tl, originaltext from wt_cache_short group by originaltext,tl having count(*) > 1); insert into cleaner (SELECT id from wt_cache_short where (originaltext, tl) in (SELECT originaltext, tl from saver) and id not in (SELECT id from saver)); DELETE FROM wt_cache_short USING wt_cache_short INNER JOIN cleaner ON wt_cache_short.id = cleaner.id; delete from cleaner; delete from saver; insert into saver (SELECT min(id) as id, tl, originaltext from wt_cache_medium group by originaltext,tl having count(*) > 1); insert into cleaner (SELECT id from wt_cache_medium where (originaltext, tl) in (SELECT originaltext, tl from saver) and id not in (SELECT id from saver)); DELETE FROM wt_cache_medium USING wt_cache_medium INNER JOIN cleaner ON wt_cache_medium.id = cleaner.id; delete from cleaner; delete from saver; insert into saver (SELECT min(id) as id, tl, originaltext from wt_cache group by originaltext,tl having count(*) > 1); insert into cleaner (SELECT id from wt_cache where (originaltext, tl) in (SELECT originaltext, tl from saver) and id not in (SELECT id from saver)); DELETE FROM wt_cache USING wt_cache INNER JOIN cleaner ON wt_cache.id = cleaner.id; |
#216
|
||||
|
||||
Quote:
|
#217
|
|||
|
|||
My forum dont load now,I see just a blank page,what happens?
LE: I found if I upload file translateflags.php forum doesnt load anymore,if I delete the file from the server it works. |
#218
|
||||
|
||||
Quote:
Thanks! S-MAN |
#219
|
||||
|
||||
v2.3a Official Release
* Small fix to avoid translation of non braking spaces to normal spaces To upgrade; find in Global Translator Plugin: Code:
require_once("translate.php"); $output=callback($output); Code:
$output = str_replace(" ", "< >", $output); require_once("translate.php"); $output=callback($output); $output = str_replace("< >", " ", $output); Code:
delete from wt_cache_short where originaltext like '% %'; delete from wt_cache_medium where originaltext like '% %'; delete from wt_cache where originaltext like '% %'; |
#220
|
|||
|
|||
Been watching this develop, so just one tweak is needed for vBseo?
How many languages will be used all 28? Or do I chose them? |
#221
|
||||
|
||||
Great addition, but im getting this problem
Installed yesterday... and i understand its got loads pages to translate... If i translate home page... works fine... but if i try a forum or forum page all i get is (French One) Forum spécifié non valide. Si vous avez suivi un lien valide, s'il vous plaît aviser le administrateur Translates into Not valid specified forum. If you followed a link validates, please to notify the administrator Is it a case of just waiting or is there a problem.... its been installed near 20 hours so far Cheers |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|