Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[How-To] Deal with Hack-Translations (vBulletin 3.5 RC1 and up)
Andreas's Avatar
Andreas
Join Date: Jan 2004
Posts: 6,863

 

Germany
Show Printable Version Email this Page Subscription
Andreas Andreas is offline 07-26-2005, 10:00 PM

Keeping the new Product Management in mind, I think more and more Hacks will start using Phrases, as it becomes relatively easy to distribute Hacks with Phrases for both the Developers and the Users.

Most Hacks are being written in English, but as they are being used in many Countries, there might be needs for Translations.

Although it's possible to just provide different Product XMLs for different Languages, it seems to be better to take advantage of vBulletins Language System.
This way, Hack authors can provide additional Language XMLs for their works, while maintaining just one Product XML, and still the User can select which language to use.
It also makes it easy for 3rd Parties to provide Translations.

Developers/Translators
The following instructions require Debug Mode being turned on.
To do so, place
PHP Code:
$config['Misc']['debug'] = true
in config.php

To create a Translation, create a new Language (if it's not already present) and translate your Hacks phrases from the MASTER Language.
When you're done, go to Languages & Phrases, Download / Upload Languages.

Select the Language that contains the translated Phrases, select your Product and make sure that Just fetch Phrases is set to Yes - then download the Language.

End Users
To install a Translation for your Hack, import the provided Language XML and overwrite your existing Language (eg. if the Translation is for French overwrite your French langauge, if it is for Italian overwrite your Italian language, etc.).
This will of course not harm any Language Options or other Phrases.

This How-To is (C) 2005 by KirbyDE and you are not allowed to redistribute it in any way without my explicit consent.
Reply With Quote
  #2  
Old 07-27-2005, 05:37 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep thanks KirbyDE
Reply With Quote
  #3  
Old 07-28-2005, 11:15 AM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
 
Join Date: Aug 2004
Location: Paris (France)
Posts: 448
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot KirbyDE. That's going to help me.
Reply With Quote
  #4  
Old 02-09-2006, 11:53 AM
D.Ilyin D.Ilyin is offline
 
Join Date: Oct 2005
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice HOW-TO! Thank's Andreas!
Can i add something for advanced users?

HOW-TO for advanced users:
1. Open new hack what you like to install & find
Code:
<phrases>
2. If you didn't find it that mean that hack don't have any new phrases to translate .
3. If you find some code between those TAG's then, create new file in any text editor with name somehack-language.xml.
4. Paste this code in it:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

<language name="Russian (RU)" vbversion="3.5.3" product="name_of_translated_hack_here_as_is_in_hack" type="phrases">

</language>
and save.
NOTE: where
"Russian (RU)" - your language
"3.5.3" - your translate for version of vB
5. Copy all code in your hack between TAG's
Code:
<phrases>
........
</phrases>
exlude them (see 1 for details ), and paste it before
Code:
</language>
6. Traslate all foring languages phrases ONLY between those TAG's:
Code:
<phrase name="phrase_name_desc"><![CDATA[XXXXXXXXXXXXXXXXXXX]]></phrase>
where XXXXXXXXXXXXXXXXXXX - YOURS translated text.
7. After transleting SAVE your somehack-language.xml.
8. For installing your translated hack go to: AdminCP - Languages & Phrases - Languages & Phrases. Chose location for Import Language XML File where from you like to install translated hack. In Overwrite Language chose language what have been translated and click import.

That's all folk's .
Tha last point (i mean 8) also needed for install translat for hack to another forum's .

Thank's for attantion.
Reply With Quote
Reply


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 08:54 AM.


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.04012 seconds
  • Memory Usage 2,228KB
  • Queries Executed 17 (?)
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
  • (5)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (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