I forumisti meno distratti avranno certamente notato che da POL stanno scomparendo tutti i messaggi in inglese, sostituiti progressivamente dalla loro traduzione italiana.
Per chi pensasse che questa sia una cosa semplice, ecco qua quello che si deve fare (per quel poco che ne so io) per riuscire a fare la traduzione.
Intanto tutti i messaggi presentati sulle pagine del forum sono accatastati in un unico documento, mescolati a codici html e jscript in quantità notevole, diciamo come l'intera Divina Commedia tanto per capirci.
Lì dentro bisogna intervenire con una notevole attenzione per non fare casini e sostituire le frasi inglesi con quelle italiane.
Per esempio, la parte in cui si trova maschera con cui si scrivono i post, in originale è più o meno come quella sotto riportata, e per tradurla in italiano uno deve:
1) trovare le frasi in inglese e sostituirle con la traduzione italiana,
2) verificare l'impaginazione con le nuove frasi tradotte, ed eventalmente modificare i codici relativi
3) stare attento a non cavare i codici html che poi si incasina tutto
4) probabilmente qualcos'altro che io non mi immagino nemmeno
...
<html>
<head><title>$bbtitle - Reply to Topic</title>
$headinclude
<!--<script type="text/javascript" language="javascript" src="$bburl/spellcheck/spch.js"></script>-->
<script language="javascript">
<!--
var postmaxchars = $postmaxchars;
function validate(theform) {
if (theform.message.value=="") {
alert("Please complete the message field.");
return false; }
if (postmaxchars != 0) {
if (theform.message.value.length > $postmaxchars) {
alert("Your message is too long.\n\nReduce your message to $postmaxchars characters.\nIt is currently "+theform.message.value.length+" characters long.");
return false; }
else { return true; }
} else { return true; }
}
function checklength(theform) {
if (postmaxchars != 0) { message = "\nThe maximum permitted length is $postmaxchars characters."; }
else { message = ""; }
alert("Your message is "+theform.message.value.length+" characters long."+message);
}
//-->
</script>
</head>
<body>
$header
<!-- breadcrumb -->
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td width="100%">$navbar</td>
</tr>
</table>
<!-- /breadcrumb -->
$postpreview
<br>
<form $enctype action="newreply.php" name="vbform" method="post" onSubmit="return validate(this)">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="action" value="postreply">
<input type="hidden" name="threadid" value="$threadid">
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#555576" width="100%" align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<tr>
<td bgcolor="#CC3333" colspan="2"><normalfont color="#EEEEFF" class="thtcolor"><b>Post Reply</b></normalfont></td>
</tr>
$logincode
<tr>
<td bgcolor="#0000CC"><normalfont><b>Post subject:</b></normalfont></td>
<td bgcolor="#0000CC"><normalfont><input type="text" class="bginput" name="title" value="$title" size="40" maxlength="85" tabindex="1"></normalfont> <smallfont>(Optional)</smallfont></td>
</tr>
$posticons
$vbcode_buttons
<tr>
<td bgcolor="#0000CC" valign="top" nowrap><normalfont><b>Your Reply:</b></normalfont>
<p><smallfont>
See Forum Rules (below) for<br>
more information about what<br>
codes you are allowed to use<br>
in your posts.</smallfont></p>
$vbcode_smilies</td>
<td bgcolor="#0000CC">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td><textarea name="message" rows="20" cols="$textareacols" wrap="virtual" tabindex="2">$message</textarea><br>
<smallfont><a href="javascript:checklength(document.vbform);">[check message length]</a></smallfont></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#000099" valign="top"><normalfont><b>Options:</b></normalfont></td>
<td bgcolor="#000099" valign="top"><smallfont>
<input type="checkbox" name="parseurl" value="yes" $parseurlchecked> <b>Automatically parse URLs:</b> automatically adds and around internet addresses.
<br><input type="checkbox" name="email" value="yes" $emailchecked> <b>Email Notification:</b> emails sent to you whenever someone replies. Only registered users are eligible.
$disablesmiliesoption
<br><input type="checkbox" name="signature" value="yes" $signaturechecked> <b>Show Signature:</b> include your profile signature. Only registered users may have signatures.
</smallfont></td>
</tr>
$attachmentoption
$threadratingoption
</table>
</td></tr></table>
<br>
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td align="center"><normalfont>
<input type="submit" class="bginput" name="submit" value="Submit Reply" accesskey="s" tabindex="3">
<input type="submit" class="bginput" name="preview" value="Preview Reply" accesskey="p" tabindex="4">
<!--<input type="button" class="bginput" value="Spell Check" onclick="var f=document.forms['vbform']; doSpell( '$spellchecklang', f.message, '$bburl/spellcheck/sproxy.php', true);" tabindex="5">-->
</normalfont></td>
</tr>
</table>
</form>
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td><smallfont><b>Forum Rules:</b><br>$forumrules</smallfont></td>
</tr>
</table>
<br>
<!-- end main table from header -->
</td>
</tr>
</table>
<!-- /end main table from header -->
<!-- spacer -->
<table cellpadding="0" cellspacing="0" border="0" width="760" bgcolor="#0000CC"><tr>
<td><img src="images/clear.gif" alt="" width="10" height="1"></td><td width="100%">
<!-- /spacer -->
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#555576" width="100%" align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<tr>
<td bgcolor="#CC3333" colspan="2" align="center"><normalfont color="#EEEEFF"><b>Topic Review (Newest First)</b></normalfont></td>
</tr>
</table>
</td></tr></table>
<!-- spacer -->
</td><td><img src="images/clear.gif" alt="" width="10" height="1"></td></tr></table>
<!-- /spacer -->
$threadreviewbits
<!-- restart main table -->
<table bgcolor="#0000CC" width="760" cellpadding="10" cellspacing="0" border="0">
<tr>
<td>
$footer
</body>
</html>|||error_resetexpired|||The request to reset your password was made more than 24 hours ago, so it has expired. To resubmit the request, please use <a href="member.php?s=$session[sessionhash]&action=lostpw">this form</a>.|||showgroups_forumbit|||<a href="forumdisplay.php?s=$session[sessionhash]&forumid=$user[forumid]">$user[forumtitle]</a>|||error_pmnotchecked|||If you really want to delete this message, please check the confirmation box. To do this, press the back button, check the box, and then click the delete button again.|||error_pmnoselected|||You have not selected any messages. Please go back, select some messages and try again.|||redirect_markreadforum|||All threads in that forum have been marked as read. You will now be returned to where you were.|||showthread_ratingdisplay|||<td align="right" valign="bottom"><img src="images/$thread[rating]stars.gif" alt="Thread Rating: $thread[votenum] votes, $thread[voteavg] average."></td>|||whoposted|||<html>
<head>
<title>$bbtitle Who Posted?</title>
$headinclude
<script language="Javascript">self.focus();</script>
</head>
<body>
<table cellpadding="10" cellspacing="0" border="0" bgcolor="#0000CC" width="100%"><tr><td>
<table cellpadding="4" cellspacing="1" border="0" bgcolor="#555576" width="100%">
<tr>
<td colspan="2" bgcolor="#FFFFFF"><normalfont color="#FFF788"><b>Total Posts: $totalposts</b></normalfont></td>
</tr>
<tr>
<td bgcolor="#CC3333" width="100%"><smallfont color="#EEEEFF">User</smallfont></td>
...




Rispondi Citando

forse ti riferivi a quello?
