var setting = new Array(); setting.siteRootUrl = "http://www.chinakontor.de/webkatalog"; setting.siteDescriptionMaxLength = 1000; setting.siteDescriptionMinLength = 100; setting.maxKeywordsCountPerSite = 5; setting.itemGalleryImagesMaxCount = 3; setting.metaDataUrl = "/webkatalog/webmaster/getMetaData"; setting.urlMandatory = 1; setting.backLinkMandatory = 0; setting.urlRewriting = 1; setting.lang = new Array(); setting.lang['You have already added this keyword. Select another one.'] = "Sie haben dieses Schlagwort schon gewählt. Wählen Sie ein anderes aus."; setting.lang['loading...'] = "Laden ..."; setting.lang['Please, fill in the fields URL of site, Title and Description.'] = "Bitte das Feld URL der Webseite, den Titel und die Beschreibung ausfüllen."; setting.lang['The URL must start with http://'] = "URL muß mit http:// anfangen"; setting.lang['Please, enter a valid e-mail address.'] = "Geben Sie bitte eine gültige E-Mail-Adresse an"; setting.lang['You modify the webmaster of this site. Do you want the fields Webmaster Email and Webmaster Name to be refreshed, or you want to modify them manually?'] = "Durch die Änderung des Webmasters der Webseite wird die Mail ebenfalls geändert"; setting.lang['The comment was saved.'] = "Kommentar gespeichert"; setting.lang['The comment was deleted.'] = "Kommentar gelöscht"; setting.lang['The IP was banned.'] = "IP verboten"; setting.lang['Please, select a package.'] = "Bitte ein Angebot auswählen"; setting.lang['Please, select a payment processor.'] = "Bitte ein Zahlungsmittel auswählen"; setting.lang['Please, enter a name or nickname.'] = "Geben Sie Ihren Namen ein"; setting.lang['Please, enter a comment.'] = "Please, enter a comment."; setting.lang['Please, enter the protection code.'] = "Bitte den Sicherheitscode eintippen"; setting.lang['The tag was saved.'] = "Tag gespeichert"; setting.lang['You can`t select this payment method for selected package.'] = "Sie können dieses Zahlungsmittel für dieses Angebot nicht auswählen"; setting.lang["Delete"] = "Löschen"; setting.lang["Edit"] = "Bearbeiten"; setting.lang["File"] = "Datei"; setting.lang["was uploaded sucessfully"] = "wurde erfolgreich hochgeladen"; setting.lang["of"] = "von"; setting.lang["available photos uploaded"] = "verfügbaren Bildern"; setting.lang["Loading"] = "Laden"; setting.lang["Loading..."] = "Laden..."; setting.lang["Your email must be in format - name@domain.com"] = "Ihre E-Mail muss folgendes Format haben: a@a.com"; setting.lang["Email was used earlier"] = "E-Mail bereits verwendet"; setting.lang["Please enter password"] = "Bitte geben Sie Ihr Kennwort ein"; setting.lang["Please confirm your password"] = "Bitte Ihr Kennwort bestätigen"; setting.lang["Please enter captcha code"] = "Bitte den Sicherheitscode eintippen"; setting.lang["Passwords aren't equal"] = "Nicht identisches Kennwort"; setting.lang["This field is required"] = "Dieses Feld ist obligatorisch"; setting.lang["Please enter your email"] = "Bitte geben Sie Ihre E-Mail an"; setting.lang["Validation message"] = "Mitteilung"; setting.lang["Your message was saved"] = "Ihre Nachricht wurde übermittelt."; setting.lang["Your message was sent"] = "Ihre Nachricht wurde versandt"; setting.lang["New file has been uploaded sucessfully"] = "Bild erfogreich hochgeladen"; setting.lang["Uploading..."] = "Hochladen..."; setting.lang["You have entered an invalid code"] = "javascript_config_you_have_entered_an_invalid_code"; function _t($phrase) { return setting.lang[$phrase] || $phrase; } var AppRouter = { rewrites: new Array(), addRewriteRule: function(pattern, replacement) { AppRouter.rewrites.push({"pattern": new RegExp(pattern), replacement: replacement}); }, getRewrittedUrl: function(url) { var rewrittedUrl = setting.siteRootUrl; if(!setting.urlRewriting)rewrittedUrl += "/index.php"; for(var i = 0; i < AppRouter.rewrites.length; i++) { var rewrite = AppRouter.rewrites[i]; url = url.replace(rewrite.pattern, rewrite.replacement); } rewrittedUrl += url; return rewrittedUrl; } }