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)

imported_silkroad 09-19-2009 07:26 AM

Quote:

Originally Posted by RedHacker (Post 1887173)
Macedonia --> FYROM

RedHacker,

This mod is a lanaguge translation mod, not a political translation mod.

The two letter country code for Macedonian is MK.

Greece has disputed the use of the country name Macedonia and has pushed for the country name Former Yugoslav Republic of Macedonia (FYROM), however the flag remains the same.

Hence, if you want to change the mod, you would need to find every occurrence of the phrase Macedonia and change it to FYROM. The name of the language, Macedonian would remain the same; however you can easily change the country name to FYROM if you wish.

Or, you could request that NLP-er add an option in the mod to use the country name FYROM instead of Macedonia, which he could easily do, since this is a minor technical issue, but a seemingly major issue for the government of Greece.

imported_silkroad 09-19-2009 07:39 AM

Also, FWIW,

Microsoft references the Macedonian language, MK, as follows:

Quote:

mk Macedonian (FYROM)

NLP-er 09-19-2009 08:26 AM

Quote:

Originally Posted by fridolin (Post 1887397)
Hi, NLP-er!
You made a very interesting hack, Thanks.

I have a question:
in your htaccess:
Code:

RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]
may be
Code:

RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbenterprisetranslator_seo.php [L,QSA]
or no?

Right now it is working :)
Will it work with this change - you can test it, since it is working I think that it is loose of time :)

NLP-er 09-19-2009 08:30 AM

Quote:

Originally Posted by imported_silkroad (Post 1887411)
RedHacker,

This mod is a lanaguge translation mod, not a political translation mod.

The two letter country code for Macedonian is MK.

Greece has disputed the use of the country name Macedonia and has pushed for the country name Former Yugoslav Republic of Macedonia (FYROM), however the flag remains the same.

Hence, if you want to change the mod, you would need to find every occurrence of the phrase Macedonia and change it to FYROM. The name of the language, Macedonian would remain the same; however you can easily change the country name to FYROM if you wish.

Or, you could request that NLP-er add an option in the mod to use the country name FYROM instead of Macedonia, which he could easily do, since this is a minor technical issue, but a seemingly major issue for the government of Greece.

Once again mod doesn't and never did use country name Macedonia.

Mod is not using country names at all :D It uses languages names. One country can have several languages, one language can be used in several countries. MOD IS NOT USING COUNTRY NAMES... it is using languages names :)

RedHacker 09-19-2009 12:35 PM

I disable this flag with language and I am OK

NLP-er 09-19-2009 09:31 PM

2.3.0 RELEASED! and finally closed beta stage :)

What's new:
- Supports translation SEO links even without vbSEO :D:D:D
- Translate Google Maps (configurable) - see http://www.forum.simple-nlp.pl/infor...ogle-maps.html for demo
- Little optimizations (i.e. included only necessary things for not translated pages)
- Supports several cache cleaning strategies (optimization for really big forums) and automatically disables cache for cleaning time to avoid read/write conflicts

Hi all. New release allows to use SEO links for every one!!! Even for those without vbSEO. I testes it on 2 test forums without vbSEO - 1 with URL going straigh to forum and 1 with subdirectory in url. It's working in booth cases.

Thats why I think that SEO links should finally work for forums with vbSEO and subdirectory in URL. Not tested in this configuration - who reads this topic knows why :p (but I know that SEO links are working for forums with subdirectory and without vbSEO) - so I will appreciate confirmation does it works on such forums or not :)

I hope that I don't ask for too much and having so many great users who asked for this functionality, there will be at least one cool guy/girl who let me know about this :p

EDIT: CONFIRMED!!! :D:D:D

Also for those where cache cleaning takes too long - you can create those indexes:
Code:

CREATE INDEX dateline ON vbenterprisetranslator_cache_short(dateline);
CREATE INDEX dateline ON vbenterprisetranslator_cache_medium(dateline);
CREATE INDEX dateline ON vbenterprisetranslator_cache(dateline);

NOTE:
- If you made first installation - this is already included. Only those who made update can (but don't have to) create those indxes manually
- Those indexes can help or not (even can make it worst) it depends from your mysql version and Cache TTL setting. mySQL can choose to not use indexes if too much data is selected by where clause - in this case those indexes will made things worst because those will have to be updated during inserts and deletes. If you don't understood what I'm writing here it means that most probably you can ignore it :) Those who have to will understand :D
- When you already have filled cache, then creation of index can take long time (from minutes even to hours - depending of number of rows). So if you want create it then:
1. disable cache for this time
2. (optional) delete whole cache - in this case indexes will be made immediately. You can delete cache data manually (SQL) or change clearing strategy to last one, trigger clearing task manually (in scheduled task), and going back to normal clearing strategy.
3. create indexes (if you didn't clear cache, then create indexes one by one)
4. remember to turn on cache again

ENJOY! :D:up:

Megatr0n 09-19-2009 11:00 PM

NLP-er, when is version 3 coming out? :D

NLP-er 09-19-2009 11:03 PM

Quote:

Originally Posted by Megatr0n (Post 1887795)
NLP-er, when is version 3 coming out? :D

When it will be ready :D ;)

Right now I'm waiting to see does this mod is cool enough to get MOM :cool:

Trana 09-20-2009 02:38 AM

Quote:

Originally Posted by NLP-er (Post 1887749)

Thats why I think that SEO links should finally work for forums with vbSEO and subdirectory in URL. Not tested in this configuration - who reads this topic knows why :p (but I know that SEO links are working for forums with subdirectory and without vbSEO) - so I will appreciate confirmation does it works on such forums or not :)

Anyone tested this yet?

dai-kun 09-20-2009 05:03 AM

I get this Database Error: Unable to connect to the database:Could not connect to MySQL when I tried to use with vBSEO and click on a flag. Nothing is wrong with the database as I can browse the site normally without clicking the flag.

I have set the settings to use vBSEO correctly in my admincp:
Link type: VBSEO_URI
Forum dir: /forum
Translation Links Type: Create URL's according to SEO link consensus (i.e. '/en/address')

I have already made the necessary changes to .htaccess:
PHP Code:

# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /

#rules for SEO translation links with vbSEO (have to be included before all rules to vbseo.php)

RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|uk|vi|cy|yi)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/index.php [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|uk|vi|cy|yi)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$[L,QSA]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteCond 
%{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA

I will PM you with access. Only guests have access to the flag until it's fixed.


All times are GMT. The time now is 12:32 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.03429 seconds
  • Memory Usage 1,794KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)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