|
Multiple language: language edit
|
|
01-03-2009, 12:29 PM
Post: #1
|
|||
|
|||
|
Multiple language: language edit
Hello
I want some help for my multiple language plugin, it's the part where the users should make there own language: I have an array with in it: -number (for the $original[x] ) -english text Now I want to show a form that displays all the english text and a textbox to make the translation (in a table). But how should I do this? Alfaleader |
|||
|
01-05-2009, 01:15 PM
Post: #2
|
|||
|
|||
|
RE: Multiple language: language edit
babelfish makes a button that translates a page.
babelfish.yahoo.com Nick - TheHostingTool Staff Coordinator ![]() |
|||
|
01-05-2009, 02:41 PM
Post: #3
|
|||
|
|||
|
RE: Multiple language: language edit
Babelfish gives bad site translations (it's for word to word translations), this plugin takes care of good translations.
|
|||
|
01-05-2009, 03:47 PM
(This post was last modified: 01-05-2009 04:11 PM by alfaleader.)
Post: #4
|
|||
|
|||
|
RE: Multiple language: language edit
Ok, I decided not to use the .tpl files. But now I need help for another thing:
PHP Code: <?php(Just took it from settings.php) The part i don't understand that good: PHP Code: if(!$n) {PHP Code: switch($main->getvar['sub']) {And why is the default: thing for? (the default display is the description, why this default?) PHP Code: case "edit":Thanks! |
|||
|
01-05-2009, 04:55 PM
Post: #5
|
|||
|
|||
|
RE: Multiple language: language edit
Just thing $main->getvar as $_GET and $main->postvar as $_POST. Just they're SQL Cleaned.
I wouldn't use settings.php as an example, look at something like servers. Jonny H - THT Main Developer & Founder |
|||
|
01-07-2009, 02:48 PM
Post: #6
|
|||
|
|||
|
RE: Multiple language: language edit
Let me explain that !$n part
PHP Code: if(!$n) { # Searches for $n, I don't know what it is but anywayJimmie Lin - Community Manager & THT.Next Developer |
|||
|
01-07-2009, 02:59 PM
(This post was last modified: 01-07-2009 04:00 PM by alfaleader.)
Post: #7
|
|||
|
|||
|
RE: Multiple language: language edit
I understand now mostly everything,
(except the $n variable , and jimmie also doesn't know why it's for, but I'll use it without knowing why it's for )Now I have this: /admin/language.php PHP Code: <?phpPHP Code: <ERRORS>The problem is that it won't update the language to the database if I choose another language. What's my mistake? |
|||
|
01-07-2009, 03:51 PM
Post: #8
|
|||
|
|||
|
RE: Multiple language: language edit
The $n is defined in the previous foreach look that cycles through all the posts and check if all the fields are filled. If not n will be defined and the amount of boxes not filled will be $n.
Jonny H - THT Main Developer & Founder |
|||
|
01-10-2009, 02:06 PM
(This post was last modified: 01-10-2009 03:00 PM by alfaleader.)
Post: #9
|
|||
|
|||
|
RE: Multiple language: language edit
Thanks, now I almost finished the edit language and I have to do the new language.
|
|||
|
02-08-2009, 08:46 AM
Post: #10
|
|||
|
|||
|
RE: Multiple language: language edit
Do you have any updates on this?
Jimmie Lin - Community Manager & THT.Next Developer |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)





![[Image: standard.png]](http://twitstamp.com/thehostingtool/standard.png)

, and jimmie also doesn't know why it's for, but I'll use it without knowing why it's for