Go Back   vb.org Archive > vBulletin Modifications > vBulletin 5.x Modifications > vBulletin 5.x Template Modifications
Multilingual content Details »»
Multilingual content
Version: 1.00, by delicjous delicjous is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 5.3.0 Rating:
Released: 02-12-2018 Last Update: Never Installs: 0
 
No support by the author.

I searched for a possibility to make content multilingual. So I try to use a bb-code to do it and it worked. So I will share to have more testing users and feedback.

If you want to have multilingual content you could create a new bbcode:

-BB Code Tag Name: translate (you should use something that others could not imagine to avoid other users to use it - if necessary)

-Replacement:
HTML Code:
<span class="vb_translation_{option}">{param}</span>
- Example:
HTML Code:
<span class="translation_1">This is a english text</span>
-Use {option}: Yes
-Remove Tag If Empty: Yes
-Disable BB Code Within This BB Code:No
-Disable Smilies Within This BB Code:No
-Disable Word Wrapping Within This BB Code:No
-Disable Automatic Link Parsing Within This BB Code:No

Now you have to create a new template and put in the following:
Templatename: YourTitle
HTML Code:
<style>
.translation_{vb:raw preferred_languageid} {
	display:none;
}
</style>
Save!

We will use a hook to get the css working:

Hook Location: footer_before_body_end
Title: Your title
Template Name: YourTitle

Save!

Thats it! If you change your language the text of language 1 one is not displayed anymore. Instead you will see the text in any other language.

You could use the bbcode in forum, article and every content like this:
[translate=1]This is a english text[/translate]
[translate=2]Das ist ein deutscher Text[/translate]

Pros:
- have more than one language in one post.
- google will crawl both (or more) languages. (not the best way for seo!)

Cons:
- Perhaps you have to increase postmaxchars to post in more than one language.
- You have to define a text for all languages or the post is empty!
- Didn't found any others yet!


Get more useful information, add-ons and widgets at vbulletin-forum.de!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-30-2018, 05:29 AM
saifo saifo is offline
 
Join Date: Mar 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice idea
can I see an example?
is there also a pro version?
Reply With Quote
  #3  
Old 05-02-2018, 04:08 AM
delicjous's Avatar
delicjous delicjous is offline
 
Join Date: Nov 2014
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't use it right now so I have no example. Iam searching for way to make a pro version but it will take time.
Reply With Quote
  #4  
Old 05-27-2018, 03:59 PM
saifo saifo is offline
 
Join Date: Mar 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

see the private message
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:16 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07400 seconds
  • Memory Usage 2,237KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete