cordoprod Posted August 7, 2007 Share Posted August 7, 2007 Hello. I am developing a script called G-guest. I want to have multi language, and can only speak english and norwegian. I need help with translating the script, I think it's just gonna take you a few minutes. Not a very big script. What languages i want: Actually all kind of, just some I would like more. Here is the MOST WANTED list: - Italian - Spanish - French - German - Dutch - Danish - Swedish - Finnish - Turkish I am using the define(); function to have multi languages. Here is what I want translated: -------------------------------------------------------------------------------------------------- <?PHP // innlegg // entries define("WRITE", "Leave a message"); define("POSTEDBY", "Written by"); define("EDIT", "Edit entry!"); define("DELETE", "Delete entry!"); define("COMMENT", "Comment"); // form // form define("NAME", "Name"); define("MAIL", "Email"); define("WWW", "Website"); define("MESSAGE", "Message"); // form respons // form feedback define("BACK", "<a href=\"javascript:history.back(-1)\">Go back</a>"); define("SHOW", "<a href=\"$PHP_SELF?action=\">Show!</a>"); define("E_NAME", "Name can not be blank!"); define("E_MESSAGE", "Message can not be blank!"); define("FLOOD", "Flooder! You'll have to wait to the next hour to post a new entry!"); define("POSTED", "Entry posted!"); // neste & forrige // next & previous define("NEXT", "Next »"); define("NO_ENTRIES", "No entries in the guestbook!"); define("PREV", "« Previous"); // admin // admin define("USERNAME", "Username"); define("PASSWORD", "Password"); define("W_PASS", "Wrong username or password!"); define("W_ID", "Entry does not exists!"); define("EDITED", "Entry has been edited!"); define("S_DELETE", "Are you sure you want to delete this entry?"); define("L_OUT", "You are now logged out!"); define("LO_I", "<a href=\"$PHP_SELF?action=login\">Login</a>"); define("LO_B", "<a href=\"$PHP_SELF?action=logout\">Logout</a>"); ?> -------------------------------------------------------------------------------------------------- Way to translate: As you can see, I use the define function. But, don't translate the UPPER letters, just the letters after the second " sign. e.g: define("NAME", "Name"); Just translate "Name". OK? Hope you understand and REMEMBER I accept ANY language! I appreciate it very much if you help me. Thanks Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted August 7, 2007 Share Posted August 7, 2007 http://www.freetranslation.com/ Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted August 7, 2007 Share Posted August 7, 2007 Danish: <?PHP // innlegg // entries define("WRITE", "Skriv en besked"); define("POSTEDBY", "Skrevet af"); define("EDIT", "Rediger besked!"); define("DELETE", "Slet besked!"); define("COMMENT", "Kommentar"); // form // form define("NAME", "Navn"); define("MAIL", "Email"); define("WWW", "Hjemmeside"); define("MESSAGE", "Besked"); // form respons // form feedback define("BACK", "<a href=\"javascript:history.back(-1)\">Gå tilbage[/url]"); define("SHOW", "<a href=\"$PHP_SELF?action=\">Vis![/url]"); define("E_NAME", "Navnet kan ikke være blankt!"); define("E_MESSAGE", "Beskeden kan ikke være blank!"); define("FLOOD", "Spammer! Du skal til at vente en time før du kan skrive en ny besked!"); define("POSTED", "Besked tilføjet!"); // neste & forrige // next & previous define("NEXT", "Næste »"); define("NO_ENTRIES", "Ingen beskeder i gæstebogen!"); define("PREV", "« Forrige"); // admin // admin define("USERNAME", "Brugernavn"); define("PASSWORD", "Adgangskode"); define("W_PASS", "Forkert brugernavn eller adgangskode!"); define("W_ID", "Beskeden findes ikke!"); define("EDITED", "Beskeden er blevet ændret!"); define("S_DELETE", "Er du sikker på at du vil slette denne besked?"); define("L_OUT", "Du er blevet logget af!"); define("LO_I", "<a href=\"$PHP_SELF?action=login\">Log ind[/url]"); define("LO_B", "<a href=\"$PHP_SELF?action=logout\">Log af[/url]"); ?> Quote Link to comment Share on other sites More sharing options...
cordoprod Posted August 7, 2007 Author Share Posted August 7, 2007 The Little Guy: I've tried to use that, but the grammar ends up wrong. Daniel0: Thank you for the help. I'll put your name in the script if you'd like. Quote Link to comment Share on other sites More sharing options...
448191 Posted August 7, 2007 Share Posted August 7, 2007 I REALLY oppose using native php as a storage medium, but... since it was very little trouble: (Dutch) <?php // innlegg // entries define("WRITE", "Laat een bericht achter"); define("POSTEDBY", "Geschreven door"); define("EDIT", "Bewerk bericht!"); define("DELETE", "Verwijder bericht!"); define("COMMENT", "Commentaar"); // form // form define("NAME", "Naam"); define("MAIL", "Email"); define("WWW", "Website"); define("MESSAGE", "Bericht"); // form respons // form feedback define("BACK", "<a href=\"javascript:history.back(-1)\">Ga terug[/url]"); define("SHOW", "<a href=\"$PHP_SELF?action=\">Toon![/url]"); define("E_NAME", "Naam is verplicht!"); define("E_MESSAGE", "Bericht is verplicht!"); define("FLOOD", "Je zal nu een een uur moeten wachten tot je weer en bericht kan plaatsen."); define("POSTED", "Bericht geplaatst!"); // neste & forrige // next & previous define("NEXT", "Volgende »"); define("NO_ENTRIES", "Geen berichten in het gastenboek!"); define("PREV", "« Vorige"); // admin // admin define("USERNAME", "Gebruikersnaam"); define("PASSWORD", "Wachtwoord"); define("W_PASS", "Fout in gebruikersnaam en/of wachtwoord!"); define("W_ID", "Bericht bestaat niet!"); define("EDITED", "Bericht is gewijzigd!"); define("S_DELETE", "Weet je zeker dat je dit bericht wil verwijderen?"); define("L_OUT", "Je bent nu uitgelogd!"); define("LO_I", "<a href=\"$PHP_SELF?action=login\">Log in[/url]"); define("LO_B", "<a href=\"$PHP_SELF?action=logout\">Log uit[/url]"); ?> Quote Link to comment Share on other sites More sharing options...
cordoprod Posted August 7, 2007 Author Share Posted August 7, 2007 Thank you very much Quote Link to comment Share on other sites More sharing options...
cordoprod Posted August 7, 2007 Author Share Posted August 7, 2007 What's native php? Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted August 7, 2007 Share Posted August 7, 2007 Daniel0: Thank you for the help. I'll put your name in the script if you'd like. Do whatever you feel like... I could, with a little help from my dictionary, probably translate your file into German as well, but there is a chance that I might make grammatical errors. If you wish I could give it a shot, but there must be somebody here who speak German natively. What's native php? I think he means storing the language strings inside PHP as opposed to for example storing them in an XML file. Quote Link to comment Share on other sites More sharing options...
cordoprod Posted August 7, 2007 Author Share Posted August 7, 2007 Give it a shot It doesn't matter if you make mistakes.. Thanks for the help. Quote Link to comment Share on other sites More sharing options...
448191 Posted August 7, 2007 Share Posted August 7, 2007 I think he means storing the language strings inside PHP as opposed to for example storing them in an XML file. Pretty much. Any storage method will do. Php is NOT a means to store data. Quote Link to comment Share on other sites More sharing options...
cordoprod Posted August 8, 2007 Author Share Posted August 8, 2007 Oh, come on, help me! I've only got norwegian,danish,dutch,english! Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted August 8, 2007 Share Posted August 8, 2007 With that attitude, i dont suppose people will be inclined to help you with it. However, ill give the french a shot if i get time at some point - should probably not go all summer without doing any french Quote Link to comment Share on other sites More sharing options...
cordoprod Posted August 8, 2007 Author Share Posted August 8, 2007 Sorry. I would love to get it in french! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.