MediaWiki:Skin/translate.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
J* (Diskussion | Beiträge) (Die Seite wurde neu angelegt.) |
J* (Diskussion | Beiträge) (auch Tabs übersetzen) |
||
Zeile 64: | Zeile 64: | ||
} | } | ||
*/ | */ | ||
+ | |||
+ | /* | ||
+ | * 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" | ||
+ | } | ||
+ | */ | ||
+ | |||
+ | /* ausführen */ | ||
for (x in translateMenu) | for (x in translateMenu) | ||
{ | { | ||
jQuery(x).children("h5, a").text(translateMenu[x]) | jQuery(x).children("h5, a").text(translateMenu[x]) | ||
+ | } | ||
+ | |||
+ | for (var x in translateTabs) | ||
+ | { | ||
+ | jQuery(x).find(":last").text(translateTabs[x]) | ||
} | } |
Version vom 5. Oktober 2010, 14:41 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"
}
*/
/* ausführen */
for (x in translateMenu)
{
jQuery(x).children("h5, a").text(translateMenu[x])
}
for (var x in translateTabs)
{
jQuery(x).find(":last").text(translateTabs[x])
}