- converted articles for MorePages to use STATIC_URL (also neutralized some self-references)

- added config-option to restrict available locales
- fixed opensearch suggestions by generating strict json
- include TalentCalc.css as lowerCase (fixes display under *nix)
- some minor formating
- Setup:
 * added some additional files to be generated (they required STATIC_URL or HOST_URL to be set)
 * moved class Locale from global.js to own template and generate it with CFG_LOCALES
 * changed urlParam (?build=script): may be empty (builds everything) or specific scriptNames chained together with ; (?build=script1;script2)

you are required to run the following command to regenerate files affected by these cahnges
?build=demo;power;realmMenu;searchboxBody;searchboxScript;searchplugin;locales
This commit is contained in:
Sarjuuk
2014-09-13 21:26:11 +02:00
parent 70f703b4b2
commit feaee59cd0
53 changed files with 1992 additions and 1895 deletions

View File

@@ -17808,97 +17808,9 @@ var Lightbox = new function() {
};
/*
Locale class
Locale class moved to own file
*/
var LOCALE_ENUS = 0;
var LOCALE_FRFR = 2;
var LOCALE_DEDE = 3;
var LOCALE_ESES = 6;
var LOCALE_RURU = 8;
var Locale = {
current: {},
// All
locales: {
0: { // English
id: LOCALE_ENUS,
name: 'enus',
domain: 'www',
description: 'English'
},
2: { // French
id: LOCALE_FRFR,
name: 'frfr',
domain: 'fr',
description: 'Fran' + String.fromCharCode(231) + 'ais'
},
3: { // German
id: LOCALE_DEDE,
name: 'dede',
domain: 'de',
description: 'Deutsch'
},
6: { // Spanish
id: LOCALE_ESES,
name: 'eses',
domain: 'es',
description: 'Espa' + String.fromCharCode(241) + 'ol'
},
8: { // Russian
id: LOCALE_RURU,
name: 'ruru',
domain: 'ru',
description: String.fromCharCode(1056, 1091, 1089, 1089, 1082, 1080, 1081)
}
},
getAll: function() {
var result = [];
for (var id in Locale.locales) {
result.push(Locale.locales[id]);
}
return result;
},
getAllByName: function() {
var result = Locale.getAll();
result.sort(function(a, b) {
return $WH.strcmp(a.description, b.description);
});
return result;
},
getId: function() {
return Locale.current.id;
},
getName: function() {
var localeId = Locale.getId();
return Locale.locales[localeId].name;
},
get: function() {
var localeId = Locale.getId();
return Locale.locales[localeId];
},
set: function(localeId) {
$.extend(Locale.current, Locale.locales[localeId]);
}
};
Locale.set(LOCALE_ENUS); // Default
var ModelViewer = new function() {
this.validSlots = [1,3,4,5,6,7,8,9,10,13,14,15,16,17,19,20,21,22,23,25,26];
this.slotMap = {1: 1, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 13: 21, 14: 22, 15: 22, 16: 16, 17: 21, 19: 19, 20: 5, 21: 21, 22: 22, 23: 22, 25: 21, 26: 21};
@@ -19597,21 +19509,21 @@ function g_urlize(str, allowLocales, profile) {
str = $WH.str_replace(str, '(', '');
str = $WH.str_replace(str, ')', '');
var accents = {
"<EFBFBD>": "ss",
"<EFBFBD>": "a", "<EFBFBD>": "a", "<EFBFBD>": "a", "<EFBFBD>": "a",
"<EFBFBD>": "e", "<EFBFBD>": "e", "<EFBFBD>": "e", "<EFBFBD>": "e",
"<EFBFBD>": "i", "<EFBFBD>": "i", "<EFBFBD>": "i", "<EFBFBD>": "i",
"<EFBFBD>": "n",
"<EFBFBD>": "o", "<EFBFBD>": "o", "<EFBFBD>": "o", "<EFBFBD>": "o",
"<EFBFBD>": "u", "<EFBFBD>": "u", "<EFBFBD>": "u", "<EFBFBD>": "u",
"<EFBFBD>": "oe",
"<EFBFBD>": "A", "<EFBFBD>": "A", "<EFBFBD>": "A", "<EFBFBD>": "A",
"<EFBFBD>": "E", "<EFBFBD>": "E", "<EFBFBD>": "E", "<EFBFBD>": "E",
"<EFBFBD>": "I", "<EFBFBD>": "I", "<EFBFBD>": "I", "<EFBFBD>": "I",
"<EFBFBD>": "N",
"<EFBFBD>": "O", "<EFBFBD>": "O", "<EFBFBD>": "O", "<EFBFBD>": "O",
"<EFBFBD>": "U", "<EFBFBD>": "U", "<EFBFBD>": "U", "<EFBFBD>": "U",
"<EFBFBD>": "Oe"
"ß": "ss",
"á": "a", "ä": "a", "à": "a", "â": "a",
"è": "e", "ê": "e", "é": "e", "ë": "e",
"í": "i", "î": "i", "ì": "i", "ï": "i",
"ñ": "n",
"ò": "o", "ó": "o", "ö": "o", "ô": "o",
"ú": "u", "ü": "u", "û": "u", "ù": "u",
"œ": "oe",
"Á": "A", "Ä": "A", "À": "A", "Â": "A",
"È": "E", "Ê": "E", "É": "E", "Ë": "E",
"Í": "I", "Î": "I", "Ì": "I", "Ï": "I",
"Ñ": "N",
"Ò": "O", "Ó": "O", "Ö": "O", "Ô": "O",
"Ú": "U", "Ü": "U", "Û": "U", "Ù": "U",
"œ": "Oe"
};
for (var character in accents) {
str = str.replace(new RegExp(character, "g"), accents[character]);

View File

@@ -1,7 +0,0 @@
var mn_profiles = [["us","US & Oceanic",null,[["pure-pwnage","Pure Pwnage",null,[["trinity","Trinity"]]]]],["eu","Europe",null,[["pure-pwnage","Pure Pwnage",null,[["dafuque","da'Fuqúe"]]]]]];
var mn_guilds = $.extend(true,[],mn_profiles);
var mn_arenateams = $.extend(true,[],mn_profiles);
Menu.fixUrls(mn_profiles,"?profiles=",{useSimpleIdsAfter:1});
Menu.fixUrls(mn_guilds,"?guilds=",{useSimpleIdsAfter:1});
Menu.fixUrls(mn_arenateams,"?arena-teams=",{useSimpleIdsAfter:1});