![]() |
|
#1
|
|||
|
|||
|
Translate Module Titles v.09 beta
I would need beta tester with boards with more than 1 language installed. Please report any bugs here.. ( Except for the known drawback - read bottom of post ) File Edits: 2 (small ones) Product: 1 (attached) What the hack does: allows you to add translations for module titles... like in vbulletin for extra fields Limitations: Some modules are not really compatible.. like the Buddy-List module (because it is processed twice.. once for online users - that works but for the second pass - buddy-list - the module has been processed allready. so it keeps the original title.. at the bottom i added a little hack to make buddy list work also.. I only tested with vbulletin 3.8 Gold and CMPS version 3.1 Uninstall: undo the 2 file edits and uninstall the product.. (you can then delete the phrases in phrasegroup cmps Portal that start with cmps_block_ Allthough it is non invasive, so if you dont use it will not eat any bread. Ah yes almost forgot.. when you delete a block, it deletes the created phrases automatically. Screenshots see below ------------ Install: At first there are 2 file edits first open forums/includes/vba_cmps_include_top.php find: PHP Code:
PHP Code:
save and close file.. then open forums/admincp/vba_cmps_admin.php find: PHP Code:
PHP Code:
Now import the product. Thats all... now go to acp -->vBa CMPS -->Edit Modules open a module.. save it and open it again.. you now use the translate link .. ATTENTION!!!!: if you now go to acp and click the "Translate" link you will get a "No Phrases Matched Your Query" error.. That is NORMAL!!! because the phrase has not been created yet! So if you want to translate an existing module title you HAVE to do the following:
--------------------------------------------- F.A.Q.: Why cant the phrase be created simply when adding a module? Answer: Because of the hook location! The new modid of a new module is only created 2 lines after the hook, and there is no other hook around. It could be done easely, but would require an aditional file edit, which nobody wants. --------------------------------------------- As I said before I only tested it with the standard modules and with vbgallery module.. they work fine except for Buddy-List. To make "Buddy-List" work.. you have to do the following: open forums/modules/onlineusers.php find: PHP Code:
PHP Code:
--------------------------------------------- Feedback would be appreciated Luc Last edited by Luciano; 01-26-2009 at 02:20 AM. Reason: Added new screenshot |
|
#2
|
|||
|
|||
|
Thank you a lot!
I have a multilanguage site (5 languages) and it works perfectly!
|
|
#3
|
|||
|
|||
|
Good to hear...
Luc |
|
#4
|
||||
|
||||
|
Luciano, nice work!
|
|
#5
|
|||
|
|||
|
How come it's not working for me.
After I've done the installation. The Vba CMPS control panel can not be loaded. |
|
#6
|
|||
|
|||
|
Works on 4.0.0 RC1 thanks
![]() Is it possible to translate page titles as well? |
|
#7
|
|||
|
|||
|
Works on vBa 4.1.2
Question up ![]() How to translate page titles? |
|
#8
|
|||
|
|||
|
Translate Module and Page Titles v.091 beta
I have slightly expanded the product from Luciano, made by analogy. What the hack does: allows you to add translations for module and page titles... like in vbulletin for extra fields Limitations: Some modules are not really compatible.. like the Buddy-List module (because it is processed twice.. once for online users - that works but for the second pass - buddy-list - the module has been processed allready. so it keeps the original title.. at the bottom i added a little hack to make buddy list work also.. Below I will try to give an example of how to fix it. About page title translations: I was able to translate all custom pages are added by the user, except for Default / Home page. Where it works: I only tested with vBulletin 4.1.11 and CMPS version 4.1.2 Two language installed: Russian(default) and English. Uninstall: Undo the 2 file edits and uninstall the product.. (you can then delete the phrases in phrasegroup cmps Portal that start with cmps_block_, cmps_page_). When you delete a module or custom page, it deletes the created phrases automatically. Screenshots: ![]() ![]() Install: At first there are 2 file edits First open forums/includes/vba_cmps_include_top.php (don't forget to make backup file) Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Save and close file. Then open forums/admincp/vba_cmps_admin.php (don't forget to make backup file) Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
ATTENTION!!!!: If you now go to acp and click the "Translate" link you will get a "No Phrases Matched Your Query" error.. That is NORMAL!!! Because the phrase has not been created yet! So if you want to translate an existing module or page title you HAVE to do the following:
--------------------------------------------- F.A.Q.: Why cant the phrase be created simply when adding a module? Answer: Because of the hook location! The new modid of a new module is only created 2 lines after the hook, and there is no other hook around. It could be done easely, but would require an aditional file edit, which nobody wants. --------------------------------------------- Now we'll translate some modules as I said before. Two modules for example: 1. "Buddy-List" module Open forums/modules/onlineusers.php (don't forget to make backup file) Find: PHP Code:
PHP Code:
2. "Navigation" module Open forums/modules/navigation.php (don't forget to make backup file) Find: PHP Code:
PHP Code:
![]() I would be glad of any help. Especially how to translate in Navbar the "Default / Home page" tab?
Last edited by Selya; 04-02-2012 at 03:07 AM. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Beta testers for multilanguage block titles? | Luciano | Module & Modification Discussion & Requests | 0 | 01-25-2009 07:04 AM |
| google translate module | deathemperor | Module & Modification Discussion & Requests | 0 | 10-28-2007 07:43 PM |
| I want to translate every vba module, how? | AVPFAN | "How Do I..." Questions | 2 | 07-23-2007 09:46 AM |
| How you can translate module title to your language | Alderwazeh | "How Do I..." Questions | 0 | 05-08-2007 02:34 AM |
| Translate Your Pages Via Google module? | oldfan | Module & Modification Discussion & Requests | 0 | 02-15-2007 12:40 PM |