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)

LoveStream 08-15-2009 05:05 PM

Quote:

Originally Posted by NLP-er (Post 1867986)
This time it is whole mine. Each line of code. My own new algorithms, DB. Everthing :)

About minimum mysql and php - if vbulletin is working this mod should be working ;)

Unfortunatelly I don't know mnimum - but it is very easy to install and uninstall, so just try :)

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. :)

NLP-er 08-15-2009 05:22 PM

1.0.5 RELEASED

Flags showing correctly for forums in subdirectory (relative path used).

Corrected returning to base language when translation tracking is on.

Enjoy :)

basilrath 08-15-2009 05:53 PM

Nice job and i have quite a lot of foriegn members within the site so if all is good ....... m.o.m

Sweeks 08-15-2009 06:02 PM

Excellent update and it sorted out my little problem too :)

Another donation will be coming your way soon as possible! :D

Sweeks 08-15-2009 06:11 PM

There is one thing I notice about this mod that the old one didnt do and that it allows translation of online.php, todays posts and every vbulletin page going :)

Nice!

LoveStream 08-15-2009 07:16 PM

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.

jaconi 08-15-2009 07:19 PM

Quote:

Originally Posted by NLP-er (Post 1867920)
Hmmm... In many places... Username is shown in navbar, it is shown in postbit and also in legacy version. It would be best if you look for templates which include:
$lastpostinfo['lastposter']
or
$bbuserinfo[username]
or
$post[musername]
or
$post[username]

I don't guarantee this is all :)

I'm looking to arrange that (above)!!

the rest is working great :up:
Marked as installed & donated ;)

ThePixel 08-15-2009 08:37 PM

Its dont work for me ... gets error.. se here: http://thepixel.org/forum/index.php
Help Please

yahoooh 08-15-2009 10:21 PM

Quote:

Originally Posted by yahoooh (Post 1867662)
still :
there are needing to change of the:
<html dir="rtl" lang="ar" xmlns="http://www.w3.org/1999/xhtml">
so it will be lang=en for english and so on
that was work in the other work

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

ThePixel 08-16-2009 03:04 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

Eanybody som can help me ?

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.

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

:):):)

ThePixel 08-16-2009 12:45 PM

Quote:

Originally Posted by NLP-er (Post 1868447)
Please give ma error message from logs (ask server staf about it). Probably it is server configuration issue. Do you have CURL installed?

How do i install that ?

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

Quote:

Originally Posted by TheLastSuperman (Post 1868361)
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

Please PM me DB errors :) Cache is to use it and dissable should be an option not necessary. So I will gladly see what happens so in next release it will works for everyone :)

Pleae give me URL to your form so I will be ble to see what you are writing about this Forum Home tabs. 1 hint - does tabs are texts or images? It will not translate images ;) Also values of html tags attrubites are not translated (it would crasch whole site) - but I can make specific things be translated in next release. First - give me URL so I will see it :)

About not translating index with Tabbed Forum Home - also let me look first :)

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

Quote:

Originally Posted by sensimilla (Post 1868423)
How its different from the other hack ?

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

Dzieki z gory

In 3 words:
Better, faster, easier

In more words ;):
Much, much faster. Can track translation in URL's. Is alive (old one is in graveyard). It is mine :p Is fully integrated with vB. Is easy to install. Is easy to configure. Don't require any manual modification of DB or template.

NLP-er 08-16-2009 01:00 PM

Quote:

Originally Posted by crazymilk (Post 1868439)
how do i get it to show up in vbadvance?

Don't have vbadvanced. So if you like this mod to support vbadvanced give me access to forum AdminCP and FTP - can be test forum with test content and vbadvanced installed.

You can also try to do this manually by Custom flags place and modification of some template. As I wrote I don't use vbadvanced so cannot give more details now. Can support only with access to something what have vbadvanced

NLP-er 08-16-2009 01:03 PM

Quote:

Originally Posted by ThePixel (Post 1868462)
How do i install that ?

http://pl2.php.net/manual/en/curl.installation.php

Lee G 08-16-2009 04:19 PM

Just installed this and tried running it, the flags showed up but, when clicking on them, a data base error sprung up

Quote:

Database error in vBulletin 3.8.1:

Invalid SQL:
SELECT cache.originaltext as originaltext, cache.translated as translated FROM vbenterprisetranslator_cache_medium help, vbenterprisetranslator_cache_medium cache WHERE help.originaltext='Life In Spain, Costa Blanca British Expatriates community forums' AND help.tl='ca' AND cache.serie=help.serie;

MySQL Error : Table 'thespain_vbulletinsql.vbenterprisetranslator_cach e_medium' doesn't exist
Error Number : 1146
Request Date : Sunday, August 16th 2009 @ 07:12:38 PM
Error Date : Sunday, August 16th 2009 @ 07:12:39 PM
Script : http://www.thespainforum.com/?language=ca
Referrer : http://www.thespainforum.com/
IP Address : 84.232.66.210
Username : Lee
Classname : vB_Database
MySQL Version : 4.1.22-standard-log
Any ideas what could have caused that :o

Just found the problem only occures when the cache option is turned on

GoTTi 08-16-2009 05:28 PM

nice mod thanks for the update. its working now for me.

got a question, is the language suppose to stay on what people choose when browsing through the site or do they have to click on the flag every page they goto?

if i goto the forums, click the flag for a language, then go into a subforum it defaults back to english. then if i click a flag and it refreshes and i goto a thread, its back to default english. is it suppose to do that or stay on the language i select?

GoTTi 08-16-2009 05:29 PM

i see the URL tracking option and mine is set to yes, but it isnt holding the language. it keeps going to english.

GoTTi 08-16-2009 05:31 PM

oh i know why! i use the highlight mod for the forums. when mouse over on threads or forums, it highlights the entire block, and you can click the block to goto your thread or forum, instead of directly mousing over the thread name or forum name and clicking it to enter the link your clicking....

how can i fix this with the mouseover effect?

here is the mod i use: https://vborg.vbsupport.ru/showthread.php?t=127515

ThePixel 08-16-2009 05:57 PM

Quote:

Originally Posted by NLP-er (Post 1868479)

I'm hosted by one.com

jaconi 08-16-2009 06:35 PM

Quote:

Originally Posted by ThePixel (Post 1868662)
I'm hosted by one.com

look in CP vbulletin / Maintenance / php info
scroll down and you see Curl ;)
look if it's enabled

ThePixel 08-16-2009 09:55 PM

Quote:

Originally Posted by jaconi (Post 1868678)
look in CP vbulletin / Maintenance / php info
scroll down and you see Curl ;)
look if it's enabled

Its cURL support - enabled ??

NLP-er 08-17-2009 03:42 AM

Quote:

Originally Posted by Lee G (Post 1868610)
Just installed this and tried running it, the flags showed up but, when clicking on them, a data base error sprung up



Any ideas what could have caused that :o

Just found the problem only occures when the cache option is turned on

DB is used only when cache is on :)

About error - you have problem with TABLE_PREFIX or DB. Did you change it after plugin installation? Plugin adds 3 tables to your vBulletin DB and do it safely - it means using TABLE_PREFIX. It table is not wisible I think somesthing wronh happend during installation or TABLE_PREFIX was changed. Uninstall and install mod again and tell does somestnig change :)

NLP-er 08-17-2009 03:43 AM

Quote:

Originally Posted by GoTTi (Post 1868642)
nice mod thanks for the update. its working now for me.

got a question, is the language suppose to stay on what people choose when browsing through the site or do they have to click on the flag every page they goto?

if i goto the forums, click the flag for a language, then go into a subforum it defaults back to english. then if i click a flag and it refreshes and i goto a thread, its back to default english. is it suppose to do that or stay on the language i select?

It is configurable :D Just see to options - also read known issues :)

NLP-er 08-17-2009 03:44 AM

Quote:

Originally Posted by GoTTi (Post 1868646)
oh i know why! i use the highlight mod for the forums. when mouse over on threads or forums, it highlights the entire block, and you can click the block to goto your thread or forum, instead of directly mousing over the thread name or forum name and clicking it to enter the link your clicking....

how can i fix this with the mouseover effect?

here is the mod i use: https://vborg.vbsupport.ru/showthread.php?t=127515

Give me your forum link :)

NLP-er 08-17-2009 03:59 AM

1.1.0 RELEASED :)

- Long texts are translated no matter how big those are
- Cache is working for chosen languages (you simply select for each language does translations should be cached)
- Option to add Google Translate API key for translation requests
- Configurable cache time to live and scheduled task which automatically remove old cache.
- Option to show flags only for guests
- Option to easily remove flags border (without any style changing)
- Option to not translate usernames
- During translation changes param lang in html tag
- Option to translate messages changed by vBSEO to JavaScript (it has such functionality for SEO purposes)

ENJOY! :D

imported_silkroad 08-17-2009 05:41 AM

Quote:

Originally Posted by NLP-er (Post 1868895)
1.1.0 RELEASED :)

- Long texts are translated no matter how big those are
- Cache is working for chosen languages (you simply select for each language does translations should be cached)
- Option to add Google Translate API key for translation requests
- Configurable cache time to live and scheduled task which automatically remove old cache.
- Option to show flags only for guests
- Option to easily remove flags border (without any style changing)
- Option to not translate usernames
- During translation changes param lang in html tag
- Option to translate messages changed by vBSEO to JavaScript (it has such functionality for SEO purposes)

ENJOY! :D

Impressive!

This mod rocks.

Also, you might advise people, just to be safe with the Google Translate TOS, to add a link at the bottom of their forums which says something like:

"Language Translations by Google"

That is what we do, because the Google Translate TOS requires giving credit when you use their services.

Cheers and Wow! Keep up the good work. I'll look at this in more detail soon!

sensimilla 08-17-2009 07:28 AM

Quote:

Originally Posted by NLP-er (Post 1868471)
In 3 words:
Better, faster, easier

In more words ;):
Much, much faster. Can track translation in URL's. Is alive (old one is in graveyard). It is mine :p Is fully integrated with vB. Is easy to install. Is easy to configure. Don't require any manual modification of DB or template.

Thanks alot, it seems I will have to reinstall :)
Great job

sensimilla 08-17-2009 07:55 AM

Any ideas how to make polish fonts beeing displayed correctly ?

demo : http://www.forum.simple-nlp.pl/?language=en

With the previous hack from the graveyard such problem didnt exist.


All times are GMT. The time now is 04:20 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.03469 seconds
  • Memory Usage 1,864KB
  • 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
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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