hacked "rel"-parameter into the language-menu
it should now show the tooltip for the current page again, in every language availabele - forgot to move a string inside the french localization - added missing strings to spanish, french and russian localization. Fixes an jsError in the Browsers console.
This commit is contained in:
parent
19d08d1d18
commit
6ab86caff2
6 changed files with 35 additions and 22 deletions
|
|
@ -53,7 +53,6 @@ $lang = array(
|
|||
'serversideHint' => "[These informations are not in the Client and have been provided by sniffing and/or guessing.]",
|
||||
),
|
||||
'game' => array (
|
||||
'remaining' => "%s restantes",
|
||||
'requires' => "Requiert",
|
||||
'cooldown' => "%s de recharge",
|
||||
'classes' => "Classes",
|
||||
|
|
@ -146,6 +145,7 @@ $lang = array(
|
|||
'zonePartOf' => "Cette zone fait partie de la zone",
|
||||
),
|
||||
'spell' => array(
|
||||
'remaining' => "%s restantes",
|
||||
'castIn' => "%s s d'incantation",
|
||||
'instantPhys' => "Incantation immédiate",
|
||||
'instantMagic' => "Instantanée",
|
||||
|
|
|
|||
|
|
@ -271,7 +271,7 @@ if (typeof $WowheadPower == "undefined") {
|
|||
locale = $WH.g_getLocaleFromDomain(domain);
|
||||
|
||||
/* edit start */
|
||||
if (!locale) {
|
||||
if (domain == "www") {
|
||||
for (i in document.scripts) {
|
||||
if (!document.scripts[i].src)
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -551,10 +551,10 @@ function g_getCursorPos(e) {
|
|||
y;
|
||||
|
||||
if (window.innerHeight) {
|
||||
|
||||
|
||||
// ok, something of a workaround here... MS9+ sends a MSEventObj istead of mouseEvent . whatever
|
||||
// but the properties for that are client[X|Y] DIAF!
|
||||
|
||||
|
||||
if (!e.pageX || !e.pageY) {
|
||||
x = e.clientX;
|
||||
y = e.clientY
|
||||
|
|
@ -1001,12 +1001,17 @@ function g_initHeaderMenus() {
|
|||
d = d.substr(0, j)
|
||||
}
|
||||
//c.menu = [[0, "Deutsch", (g_locale.id != 3 ? d.replace(g, "de") : null)], [0, "English", (g_locale.id != 0 ? d.replace(g, "www") : null)], [0, "Espa" + String.fromCharCode(241) + "ol", (g_locale.id != 6 ? d.replace(g, "es") : null)], [0, "Fran" + String.fromCharCode(231) + "ais", (g_locale.id != 2 ? d.replace(g, "fr") : null)], [0, String.fromCharCode(1056, 1091, 1089, 1089, 1082, 1080, 1081), (g_locale.id != 8 ? d.replace(g, "ru") : null)]];
|
||||
|
||||
var rel = d.match(/()\?((item|quest|spell|achievement|npc|object)=([0-9]+))/);
|
||||
rel = rel[2] || "";
|
||||
|
||||
c.menu = [
|
||||
[0, "Deutsch", (g_locale.id != 3 ? "?locale=3" : null)],
|
||||
[0, "English", (g_locale.id != 0 ? "?locale=0" : null)],
|
||||
[0, "Espa" + String.fromCharCode(241) + "ol", (g_locale.id != 6 ? "?locale=6" : null)],
|
||||
[0, "Fran" + String.fromCharCode(231) + "ais", (g_locale.id != 2 ? "?locale=2" : null)],
|
||||
[0, String.fromCharCode(1056, 1091, 1089, 1089, 1082, 1080, 1081), (g_locale.id != 8 ? "?locale=8" : null)]];
|
||||
[0, "Deutsch", (g_locale.id != 3 ? "?locale=3" : null), , {rel: rel + " domain=de"}],
|
||||
[0, "English", (g_locale.id != 0 ? "?locale=0" : null), , {rel: rel + " domain=en"}],
|
||||
[0, "Espa" + String.fromCharCode(241) + "ol", (g_locale.id != 6 ? "?locale=6" : null), , {rel: rel + " domain=es"}],
|
||||
[0, "Fran" + String.fromCharCode(231) + "ais", (g_locale.id != 2 ? "?locale=2" : null), , {rel: rel + " domain=fr"}],
|
||||
[0, String.fromCharCode(1056, 1091, 1089, 1089, 1082, 1080, 1081), (g_locale.id != 8 ? "?locale=8" : null), , {rel: rel + " domain=ru"}]
|
||||
];
|
||||
c.menu.rightAligned = 1;
|
||||
if (g_locale.id != 25) {
|
||||
c.menu[{
|
||||
|
|
@ -2120,6 +2125,7 @@ function g_getLocaleFromDomain(a) {
|
|||
return (c[a] ? c[a] : 0)
|
||||
}
|
||||
g_getLocaleFromDomain.L = {
|
||||
www: 0,
|
||||
fr: 2,
|
||||
de: 3,
|
||||
es: 6,
|
||||
|
|
@ -3246,10 +3252,12 @@ var Menu = {
|
|||
if (R.newWindow) {
|
||||
V.target = "_blank"
|
||||
}
|
||||
|
||||
if (R.className) {
|
||||
T.className += " "+R.className
|
||||
}
|
||||
if (R[4] != null && R[4].rel) {
|
||||
V.rel = R[4].rel
|
||||
}
|
||||
if (R[4] != null && R[4].className) {
|
||||
T.className += " "+R[4].className
|
||||
}
|
||||
|
|
@ -9599,8 +9607,12 @@ Listview.templates = {
|
|||
if (a.reqclass) {
|
||||
var b = Listview.funcBox.assocBinFlags(a.reqclass, g_chr_classes);
|
||||
var c = b[0];
|
||||
var d = $("<a>").css("background-image", 'url("' + g_staticUrl + "/images/wow/icons/tiny?class_" + g_file_classes[c] + '.gif")').addClass("icontiny").addClass("c" + c).attr("href", "?class=" + c).text(g_chr_classes[c]);
|
||||
$(e).append(d)
|
||||
var d = ce("a");
|
||||
d.style.backgroundImage = 'url("' + g_staticUrl + "/images/wow/icons/tiny?class_" + g_file_classes[c] + '.gif")';
|
||||
d.className = "icontiny c" + c;
|
||||
d.href = "?class=" + c;
|
||||
ae(d, ct(g_chr_classes[c]));
|
||||
ae(e, d);
|
||||
}
|
||||
},
|
||||
sortFunc: function (d, c, e) {
|
||||
|
|
@ -12742,14 +12754,14 @@ var LiveSearch = new function () {
|
|||
var
|
||||
currentTextbox,
|
||||
lastSearch = {},
|
||||
lastDiv,
|
||||
timer,
|
||||
prepared,
|
||||
container,
|
||||
cancelNext,
|
||||
hasData,
|
||||
summary,
|
||||
selection,
|
||||
lastDiv,
|
||||
timer,
|
||||
prepared,
|
||||
container,
|
||||
cancelNext,
|
||||
hasData,
|
||||
summary,
|
||||
selection,
|
||||
LIVESEARCH_DELAY = 500;
|
||||
|
||||
function setText(textbox, txt) {
|
||||
|
|
|
|||
|
|
@ -2610,6 +2610,7 @@ var LANG = {and:" y ",
|
|||
compose_cancel:"Cancelar",
|
||||
compose_limit:"Hasta $1 caracteres",
|
||||
compose_limit2:"Hasta $1 caracteres y/o $2 lineas",
|
||||
compose_remaining:"$1 caracteres restantes.",
|
||||
user_nodescription:"Este usuario no ha escrito ninguna descripción pública aun.",
|
||||
user_nodescription2:"No has escrito una todavia.",
|
||||
user_composeone:"¡Escribe una ahora!",
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue