Nieuw lid |
|
Hallo, ik zit namelijk met een verveelde fout op mijn script. ik heb zowat alles gedaan en ik geraak er echt niet uit wat ik verkeerd doe. hopelijk vinde jullie mijn fout die ik aan het zoeken ben. ik post even kleine voorbeelde hieronder !!
Wat ik namelijk aan het maken ben is dat je meerdere talen op mijn site kunt kiezen maar ik krijg ze ni active het doet niks ze laden ook niks uit mijn file's
Ik betaal 15€ degene die mijn script kan laten werken, betaling via overschrijving of andere methoden zien we wel.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CTManager</title>
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="/css/index.css?12" type="text/css" charset="utf-8" />
<!--[if IE]><link rel="stylesheet" href="/css/index_ie.css?12" type="text/css" charset="utf-8" /><![endif]-->
<script src="/js/index.js?17" type="text/javascript" charset="utf-8"></script>
<script src="/js/md5.js?17" type="text/javascript" charset="utf-8"></script>
<script src="/js/script.js?17" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="header"><a href="/"><img src="/images/logo.png" style="margin-top: 4px;" /></a></div>
<div id="container">
<div id="nav">
<div id="path">CTM - Online Manager Game</div>
<div id="info"><b>{L_MEMBERS}:</b> 0 <b>{L_ONLINE}:</b> 0 </div>
</div>
<div id="footer_container">
<div id="footer">
<a href="/?p=about">{L_MENU_ABOUT}</a> |
<a href="http://signup.ct-manager.com/">{L_MENU_SIGNUP}</a> |
<a href="/?p=rules">{L_MENU_RULES}</a> |
<a href="/?p=support">{L_MENU_SUPPORT}</a> |
<a href="javascript: changeLanguage()" id="language_link">{L_CHANGE_LANGUAGE}</a><br />
Copyright © 2007-2008, <a href="http://www.ct-manager.com/" target="_blank"></a>
</div>
</div>
<div style="position: absolute; width: 180px; display: none; margin-top: 30px;" id="language_popup">
<table class="popup" cellpadding="0" cellspacing="0">
<tr>
<td class="head"><a href="javascript: closeLanguage()" style="float: right;"><img src="/images/popup_close.png" width="14" height="14" border="0" /></a> {L_LANGUAGE_CHOOSE_LANGUAGE} </td>
</tr>
<tr>
<td class="data"><table class="inline" cellpadding="0" cellspacing="0">
<tr><td width="50%"><a href="javascript: setLanguage('nl')">Dutch</a></td><td width="50%"><a href="javascript: setLanguage('en')"><S>English</S></a></td></tr>
<tr><td><a href="javascript: setLanguage('fr')"><S>French<S/></a></td><td><a href="javascript: setLanguage('de')"><S>German</S></a></td></tr>
<tr><td><a href="javascript: setLanguage('es')"><S>Spain<S/></a></td><td>
</table></td>
</tr>
</table>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CTManager</title> <link rel="icon" href="/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> <link rel="stylesheet" href="/css/index.css?12" type="text/css" charset="utf-8" /> <!--[if IE]><link rel="stylesheet" href="/css/index_ie.css?12" type="text/css" charset="utf-8" /><![endif]--> <script src="/js/index.js?17" type="text/javascript" charset="utf-8"></script> <script src="/js/md5.js?17" type="text/javascript" charset="utf-8"></script> <script src="/js/script.js?17" type="text/javascript" charset="utf-8"></script> </head> <body> <div id="header"><a href="/"><img src="/images/logo.png" style="margin-top: 4px;" /></a></div> <div id="container"> <div id="nav"> <div id="path">CTM - Online Manager Game</div> <div id="info"><b>{L_MEMBERS}:</b> 0 <b>{L_ONLINE}:</b> 0 </div> </div> <div id="footer_container"> <div id="footer"> <a href="/?p=about">{L_MENU_ABOUT}</a> | <a href="http://signup.ct-manager.com/">{L_MENU_SIGNUP}</a> | <a href="/?p=rules">{L_MENU_RULES}</a> | <a href="/?p=support">{L_MENU_SUPPORT}</a> | <a href="javascript: changeLanguage()" id="language_link">{L_CHANGE_LANGUAGE}</a><br /> Copyright © 2007-2008, <a href="http://www.ct-manager.com/" target="_blank"></a> </div> </div> <div style="position: absolute; width: 180px; display: none; margin-top: 30px;" id="language_popup"> <table class="popup" cellpadding="0" cellspacing="0"> <tr> <td class="head"><a href="javascript: closeLanguage()" style="float: right;"><img src="/images/popup_close.png" width="14" height="14" border="0" /></a> {L_LANGUAGE_CHOOSE_LANGUAGE} </td> </tr> <tr> <td class="data"><table class="inline" cellpadding="0" cellspacing="0"> <tr><td width="50%"><a href="javascript: setLanguage('nl')">Dutch</a></td><td width="50%"><a href="javascript: setLanguage('en')"><S>English</S></a></td></tr> <tr><td><a href="javascript: setLanguage('fr')"><S>French<S/></a></td><td><a href="javascript: setLanguage('de')"><S>German</S></a></td></tr> <tr><td><a href="javascript: setLanguage('es')"><S>Spain<S/></a></td><td> </table></td> </tr> </table> </div> </body> </html>
Dit is mijn script.js
function closeLanguage()
{
var oDiv = document.getElementById('language_popup');
if (oDiv != null)
oDiv.style.display = 'none';
}
function changeLanguage()
{
var oDiv = document.getElementById('language_popup');
var oLink = document.getElementById('language_link');
if (oDiv != null && oLink != null)
{
var oPos = getPos(oLink);
oDiv.style.display = 'none';
oDiv.style.left = (oPos.x) + 'px';
oDiv.style.top = (oPos.y - 170) + 'px';
oDiv.style.display = 'block';
}
}
function setLanguage(sId)
{
var oExpire = new Date();
oExpire.setTime(oExpire.getTime() + (14*24*60*60*1000));
document.cookie = "lang=" + sId + "; expires=" + oExpire.toGMTString() + "; path=/";
document.location.reload();
}
function closeLanguage() { var oDiv = document.getElementById('language_popup'); if (oDiv != null) oDiv.style.display = 'none'; } function changeLanguage() { var oDiv = document.getElementById('language_popup'); var oLink = document.getElementById('language_link'); if (oDiv != null && oLink != null) { var oPos = getPos(oLink); oDiv.style.display = 'none'; oDiv.style.left = (oPos.x) + 'px'; oDiv.style.top = (oPos.y - 170) + 'px'; oDiv.style.display = 'block'; } } function setLanguage(sId) { var oExpire = new Date(); oExpire.setTime(oExpire.getTime() + (14*24*60*60*1000)); document.cookie = "lang=" + sId + "; expires=" + oExpire.toGMTString() + "; path=/"; document.location.reload(); }
en mijn vertaling bestande, ik zal ook even een code late zien.
lang.nl.js
lang.en.js
lang.fr.js
///
var oLang = new Object();
// functions
function getLang(sKey)
{
return oLang[sKey];
}
// language keys
oLang['CHANGE_LANGUAGE'] = 'Verander taal';
oLang['MEMBERS'] = 'Leden';
oLang['MENU_ABOUT'] = 'Over CTM';
oLang['MENU_RULES'] = 'Regels';
oLang['MENU_SEARCH'] = 'Zoeken';
oLang['MENU_SIGNUP'] = 'Opgeven';
var oLang = new Object(); // functions function getLang(sKey) { return oLang[sKey]; } // language keys oLang['CHANGE_LANGUAGE'] = 'Verander taal'; oLang['MEMBERS'] = 'Leden'; oLang['MENU_ABOUT'] = 'Over CTM'; oLang['MENU_RULES'] = 'Regels'; oLang['MENU_SEARCH'] = 'Zoeken'; oLang['MENU_SIGNUP'] = 'Opgeven';
Nu zoals jullie zien gebruik ik {L_} op mijn index maar hij laad intotaal niks. hopelijk zien jullie mijn fout.
Groetjes, Opatje
|