MediaWiki:Skin/translate.js

/* * Nur zum Testen *

if (window.jQuery == null) {   var s = document.createElement("SCRIPT"); s.type = "text/javascript"; s.src = "/skins/common/jquery.js"; document.body.appendChild(s); }

/* * Dieser Block muss in das jeweilige seitenspezifische Javascript! *

var translateMenu = { // --- Menü links ---

"#p-Navigation": "Compass", // Für Monobook "#n-Hauptseite": "Main Page", "#n-Aktuelle-Erregnisse": "Things that happened", "#n-Wegweiser": "Way wise man", "#n-Zuf\\.C3\\.A4lliger-Artikel": "Random article", "#n-Kamelionary": "Kameliothingy", "#n-help": "Help (I need somebody)", "#p-Mitmachen": "Participate", "#n-Letzte-\\.C3\\.84nderungen": "Yes we can!", "#n-Herden-Portal": "Cooker's Door", "#n-Forum": "Thing were you can write", "#n-Projekte": "Projects", "#n-Rettungsdienst": "Ambulance", "#n-GaGA-Wahl": "WhGA election", "#p-tb": "Toolbox", "#t-whatlinkshere": "Links hereher", "#t-recentchangeslinked": "Changes to verlinked leaves", "#t-upload": "High loading", "#t-specialpages": "Special Leaves", "#t-print": "Pressure version", "#t-permalink": "Permanent Thingy", "#t-rating": "Leave bevalueing", "#p-lang": "Other Kiwis", ".interwiki-test": "Testingthingy", ".interwiki-kamry": "Kameliothingy", ".interwiki-stupi": "Stupidthingy", ".interwiki-uncy": "Uncythingy (de)", ".interwiki-uncy-en": "Uncythingy (en)", ".interwiki-wiki": "THEM (de)", ".interwiki-wiki-en": "THEM (en)", ".interwiki-wikt": "Wikingthing",

// --- oben --- "#pt-userpage": "*?*", "#pt-mytalk": "My Camelleave", "#pt-preferences": "Onpositions", "#pt-watchlist": "Becarelist", "#pt-mycontris": "Own nearcarries", "#pt-logout": "Offreport"

}

/* * Dieser Block muss in das jeweilige seitenspezifische Javascript! *

var translateTabs = { "#ca-nstab-main": "Leave", // Nur für Artikel, sonst heißt das anders "#ca-talk": "Speak", "#ca-view": "Look at", // Neu im Vector-Skin "#ca-edit": "Write", "#ca-history": "Geographics", "#ca-delete": "Dig", "#ca-move": "Deplace", "#ca-unprotect": "publish",

// Beobachten: Denk dran, auch wgAjaxWatch zu überschreiben!

"#ca-watch": "Becare", "#ca-unwatch": "Unbecare",

"#simpleSearch label": "Find" }

/* * Dieser Block muss in das jeweilige seitenspezifische Javascript! *

var translateFormElements = { "#searchGoButton": "Walk", "#mw-searchButton": "Find" };

/* * Dieser Block muss in das jeweilige seitenspezifische Javascript! *

var translateCategoryTitle = "Thingies"; var translateCategories = { "Kamelopedia": "Kamelothingy", "Schifffahrt": "Ship thingy" };

/* ausführen */ addOnloadHook( function {

/* Menü übersetzen */

if (window.translateMenu != null) for (var x in translateMenu) {		   jQuery(x).children("h5, a").text(translateMenu[x]); }

/* Tabs übersetzen */

if (window.translateTabs != null) for (var x in translateTabs) {			jQuery(x).find(":last").text(translateTabs[x]); }

/* Formular-Elemente übersetzen */

if (window.translateFormElements != null) for (var x in translateFormElements) {			jQuery(x).attr("value",translateFormElements[x]); }

/* Kategorien übersetzen */ if (window.translateCategoryTitle != null) jQuery("#mw-normal-catlinks").children("a").text(translateCategoryTitle);

if (window.translateCategories != null) for (var x in translateCategories) jQuery("#mw-normal-catlinks").find("span a").filter( function { return jQuery(this).text == x; } ).text(translateCategories[x]);

});

/* TODO: - Datenschutz, Über Kamelopedia, Impressum - Abrufszähler, Änderungszähler, Lizenz