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)

NLP-er 08-19-2009 07:23 PM

Quote:

Originally Posted by T2x (Post 1870623)
Yeah that sounds good.

Alright I have fixed it now for the main page:

https://vborg.vbsupport.ru/showpost....&postcount=181

If you are having any issues now, check your htaccess for any kind of rewrite rules on your main page.

Ill start working on making it compatiable with the www.website.com/forums/lang format

Still have redirect on main page

NLP-er 08-19-2009 07:25 PM

Quote:

Originally Posted by imported_silkroad (Post 1870630)
Hey NLP-er,

When you include this in a release, I recommend the following:

(1) Put the code T2x is working on in it's own file, for example "./includes/t2x_vbseo.php"

(2) Then, simply add one line in vbseo.php, something like:

Code:

include_once('includes/t2x_vbseo.php');
This will be much easier for folks to install and maintain, and easier for you as well.

Plus, if anyone has a problem, they can simply comment out one line.

Or, even better, you can add a configuration flag and make it so users can turn it on and off in the configuration CP. :D

Code:

if (T2X_VBSEO_ENABLED) include_once('includes/t2x_vbseo.php');
.... something like that

Thanks for advice :) I was already thinking about this and have in mind solution without any editing of vbseo.php (made not finishing rule in .htaccess) hope it will work :)

Will start working on this when new link format will work also for forums in sub directory :)

imported_silkroad 08-20-2009 05:11 AM

Quote:

Originally Posted by NLP-er (Post 1870639)
Still have redirect on main page

We installed the latest t2x_vbseo.php code.

It seems to be OK now (great job!), except on the main page, same as NLP-er.

Cheers and Thanks!

imported_silkroad 08-20-2009 06:46 AM

FYI, for those of you who install the t2x_vbseo.php code, note that you can easily 301 your original language back to the original site (to avoid possible duplicate content issues).

For example, for English create a directory in your forum root called 'en'.... then you can create a .htaccess file as follows, in that directory:

Code:

RewriteEngine on
RewriteRule (.*) http://www.YOURSITE.com/$1  [L,R=301]

Make sure you change YOURSITE to your site :D

imported_silkroad 08-20-2009 09:15 AM

Dear NLP-er and T2x,

This rewrite rule:

Code:

RewriteCond %{QUERY_STRING} (hl=|language=)(..|zh-TW|zh-CN)
RewriteRule ^(.*)$ http://%{HTTP_HOST}/%2/$1? [L,R=301]

Needs to be changed to:

Code:

RewriteCond %{QUERY_STRING} (hl=|language=)(zh-TW|zh-CN|..)
RewriteRule ^(.*)$ http://%{HTTP_HOST}/%2/$1? [L,R=301]

If you don't put the ".." match on the end, it will match zh before zh-TW and zh-CN.

T2x 08-20-2009 09:33 AM

Okay I have updated my code on page 13 to the latest after all of the fixes for the various bugs :D

Still a few to sort out but its looking very nice

imported_silkroad 08-20-2009 09:36 AM

Quote:

Originally Posted by T2x (Post 1870919)
Okay I have updated my code on page 13 to the latest after all of the fixes for the various bugs :D

Still a few to sort out but its looking very nice

Request: Can you put some version numbers on your code on page 13 when you make changes? Thanks!

Konstantinos 08-20-2009 10:18 AM

how can we make this to work for addons like photopost gallery ?

Megatr0n 08-20-2009 12:06 PM

NLP-er, you said this will translate in 42 different languages but I do not see 42 flags?

Do you if Urdu will ever be available?

imported_silkroad 08-20-2009 12:14 PM

Quote:

Originally Posted by Megatr0n (Post 1870991)
NLP-er, you said this will translate in 42 different languages but I do not see 42 flags?

Do you if Urdu will ever be available?

Here you can see the languages supported by Google Translate:

http://translate.google.com/translate_tools?hl=en

Note: Urdu is not in the list.

Here is another view of the same list:

http://translate.google.com/?hl=en#

Code:

Languages available for translation (Google's List)

Albanian
Arabic
Bulgarian
Catalan
Chinese
Croatian
Czech
Danish
Dutch
English
Estonian
Filipino
Finnish
French
Galician
German
Greek
Hebrew
Hindi
Hungarian
Indonesian
Italian
Japanese
Korean
Latvian
Lithuanian
Maltese
Norwegian
Persian
Polish
Portuguese
Romanian
Russian
Serbian
Slovak
Slovenian
Spanish
Swedish
Thai
Turkish
Ukrainian
Vietnamese



All times are GMT. The time now is 05:13 AM.

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.02146 seconds
  • Memory Usage 1,747KB
  • 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
  • (6)bbcode_code_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