vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Forum Display Enhancements - vB Enterprise Translator (https://vborg.vbsupport.ru/showthread.php?t=220886)

yahoooh 08-16-2009 03:15 AM

did u have curl ? in your server
it will not work without it

imported_silkroad 08-16-2009 05:30 AM

Many of you might have a busy site (like us) and things can slow down during your peak traffic times. Or, you just might want to speed up serving your translated pages, regardless of the speed of translation across the net, by pre-fetching your translations and populating your dB cache.

We do this very simply, and manually, during off-peak times using the urllist.txt file generated by vBSEO, as follows (linux wget example):

(1) Copy the ./data/urllist.txt file to something like ja.txt (we will use Japanese as an example here).

(2) Simply use either vi or sed (or your favorite tool) to append ?language=ja (or whatever language you use) to the end of each URL. Example: %s/$/?language=ja/

(3) Optional: Remove the posts and index URLs if you want to focus on showthreads and tags, etc. This step is optional, and can be easily done with grep.

(4) Run this command in the same directory:

Code:

wget -b -O /dev/null -i ja.txt -o links.txt -U your_site_wget_ja
Basically, wget will run in the background (-b), send the output to /dev/null, and GET every URL in the ja.txt (-i), send the output to (optional) links.txt (-o) and then to track your progress in the log files (optional) you can specify a string for your user agent (-U).

Also, you can add the wait (-w) option in wget if you need it, but we run this off peak, so nevermind.

I found using wget against a modified version of urllist.txt works great to prefetch translations :D

This is very and you can easily run it on your (linux) server. Enjoy :cool:

TheLastSuperman 08-16-2009 08:31 AM

I have the Forum Home tabs mod installed NPL-er and it will not translate the tabs content, cache produces a DB error but I disable and it works fine on all other pages except index using Tabbed Forum Home Mod by Bobster65.

Any help would be appreciated - Thanks! & MOTM ;)

S-MAN

NLP-er 08-16-2009 10:07 AM

Quote:

Originally Posted by LoveStream (Post 1867995)
Good Coder, Thanks for very quick reply.

I install it and tested under PHP 4.x.x and I found it runs very well.
Now I have to plan it on to our main site for the active services.

But I have to set images border to "0".
Now, this very fast translate I found, The speed is very satisfied to me.

My next concern is if is possible to translate very long text in once trial without it's length limit.

I hope that.
And I will report later after it installed.

Thank you again. :)

Really long texts translation is planned for next major release :)
But you can be pretty cool even with that limitation. NOTE: we are talking about 1800 characters of plain text - It means there is no even any break inside nor image or link. Even if people write really long posts there are lot of breaks there - so it is automatically truncated and translated right now :)

It has to be over 1800 characters without html part inside - only in this case it is not translated now. And it will be in next major release :) I just needed to see that it is worth to invest more time, and with all yours appreciation and support I'm sure that it is :)

NLP-er 08-16-2009 10:15 AM

Quote:

Originally Posted by basilrath (Post 1868020)
Nice job and i have quite a lot of foriegn members within the site so if all is good ....... m.o.m

Great thanks :) It will be even better in next major release :)

sensimilla 08-16-2009 10:50 AM

How its different from the other hack ?

Czym sie rozni twoj hack od poprzedniego w ktorym byly chyba podziekowania dla Ciebie ?

Dzieki z gory

crazymilk 08-16-2009 11:43 AM

how do i get it to show up in vbadvance?

NLP-er 08-16-2009 11:48 AM

Quote:

Originally Posted by LoveStream (Post 1868084)
Hello.

Sometimes when I chage the whole pages this warning occurs. I think this is not critical but it seems to be some conflict with in header.

HTML Code:

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_yui.php:80) in [path]/includes/vbenterprisetranslator_functions.php on line 126
Thank you.

Hello.

I don't have such file /includes/class_yui.php - so it have to be from some mod. And this mod causes conflict. Please tell me from which mod it is (maybe it is included in file) or PM me content of that file - I will look at it :)

NLP-er 08-16-2009 11:53 AM

Quote:

Originally Posted by ThePixel (Post 1868127)
Its dont work for me ... gets error.. se here: http://thepixel.org/forum/index.php
Help Please

Please give ma error message from logs (ask server staf about it). Probably it is server configuration issue. Do you have CURL installed?

NLP-er 08-16-2009 12:38 PM

Quote:

Originally Posted by yahoooh (Post 1868178)
fixed just add this code in :
PHP Code:

 $output str_replace('lang="ar"''lang="'.$_GET['language'].'"'$output); 

after
PHP Code:

    $language $_GET['language'];
    if (
vbet_isLangSupported($language) && ($language != $vbulletin->options['vbenterprisetranslator_forumlanguage'])) { 

and change "ar" to your default language u use n your site

In next release this will be done by default without any manual modification.


All times are GMT. The time now is 08:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01975 seconds
  • Memory Usage 1,759KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete