The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#2
|
|||
|
|||
cool
i would think in the database. Have a table for words bit like: Id Name English French German sort of thing. then in the templates have a system like %open_thread% or something like that (seperating actual template inclusion to these word inclusion). Something like that? the name field is extra so it is easier to know what it is going to be replaced by but you could just do it witn the ID number instead. Would be very useful i have to say. |
#3
|
|||
|
|||
I disagree about putting the language variables in database.
A better way I think would be to put the variables in an include file. Similar to the way other systems do it. You would have english.php, german.php, russian.php etc. When someone visits the forum, the system should read their user record then include the appropriate file. I think there is a way in version 2 where the user record will be global to the session so this would not add any queries to the database. As we all know on large systems, MySQL is the weak link in vBulletin so the fewer queries the better. Next if you are going to translate posts and use a system like babelfish, then the beginning languages available should match the ones it handles. The problem with translating posts is you will need to allow the user to select what language they are going to post in so you know how to translate them. Last question I have, is how are you going to support backwards compatibility? Default all posts to a default language? Base it off the poster's selected language? Both have problems... In this forum there are posts in German and English. Default language is set to English. How will it translate German to French while thinking it is English? Or we have people who have posted in both english and german and they choose German as their native language. And you have the same problem as described above. |
#4
|
|||
|
|||
listead the wluke about the storing, he knows a lot more than i do. The reason i thought database is it is easier (i would think) to change and update and add new fields in that was why, and i thought if all the contents were pulled for the page it would just be one more query but he knows more about these things!
The auto translation is a problem, i played around with this with bable fish and found the results to be so bad it is not worth the effort. The problem is in forums people are generally reasonably "slangy" because they are talking to each other rather that writing more formal webpages (i am sure some forums are different this is just what i have noticed). Of course, bablefish can't do slang, shortened words etc. I know it is a slightly unfair test but translate a page of text from english to french and back again, ekk... i got some of my french members to write some french to translate (ie how they would write on forums in french) and well i could hardly make sense of it. I just hope improvement comes in these translation tools but i wonder how much they really can improve? On the whole what language is it in, i would do something like this: Fields needed in profile 1) Default language (ie the viewing pit) 2) Other languages you can speak (multiple box). now, the board translates everything into 1. now if someone who has languages select in part 2 of the profile, goes to post, then a checkbox is also there saying "Is this post in French, German etc" (which one for each language they speak". does that make sense? Then, if auto-translation is installed, someone with default language 1, comes to a post that is marked "french" (because the person who posted it said it was in french) and it translates it to default language, (with a message to say this it has done this and a link to see the message how it was originally). i think the only way to do this is really get the members to click to say that the post is in whatever non-default language it is in. Profile can have extra fields to say "have in french checkbox default ticked" for example. |
#5
|
|||
|
|||
Well, thanks for sharing your ideas. Post translation is supposed to be done in a future. I don't have appropriate skills yet to make it in the current release but i'd appreciate any help in PHP coding and in creating this hack.
Quote:
Anyway, i've put all variables, created some PHP files containing variables and translations and with my three beta testers (me, me and me ) i was able to simulate same vB with three different languages (English, Czech, -some-sorta-Klingon- ) running at the same time. I'll take a closer look over MySQL and server performance. Real pain is how to translate forum names and their descriptions? I have to confess i forgot about posts containing German, English, etc. words. Without good and stable translator we won't be able to correctly translate posts. Many boards may run special forum for *foreign* community, ie. English speaking visitors on the German board so translate posts is a strawberry on a cake but i don't give up this idea. As soon as i finish text replacement for variables and make final tests, i can release the hack as beta (three days, tho). Another question: how to translate hacks if new is realeased? Do it by hand? It may take much time. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|