MediaWiki:Skin/translate.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
J* (Diskussion | Beiträge) (auch Tabs übersetzen) |
J* (Diskussion | Beiträge) (Kategorien auch übersetzen) |
||
Zeile 84: | Zeile 84: | ||
"#ca-unwatch": "Unbecare" | "#ca-unwatch": "Unbecare" | ||
} | } | ||
+ | */ | ||
+ | |||
+ | /* | ||
+ | * Dieser Block muss in das jeweilige seitenspezifische Javascript! | ||
+ | * | ||
+ | |||
+ | var translateCategoryTitle = "Thingies"; | ||
+ | var translateCategories = { | ||
+ | "Kamelopedia": "Kamelothingy", | ||
+ | "Schifffahrt": "Ship thingy" | ||
+ | }; | ||
*/ | */ | ||
/* ausführen */ | /* ausführen */ | ||
− | for (x in translateMenu) | + | for (var x in translateMenu) |
{ | { | ||
jQuery(x).children("h5, a").text(translateMenu[x]) | jQuery(x).children("h5, a").text(translateMenu[x]) | ||
Zeile 97: | Zeile 108: | ||
jQuery(x).find(":last").text(translateTabs[x]) | jQuery(x).find(":last").text(translateTabs[x]) | ||
} | } | ||
+ | |||
+ | |||
+ | jQuery("#mw-normal-catlinks").children("a").text(translateCategoryTitle) | ||
+ | |||
+ | for (var x in translateCategories) | ||
+ | jQuery("#mw-normal-catlinks").find("span a").filter( function () { return jQuery(this).text() == x } ).text(translateCategories[x]); |
Version vom 5. Oktober 2010, 14:55 Uhr
/*
* Nur zum Testen
*
if (! window.jQuery)
{
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",
"#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",
"#ca-talk": "Speak",
"#ca-view": "Look at",
"#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"
}
*/
/*
* Dieser Block muss in das jeweilige seitenspezifische Javascript!
*
var translateCategoryTitle = "Thingies";
var translateCategories = {
"Kamelopedia": "Kamelothingy",
"Schifffahrt": "Ship thingy"
};
*/
/* ausführen */
for (var x in translateMenu)
{
jQuery(x).children("h5, a").text(translateMenu[x])
}
for (var x in translateTabs)
{
jQuery(x).find(":last").text(translateTabs[x])
}
jQuery("#mw-normal-catlinks").children("a").text(translateCategoryTitle)
for (var x in translateCategories)
jQuery("#mw-normal-catlinks").find("span a").filter( function () { return jQuery(this).text() == x } ).text(translateCategories[x]);