Jump to content

Translating help, in a guestbook script.


cordoprod

Recommended Posts

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  ;)

Link to comment
Share on other sites

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]");
?>

Link to comment
Share on other sites

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]");
?>

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.