properly localize "not found"-pages

This commit is contained in:
Sarjuuk
2015-05-31 21:05:56 +02:00
parent 9fda302bf3
commit 398bb3fd40
25 changed files with 131 additions and 40 deletions

View File

@@ -10,6 +10,7 @@ class Lang
private static $game;
private static $achievement;
private static $chrClass;
private static $currency;
private static $event;
private static $faction;

View File

@@ -28,7 +28,7 @@ $lang = array(
'timeSQL' => "Zeit für MySQL-Queries",
'noJScript' => '<b>Diese Seite macht ausgiebigen Gebrauch von JavaScript.</b><br />Bitte <a href="https://www.google.com/support/adsense/bin/answer.py?answer=12654" target="_blank">aktiviert JavaScript</a> in Eurem Browser.',
'userProfiles' => "Deine Charaktere",
'pageNotFound' => "Diese|Dieser|Dieses %s existiert nicht.", // todo: dämliche Fälle...
'pageNotFound' => "Dies %s existiert nicht.",
'gender' => "Geschlecht",
'sex' => [null, "Mann", "Frau"],
'players' => "Spieler",
@@ -384,6 +384,7 @@ $lang = array(
'resetPass' => ["Kennwortreset", "Folgt diesem Link um euer Kennwort zurückzusetzen.\r\n\r\n".HOST_URL."?account=forgotpassword&token=%s\r\n\r\nFalls Ihr diese Mail nicht angefordert habt kann sie einfach ignoriert werden."]
),
'gameObject' => array(
'notFound' => "Dieses Objekt existiert nicht .",
'cat' => [0 => "Anderes", 9 => "Bücher", 3 => "Behälter", -5 => "Truhen", 25 => "Fischschwärme", -3 => "Kräuter", -4 => "Erzadern", -2 => "Quest", -6 => "Werkzeuge"],
'type' => [ 9 => "Buch", 3 => "Behälter", -5 => "Truhe", 25 => "", -3 => "Kraut", -4 => "Erzvorkommen", -2 => "Quest", -6 => ""],
'unkPosition' => "Der Standort dieses Objekts ist nicht bekannt.",
@@ -397,6 +398,7 @@ $lang = array(
'restock' => "Wird alle %s wieder aufgefüllt."
),
'npc' => array(
'notFound' => "Dieser NPC existiert nicht.",
'classification'=> "Einstufung",
'petFamily' => "Tierart",
'react' => "Reaktion",
@@ -433,6 +435,7 @@ $lang = array(
)
),
'event' => array(
'notFound' => "Dieses Weltereignis existiert nicht.",
'start' => "Anfang",
'end' => "Ende",
'interval' => "Intervall",
@@ -440,6 +443,7 @@ $lang = array(
'category' => ["Nicht kategorisiert", "Feiertage", "Wiederkehrend", "Spieler vs. Spieler"]
),
'achievement' => array(
'notFound' => "Dieser Erfolg existiert nicht.",
'criteria' => "Kriterien",
'points' => "Punkte",
'series' => "Reihe",
@@ -452,7 +456,11 @@ $lang = array(
'rfAvailable' => "Verfügbar auf Realm:",
'_transfer' => 'Dieser Erfolg wird mit <a href="?achievement=%d" class="q%d icontiny tinyspecial" style="background-image: url('.STATIC_URL.'/images/wow/icons/tiny/%s.gif)">%s</a> vertauscht, wenn Ihr zur <span class="icon-%s">%s</span> wechselt.',
),
'chrClass' => array(
'notFound' => "Diese Klasse existiert nicht."
),
'race' => array(
'notFound' => "Dieses Volk existiert nicht.",
'racialLeader' => "Volksanführer",
'startZone' => "Startgebiet",
),
@@ -474,6 +482,7 @@ $lang = array(
'CosmicMap' => "Kosmische Karte",
),
'zone' => array(
'notFound' => "Dieses Gebiet existiert nicht.",
'attunement' => ["Einstimmung", "Heroische Einstimmung"],
'key' => ["Schlüssel", "Heroischer Schlüssel"],
'location' => "Ort",
@@ -496,8 +505,8 @@ $lang = array(
)
),
'quest' => array(
'notFound' => "Diese Quest existiert nicht.",
'_transfer' => 'Dieses Quest wird mit <a href="?quest=%d" class="q1">%s</a> vertauscht, wenn Ihr zur <span class="icon-%s">%s</span> wechselt.',
'questLevel' => "Stufe %s",
'requirements' => "Anforderungen",
'reqMoney' => "Benötigtes Geld",
@@ -627,28 +636,33 @@ $lang = array(
)
),
'title' => array(
'notFound' => "Dieser Titel existiert nicht.",
'_transfer' => 'Dieser Titel wird mit <a href="?title=%d" class="q1">%s</a> vertauscht, wenn Ihr zur <span class="icon-%s">%s</span> wechselt.',
'cat' => array(
"Allgemein", "Spieler gegen Spieler", "Ruf", "Dungeon & Schlachtzug", "Quests", "Berufe", "Weltereignisse"
)
),
'skill' => array(
'notFound' => "Diese Fertigkeit existiert nicht.",
'cat' => array(
-6 => "Haustiere", -5 => "Reittiere", -4 => "Völkerfertigkeiten", 5 => "Attribute", 6 => "Waffenfertigkeiten", 7 => "Klassenfertigkeiten", 8 => "Rüstungssachverstand",
9 => "Nebenberufe", 10 => "Sprachen", 11 => "Berufe"
)
),
'currency' => array(
'notFound' => "Diese Währung existiert nicht.",
'cap' => "Obergrenze",
'cat' => array(
1 => "Verschiedenes", 2 => "Spieler gegen Spieler", 4 => "Classic", 21 => "Wrath of the Lich King", 22 => "Dungeon und Schlachtzug", 23 => "Burning Crusade", 41 => "Test", 3 => "Unbenutzt"
)
),
'pet' => array(
'notFound' => "Diese Tierart existiert nicht.",
'exotic' => "Exotisch",
'cat' => ["Wildheit", "Hartnäckigkeit", "Gerissenheit"]
),
'faction' => array(
'notFound' => "Diese Fraktion existiert nicht.",
'spillover' => "Reputationsüberlauf",
'spilloverDesc' => "Für diese Fraktion erhaltener Ruf wird zusätzlich mit den unten aufgeführten Fraktionen anteilig verrechnet.",
'maxStanding' => "Max. Ruf",
@@ -663,6 +677,7 @@ $lang = array(
)
),
'itemset' => array(
'notFound' => "Dieses Ausrüstungsset existiert nicht.",
'_desc' => "<b>%s</b> ist das <b>%s</b>. Es enthält %s Teile.",
'_descTagless' => "<b>%s</b> ist ein Ausrüstungsset, das %s Teile enthält.",
'_setBonuses' => "Setboni",
@@ -687,6 +702,7 @@ $lang = array(
)
),
'spell' => array(
'notFound' => "Dieser Zauber existiert nicht.",
'_spellDetails' => "Zauberdetails",
'_cost' => "Kosten",
'_range' => "Reichweite",
@@ -828,6 +844,7 @@ $lang = array(
'invisibilityType' => ["Allgemein", 3 => "Falle", 6 => "Trunkenheit"]
),
'item' => array(
'notFound' => "Dieser Gegenstand existiert nicht .",
'armor' => "%s Rüstung",
'block' => "%s Blocken",
'charges' => "Aufladungen",

View File

@@ -379,6 +379,7 @@ $lang = array(
'resetPass' => ["Password Reset", "Follow this link to reset your password.\r\n\r\n".HOST_URL."?account=forgotpassword&token=%s\r\n\r\nIf you did not request this mail simply ignore it."]
),
'gameObject' => array(
'notFound' => "This object doesn't exist.",
'cat' => [0 => "Other", 9 => "Books", 3 => "Containers", -5 => "Chests", 25 => "Fishing Pools", -3 => "Herbs", -4 => "Mineral Veins", -2 => "Quest", -6 => "Tools"],
'type' => [ 9 => "Book", 3 => "Container", -5 => "Chest", 25 => "", -3 => "Herb", -4 => "Mineral Vein", -2 => "Quest", -6 => ""],
'unkPosition' => "The location of this object is unknown.",
@@ -392,6 +393,7 @@ $lang = array(
'restock' => "Restocks every %s."
),
'npc' => array(
'notFound' => "This NPC doesn't exist.",
'classification'=> "Classification",
'petFamily' => "Pet familiy",
'react' => "React",
@@ -428,6 +430,7 @@ $lang = array(
),
),
'event' => array(
'notFound' => "This world event doesn't exist.",
'start' => "Start",
'end' => "End",
'interval' => "Interval",
@@ -435,6 +438,7 @@ $lang = array(
'category' => ["Uncategorized", "Holidays", "Recurring", "Player vs. Player"]
),
'achievement' => array(
'notFound' => "This achievement doesn't exist.",
'criteria' => "Criteria",
'points' => "Points",
'series' => "Series",
@@ -447,7 +451,11 @@ $lang = array(
'rfAvailable' => "Available on realm:",
'_transfer' => 'This achievement will be converted to <a href="?achievement=%d" class="q%d icontiny tinyspecial" style="background-image: url('.STATIC_URL.'/images/wow/icons/tiny/%s.gif)">%s</a> if you transfer to <span class="icon-%s">%s</span>.',
),
'chrClass' => array(
'notFound' => "This class doesn't exist."
),
'race' => array(
'notFound' => "This race doesn't exist.",
'racialLeader' => "Racial leader",
'startZone' => "Starting zone",
),
@@ -469,6 +477,7 @@ $lang = array(
'CosmicMap' => "Cosmic Map",
),
'zone' => array(
'notFound' => "This zone doesn't exist.",
'attunement' => ["Attunement", "Heroic attunement"],
'key' => ["Key", "Heroic key"],
'location' => "Location",
@@ -491,8 +500,8 @@ $lang = array(
)
),
'quest' => array(
'notFound' => "This quest doesn't exist.",
'_transfer' => 'This quest will be converted to <a href="?quest=%d" class="q1">%s</a> if you transfer to <span class="icon-%s">%s</span>.',
'questLevel' => "Level %s",
'requirements' => "Requirements",
'reqMoney' => "Required money",
@@ -622,28 +631,33 @@ $lang = array(
)
),
'title' => array(
'notFound' => "This title doesn't exist.",
'_transfer' => 'This title will be converted to <a href="?title=%d" class="q1">%s</a> if you transfer to <span class="icon-%s">%s</span>.',
'cat' => array(
"General", "Player vs. Player", "Reputation", "Dungeons & Raids", "Quests", "Professions", "World Events"
)
),
'skill' => array(
'notFound' => "This skill doesn't exist.",
'cat' => array(
-6 => "Companions", -5 => "Mounts", -4 => "Racial Traits", 5 => "Attributes", 6 => "Weapon Skills", 7 => "Class Skills", 8 => "Armor Proficiencies",
9 => "Secondary Skills", 10 => "Languages", 11 => "Professions"
)
),
'currency' => array(
'notFound' => "This currency doesn't exist.",
'cap' => "Total cap",
'cat' => array(
1 => "Miscellaneous", 2 => "Player vs. Player", 4 => "Classic", 21 => "Wrath of the Lich King", 22 => "Dungeon and Raid", 23 => "Burning Crusade", 41 => "Test", 3 => "Unused"
)
),
'pet' => array(
'notFound' => "This pet family doesn't exist.",
'exotic' => "Exotic",
'cat' => ["Ferocity", "Tenacity", "Cunning"]
),
'faction' => array(
'notFound' => "This faction doesn't exist.",
'spillover' => "Reputation Spillover",
'spilloverDesc' => "Gaining reputation with this faction also yields a proportional gain with the factions listed below.",
'maxStanding' => "Max. Standing",
@@ -658,6 +672,7 @@ $lang = array(
)
),
'itemset' => array(
'notFound' => "This item set doesn't exist.",
'_desc' => "<b>%s</b> is the <b>%s</b>. It contains %s pieces.",
'_descTagless' => "<b>%s</b> is an item set that contains %s pieces.",
'_setBonuses' => "Set Bonuses",
@@ -682,6 +697,7 @@ $lang = array(
)
),
'spell' => array(
'notFound' => "This spell doesn't exist.",
'_spellDetails' => "Spell Details",
'_cost' => "Cost",
'_range' => "Range",
@@ -823,6 +839,7 @@ $lang = array(
'invisibilityType' => ["General", 3 => "Trap", 6 => "Drunk"]
),
'item' => array(
'notFound' => "This item doesn't exist.",
'armor' => "%s Armor",
'block' => "%s Block",
'charges' => "Charges",

View File

@@ -385,6 +385,7 @@ $lang = array(
'resetPass' => ["Password Reset", "Follow this link to reset your password.\r\n\r\n".HOST_URL."?account=forgotpassword&token=%s\r\n\r\nIf you did not request this mail simply ignore it."]
),
'gameObject' => array(
'notFound' => "Este entidad no existe.",
'cat' => [0 => "Otros", 9 => "Libros", 3 => "Contenedores", -5 => "Cofres", 25 => "Bancos de peces", -3 => "Hierbas", -4 => "Venas de minerales", -2 => "Misiones", -6 => "Herramientas"],
'type' => [ 9 => "Libro", 3 => "Contenedore", -5 => "Cofre", 25 => "", -3 => "Hierba", -4 => "Filóne de mineral", -2 => "Misión", -6 => ""],
'unkPosition' => "No se conoce la ubicación de esta entidad.",
@@ -397,6 +398,7 @@ $lang = array(
'restock' => "[Restocks every %s.]"
),
'npc' => array(
'notFound' => "Este PNJ no existe.",
'classification'=> "Clasificación",
'petFamily' => "Familia de mascota",
'react' => "Reacción",
@@ -432,6 +434,7 @@ $lang = array(
)
),
'event' => array(
'notFound' => "Este evento del mundo no existe.",
'start' => "Empieza",
'end' => "Termina",
'interval' => "Intervalo",
@@ -439,6 +442,7 @@ $lang = array(
'category' => ["Sin categoría", "Vacacionales", "Periódicos", "Jugador contra Jugador"]
),
'achievement' => array(
'notFound' => "Este logro no existe.",
'criteria' => "Requisitos",
'points' => "Puntos",
'series' => "Serie",
@@ -451,7 +455,11 @@ $lang = array(
'rfAvailable' => "Disponible en reino:",
'_transfer' => 'Este logro será convertido a <a href="?achievement=%d" class="q%d icontiny tinyspecial" style="background-image: url('.STATIC_URL.'/images/wow/icons/tiny/%s.gif)">%s</a> si lo transfieres a la <span class="icon-%s">%s</span>.',
),
'chrClass' => array(
'notFound' => "Esta clase no existe."
),
'race' => array(
'notFound' => "Esta raza no existe.",
'racialLeader' => "Lider racial",
'startZone' => "Zona de inicio",
),
@@ -473,6 +481,7 @@ $lang = array(
'CosmicMap' => "Mapa cósmico",
),
'zone' => array(
'notFound' => "Esta zona no existe.",
'attunement' => ["Requisito", "Requisito heroica"],
'key' => ["Llave", "Llave heroica"],
'location' => "Ubicación",
@@ -495,8 +504,8 @@ $lang = array(
)
),
'quest' => array(
'notFound' => "Esta misión no existe.",
'_transfer' => 'Esta misión será convertido a <a href="?quest=%d" class="q1">%s</a> si lo transfieres a la <span class="icon-%s">%s</span>.',
'questLevel' => 'Nivel %s',
'requirements' => 'Requisitos',
'reqMoney' => 'Dinero necesario',
@@ -626,28 +635,33 @@ $lang = array(
)
),
'title' => array(
'notFound' => "Este título no existe.",
'_transfer' => 'Este título será convertido a <a href="?title=%d" class="q1">%s</a> si lo transfieres a la <span class="icon-%s">%s</span>.',
'cat' => array(
"General", "Jugador contra Jugador", "Reputación", "Mazmorras y bandas", "Misiones", "Profesiones", "Eventos del mundo"
)
),
'skill' => array(
'notFound' => "Esta habilidad no existe.",
'cat' => array(
-6 => "Compañeros", -5 => "Monturas", -4 => "Habilidades de raza", 5 => "Atributos", 6 => "Habilidades con armas", 7 => "Habilidades de clase", 8 => "Armaduras disponibles",
9 => "Habilidades secundarias", 10 => "Idiomas", 11 => "Profesiones"
)
),
'currency' => array(
'notFound' => "Esta moneda no existe.",
'cap' => "Límite total",
'cat' => array(
1 => "Miscelánea", 2 => "Jugador contra Jugador", 4 => "Clásico", 21 => "Wrath of the Lich King", 22 => "Mazmorra y banda", 23 => "Burning Crusade", 41 => "Prueba", 3 => "No las uso"
)
),
'pet' => array(
'notFound' => "Esta familia de mascotas no existe.",
'exotic' => "Exótica",
'cat' => ["Ferocidad", "Tenacidad", "Astucia"]
),
'faction' => array(
'notFound' => "Esta facción no existe.",
'spillover' => "[Reputation Spillover]",
'spilloverDesc' => "[Gaining reputation with this faction also yields a proportional gain with the factions listed below.]",
'maxStanding' => "Posición máxima",
@@ -662,6 +676,7 @@ $lang = array(
)
),
'itemset' => array(
'notFound' => "Este conjunto de objetos no existe.",
'_desc' => "<b>%s</b> es el <b>%s</b>. Contiene %s piezas.",
'_descTagless' => "<b>%s</b> es un conjunto de objetos que tiene %s piezas.",
'_setBonuses' => "Bonificación de conjunto",
@@ -686,6 +701,7 @@ $lang = array(
)
),
'spell' => array(
'notFound' => "Este hechizo no existe.",
'_spellDetails' => "Detalles de hechizos",
'_cost' => "Costo",
'_range' => "Rango",
@@ -827,6 +843,7 @@ $lang = array(
'invisibilityType' => ["GENERAL", 3 => "TRAP", 6 => "DRUNK"]
),
'item' => array(
'notFound' => "Este objeto no existe.",
'armor' => "%s armadura",
'block' => "%s bloqueo",
'charges' => "cargas",

View File

@@ -384,6 +384,7 @@ $lang = array(
'resetPass' => ["Password Reset", "Follow this link to reset your password.\r\n\r\n".HOST_URL."?account=forgotpassword&token=%s\r\n\r\nIf you did not request this mail simply ignore it."]
),
'gameObject' => array(
'notFound' => "Cette entité n'existe pas.",
'cat' => [0 => "Autre", 9 => "Livres", 3 => "Conteneurs", -5 => "Coffres", 25 => "Bancs de poissons", -3 => "Herbes", -4 => "Filons de minerai", -2 => "Quêtes", -6 => "Outils"],
'type' => [ 9 => "Livre", 3 => "Conteneur", -5 => "Coffre", 25 => "", -3 => "Herbe", -4 => "Filon de minerai", -2 => "Quête", -6 => ""],
'unkPosition' => "L'emplacement de cette entité est inconnu.",
@@ -396,6 +397,7 @@ $lang = array(
'restock' => "[Restocks every %s.]"
),
'npc' => array(
'notFound' => "Ce PNJ n'existe pas.",
'classification'=> "Classification",
'petFamily' => "Familier",
'react' => "Réaction",
@@ -431,6 +433,7 @@ $lang = array(
)
),
'event' => array(
'notFound' => "Cet évènement mondial n'existe pas.",
'start' => "Début",
'end' => "Fin",
'interval' => "Intervalle",
@@ -438,6 +441,7 @@ $lang = array(
'category' => ["Non classés", "Vacances", "Récurrent", "Joueur ctr. Joueur"]
),
'achievement' => array(
'notFound' => "Ce haut fait n'existe pas.",
'criteria' => "Critères",
'points' => "Points",
'series' => "Série",
@@ -450,7 +454,11 @@ $lang = array(
'rfAvailable' => "Disponibles sur les royaumes : ",
'_transfer' => 'Cet haut fait sera converti en <a href="?achievement=%d" class="q%d icontiny tinyspecial" style="background-image: url('.STATIC_URL.'/images/wow/icons/tiny/%s.gif)">%s</a> si vous transférez en <span class="icon-%s">%s</span>.',
),
'chrClass' => array(
'notFound' => "Cette classe n'existe pas."
),
'race' => array(
'notFound' => "Cette race n'existe pas.",
'racialLeader' => "Leader racial",
'startZone' => "Zone initiales",
),
@@ -472,6 +480,7 @@ $lang = array(
'CosmicMap' => "Carte cosmique",
),
'zone' => array(
'notFound' => "Cette zone n'existe pas.",
'attunement' => ["Accès", "Accès Héroïque"],
'key' => ["Clef", "Clef Héroïque"],
'location' => "Localisation",
@@ -494,8 +503,8 @@ $lang = array(
)
),
'quest' => array(
'notFound' => "Cette quête n'existe pas.",
'_transfer' => 'Cette quête sera converti en <a href="?quest=%d" class="q1">%s</a> si vous transférez en <span class="icon-%s">%s</span>.',
'questLevel' => "Niveau %s",
'requirements' => "Conditions",
'reqMoney' => "Argent requis",
@@ -624,28 +633,33 @@ $lang = array(
)
),
'title' => array(
'notFound' => "Ce titre n'existe pas.",
'_transfer' => 'Ce titre sera converti en <a href="?title=%d" class="q1">%s</a> si vous transférez en <span class="icon-%s">%s</span>.',
'cat' => array(
"Général", "Joueur ctr. Joueur", "Réputation", "Donjons & raids", "Quêtes", "Métiers", "Évènements mondiaux"
)
),
'skill' => array(
'notFound' => "Cette compétence n'existe pas.",
'cat' => array(
-6 => "Compagnons", -5 => "Montures", -4 => "Traits raciaux", 5 => "Caractéristiques", 6 => "Compétences d'armes", 7 => "Compétences de classe", 8 => "Armures utilisables",
9 => "Compétences secondaires", 10 => "Langues", 11 => "Métiers"
)
),
'currency' => array(
'notFound' => "Cette monnaie n'existe pas.",
'cap' => "Maximum total",
'cat' => array(
1 => "Divers", 2 => "JcJ", 4 => "Classique", 21 => "Wrath of the Lich King", 22 => "Raid", 23 => "Burning Crusade", 41 => "Test", 3 => "Inutilisées"
)
),
'pet' => array(
'notFound' => "Cette famille de familiers n'existe pas.",
'exotic' => "Exotique",
'cat' => ["Férocité", "Tenacité", "Ruse"]
),
'faction' => array(
'notFound' => "Cette faction n'existe pas.",
'spillover' => "[Reputation Spillover]",
'spilloverDesc' => "[Gaining reputation with this faction also yields a proportional gain with the factions listed below.]",
'maxStanding' => "Niveau maximum",
@@ -660,6 +674,7 @@ $lang = array(
)
),
'itemset' => array(
'notFound' => "Cet ensemble d'objets n'existe pas.",
'_desc' => "<b>%s</b> est le <b>%s</b>. Il contient %s pièces.",
'_descTagless' => "<b>%s</b> est un ensemble d'objet qui contient %s pièces.",
'_setBonuses' => "Bonus de l'ensemble",
@@ -684,6 +699,7 @@ $lang = array(
)
),
'spell' => array(
'notFound' => "Ce sort n'existe pas.",
'_spellDetails' => "Détails sur le sort",
'_cost' => "Coût",
'_range' => "Portée",
@@ -825,6 +841,7 @@ $lang = array(
'invisibilityType' => ["GENERAL", 3 => "TRAP", 6 => "DRUNK"]
),
'item' => array(
'notFound' => "Cet objet n'existe pas.",
'armor' => "Armure : %s",
'block' => "Bloquer : %s",
'charges' => "Charges",

View File

@@ -384,6 +384,7 @@ $lang = array(
'resetPass' => ["Password Reset", "Follow this link to reset your password.\r\n\r\n".HOST_URL."?account=forgotpassword&token=%s\r\n\r\nIf you did not request this mail simply ignore it."]
),
'gameObject' => array(
'notFound' => "Такой объект не существует.",
'cat' => [0 => "Другое", 9 => "Книги", 3 => "Контейнеры", -5 => "Сундуки", 25 => "Рыболовные лунки",-3 => "Травы", -4 => "Полезные ископаемые", -2 => "Задания", -6 => "Инструменты"],
'type' => [ 9 => "Книга", 3 => "Контейнер", -5 => "Сундук", 25 => "", -3 => "Растение", -4 => "Полезное ископаемое", -2 => "Задание", -6 => ""],
'unkPosition' => "Местонахождение этого объекта неизвестно.",
@@ -396,6 +397,7 @@ $lang = array(
'restock' => "[Restocks every %s.]"
),
'npc' => array(
'notFound' => "Такой НИП не существует.",
'classification'=> "Классификация",
'petFamily' => "Семейство питомца",
'react' => "Реакция",
@@ -431,6 +433,7 @@ $lang = array(
)
),
'event' => array(
'notFound' => "Это игровое событие не существует.",
'start' => "Начало",
'end' => "Конец",
'interval' => "[Interval]",
@@ -438,6 +441,7 @@ $lang = array(
'category' => array("Разное", "Праздники", "Периодические", "PvP")
),
'achievement' => array(
'notFound' => "Такое достижение не существует.",
'criteria' => "Критерий",
'points' => "Очки",
'series' => "Серии",
@@ -450,7 +454,11 @@ $lang = array(
'rfAvailable' => "[Available on realm]:",
'_transfer' => 'Этот предмет превратится в <a href="?achievement=%d" class="q%d icontiny tinyspecial" style="background-image: url('.STATIC_URL.'/images/wow/icons/tiny/%s.gif)">%s</a>, если вы перейдете за <span class="icon-%s">%s</span>.',
),
'chrClass' => array(
'notFound' => "Такой класс не существует."
),
'race' => array(
'notFound' => "Такая раса не существует.",
'racialLeader' => "Лидер расы",
'startZone' => "Начальная локация",
),
@@ -472,6 +480,7 @@ $lang = array(
'CosmicMap' => "Звёздная карта",
),
'zone' => array(
'notFound' => "Такая местность не существует.",
'attunement' => ["[Attunement]", "[Heroic attunement]"],
'key' => ["[Key]", "[Heroic key]"],
'location' => "Местоположение",
@@ -494,8 +503,8 @@ $lang = array(
)
),
'quest' => array(
'notFound' => "Такое задание не существует.",
'_transfer' => 'Этот предмет превратится в <a href="?quest=%d" class="q1">%s</a>, если вы перейдете за <span class="icon-%s">%s</span>.',
'questLevel' => "%s-го уровня",
'requirements' => "Требования",
'reqMoney' => "Требуется денег",
@@ -625,28 +634,33 @@ $lang = array(
)
),
'title' => array(
'notFound' => "Такое звание не существует.",
'_transfer' => 'Этот предмет превратится в <a href="?title=%d" class="q1">%s</a>, если вы перейдете за <span class="icon-%s">%s</span>.',
'cat' => array(
'Общее", "PvP", "Репутация", "Подземелья и рейды", "Задания", "Профессии", "Игровые события'
)
),
'skill' => array(
'notFound' => "Этот навык не существует.",
'cat' => array(
-6 => "Спутники", -5 => "Транспорт", -4 => "Классовые навыки", 5 => "Характеристики", 6 => "Оружейные навыки", 7 => "Классовые навыки", 8 => "Доспехи",
9 => "Вторичные навыки", 10 => "Языки", 11 => "Профессии"
)
),
'currency' => array(
'notFound' => "Такая валюта не существует.",
'cap' => "Максимум всего",
'cat' => array(
1 => "Разное", 2 => "PvP", 4 => "World of Warcraft", 21 => "Wrath of the Lich King", 22 => "Подземелья и рейды", 23 => "Burning Crusade", 41 => "Test", 3 => "Неактивно"
)
),
'pet' => array(
'notFound' => "Такой породы питомцев не существует.",
'exotic' => "Экзотический",
'cat' => ["Свирепость", "Упорство", "Хитрость"]
),
'faction' => array(
'notFound' => "Такая фракция не существует.",
'spillover' => "[Reputation Spillover]",
'spilloverDesc' => "[Gaining reputation with this faction also yields a proportional gain with the factions listed below.]",
'maxStanding' => "Макс Уровень",
@@ -661,6 +675,7 @@ $lang = array(
)
),
'itemset' => array(
'notFound' => "Такой комплект не существует.",
'_desc' => "<b>%s</b> — <b>%s</b>. Он состоит из %s предметов.",
'_descTagless' => "<b>%s</b> — набор из %s предметов.",
'_setBonuses' => "Бонус за комплект",
@@ -685,6 +700,7 @@ $lang = array(
)
),
'spell' => array(
'notFound' => "Такое заклинание не существует.",
'_spellDetails' => "Описание заклинания",
'_cost' => "Цена",
'_range' => "Радиус действия",
@@ -827,6 +843,7 @@ $lang = array(
'invisibilityType' => ["GENERAL", 3 => "TRAP", 6 => "DRUNK"]
),
'item' => array(
'notFound' => "Такой предмет не существует.",
'armor' => "Броня: %s",
'block' => "Блок: %s",
'charges' => "зарядов",

View File

@@ -44,7 +44,7 @@ class AchievementPage extends GenericPage
$this->subject = new AchievementList(array(['id', $this->typeId]));
if ($this->subject->error)
$this->notFound(Lang::game('achievement'));
$this->notFound();
$this->extendGlobalData($this->subject->getJSGlobals(GLOBALINFO_REWARDS));
@@ -464,10 +464,10 @@ class AchievementPage extends GenericPage
die($tt);
}
public function notFound($typeStr)
public function notFound()
{
if ($this->mode != CACHE_TYPE_TOOLTIP)
return parent::notFound($typeStr);
return parent::notFound(Lang::game('achievement'), Lang::achievement('notFound'));
header('Content-type: application/x-javascript; charset=utf-8');
echo $this->generateTooltip(true);

View File

@@ -26,7 +26,7 @@ class ClassPage extends GenericPage
$this->subject = new CharClassList(array(['id', $this->typeId]));
if ($this->subject->error)
$this->notFound(Lang::game('class'));
$this->notFound(Lang::game('class'), Lang::chrClass('notFound'));
$this->name = $this->subject->getField('name', true);
}

View File

@@ -25,7 +25,7 @@ class CurrencyPage extends GenericPage
$this->subject = new CurrencyList(array(['id', $this->typeId]));
if ($this->subject->error)
$this->notFound(Lang::game('currency'));
$this->notFound(Lang::game('currency'), Lang::currency('notFound'));
$this->name = $this->subject->getField('name', true);
}

View File

@@ -30,7 +30,7 @@ class EventPage extends GenericPage
$this->subject = new WorldEventList($conditions);
if ($this->subject->error)
$this->notFound(Lang::game('event'));
$this->notFound(Lang::game('event'), Lang::event('notFound'));
$this->hId = $this->subject->getField('holidayId');
$this->eId = $this->subject->getField('eventBak');

View File

@@ -25,7 +25,7 @@ class FactionPage extends GenericPage
$this->subject = new FactionList(array(['id', $this->typeId]));
if ($this->subject->error)
$this->notFound(Lang::game('faction'));
$this->notFound(Lang::game('faction'), Lang::faction('notFound'));
$this->name = $this->subject->getField('name', true);
}

View File

@@ -363,6 +363,8 @@ class GenericPage
public function notFound($title, $msg = '') // unknown entry
{
array_unshift($this->title, Lang::main('nfPageTitle'));
$this->notFound = array(
'title' => $this->typeId ? Util::ucFirst($title).' #'.$this->typeId : $title,
'msg' => !$msg && $this->typeId ? sprintf(Lang::main('pageNotFound'), $title) : $msg

View File

@@ -59,7 +59,7 @@ class ItemPage extends genericPage
$this->subject = new ItemList($conditions);
if ($this->subject->error)
$this->notFound(Lang::game('item'));
$this->notFound();
if (!is_numeric($param))
$this->typeId = $this->subject->id;
@@ -1136,7 +1136,7 @@ class ItemPage extends genericPage
return parent::display($override);
}
public function notFound($typeStr)
public function notFound()
{
if ($this->mode == CACHE_TYPE_TOOLTIP)
{
@@ -1151,7 +1151,7 @@ class ItemPage extends genericPage
exit();
}
else
return parent::notFound($typeStr);
return parent::notFound(Lang::game('item'), Lang::item('notFound'));
}
}

View File

@@ -29,7 +29,7 @@ class ItemsetPage extends GenericPage
$this->subject = new ItemsetList(array(['id', $this->typeId]));
if ($this->subject->error)
$this->notFound(Lang::game('itemset'));
$this->notFound(Lang::game('itemset'), Lang::itemset('notFound'));
$this->name = $this->subject->getField('name', true);
$this->extendGlobalData($this->subject->getJSGlobals());

View File

@@ -30,7 +30,7 @@ class NpcPage extends GenericPage
$this->subject = new CreatureList(array(['id', $this->typeId]));
if ($this->subject->error)
$this->notFound(Lang::game('npc'));
$this->notFound();
$this->name = $this->subject->getField('name', true);
$this->subname = $this->subject->getField('subname', true);
@@ -807,10 +807,10 @@ class NpcPage extends GenericPage
die($tt);
}
public function notFound($typeStr)
public function notFound()
{
if ($this->mode != CACHE_TYPE_TOOLTIP)
return parent::notFound($typeStr);
return parent::notFound(Lang::game('npc'), Lang::npc('notFound'));
header('Content-type: application/x-javascript; charset=utf-8');
echo $this->generateTooltip(true);

View File

@@ -37,7 +37,7 @@ class ObjectPage extends GenericPage
$this->subject = new GameObjectList(array(['id', $this->typeId]));
if ($this->subject->error)
$this->notFound(Lang::game('gameObject'));
$this->notFound();
$this->name = $this->subject->getField('name', true);
}
@@ -486,10 +486,10 @@ class ObjectPage extends GenericPage
die($tt);
}
public function notFound($typeStr)
public function notFound()
{
if ($this->mode != CACHE_TYPE_TOOLTIP)
return parent::notFound($typeStr);
return parent::notFound(Lang::game('gameObject'), Lang:gameObject('notFound'));
header('Content-type: application/x-javascript; charset=utf-8');
echo $this->generateTooltip(true);

View File

@@ -26,7 +26,7 @@ class PetPage extends GenericPage
$this->subject = new PetList(array(['id', $this->typeId]));
if ($this->subject->error)
$this->notFound(Lang::game('pet'));
$this->notFound(Lang::game('pet'), Lang::pet('notFound'));
$this->name = $this->subject->getField('name', true);
}

View File

@@ -41,7 +41,7 @@ class ProfilePage extends GenericPage
if ($foo = DB::Aowow()->selectCell('SELECT 2161862'))
$this->profileId = $foo;
else
$this->notFound(Util::ucFirst(Lang::game('profile')));
$this->notFound();
$this->isCustom = true;
$this->profile = intVal($_[0]);
@@ -52,12 +52,12 @@ class ProfilePage extends GenericPage
if ($foo = DB::Aowow()->selectCell('SELECT 2161862'))
$this->profileId = $foo;
else
$this->notFound(Util::ucFirst(Lang::game('profile')));
$this->notFound();
$this->profile = $_;
}
else if ($_ || !isset($_GET['new']))
$this->notFound(Util::ucFirst(Lang::game('profile')));
$this->notFound();
$this->subject = new ProfileList(/*stuff*/);
}
@@ -122,10 +122,10 @@ class ProfilePage extends GenericPage
die($this->generateTooltip());
}
public function notFound($typeStr)
public function notFound()
{
if ($this->mode != CACHE_TYPE_TOOLTIP)
return parent::notFound($typeStr);
return parent::notFound(Util::ucFirst(Lang::game('profile')), '[NNF]profile or char doesn\'t exist');
header('Content-type: application/x-javascript; charset=utf-8');
echo $this->generateTooltip(true);

View File

@@ -30,7 +30,7 @@ class QuestPage extends GenericPage
$this->subject = new QuestList(array(['id', $this->typeId]));
if ($this->subject->error)
$this->notFound(Lang::game('quest'));
$this->notFound();
$this->name = $this->subject->getField('name', true);
}
@@ -679,10 +679,10 @@ class QuestPage extends GenericPage
die($tt);
}
public function notFound($typeStr)
public function notFound()
{
if ($this->mode != CACHE_TYPE_TOOLTIP)
return parent::notFound($typeStr);
return parent::notFound(Lang::game('quest'), Lang::quest('notFound'));
header('Content-type: application/x-javascript; charset=utf-8');
echo $this->generateTooltip(true);

View File

@@ -26,7 +26,7 @@ class RacePage extends GenericPage
$this->subject = new CharRaceList(array(['id', $this->typeId]));
if ($this->subject->error)
$this->notFound(Lang::game('race'));
$this->notFound(Lang::game('race'), Lang::race('notFound'));
$this->name = $this->subject->getField('name', true);
}

View File

@@ -201,7 +201,10 @@ class SearchPage extends GenericPage
{
// empty queries go home
if (!$this->query)
{
header('Location: .', true, 302);
die();
}
parent::display(); // errors are handled in the search-template itself
}

View File

@@ -27,7 +27,7 @@ class SkillPage extends GenericPage
$this->subject = new SkillList(array(['id', $this->typeId]));
if ($this->subject->error)
$this->notFound(Lang::game('skill'));
$this->notFound(Lang::game('skill'), Lang::skill('notFound'));
$this->name = $this->subject->getField('name', true);
$this->cat = $this->subject->getField('typeCat');

View File

@@ -33,7 +33,7 @@ class SpellPage extends GenericPage
$this->subject = new SpellList(array(['id', $this->typeId]));
if ($this->subject->error)
$this->notFound(Lang::game('spell'));
$this->notFound();
$jsg = $this->subject->getJSGlobals(GLOBALINFO_ANY, $extra);
$this->extendGlobalData($jsg, $extra);
@@ -1192,10 +1192,10 @@ class SpellPage extends GenericPage
die($tt);
}
public function notFound($typeStr)
public function notFound()
{
if ($this->mode != CACHE_TYPE_TOOLTIP)
return parent::notFound($typeStr);
return parent::notFound(Lang::game('spell'), Lang::spell('notFound'));
header('Content-type: application/x-javascript; charset=utf-8');
echo $this->generateTooltip(true);

View File

@@ -27,7 +27,7 @@ class TitlePage extends GenericPage
$this->subject = new TitleList(array(['id', $this->typeId]));
if ($this->subject->error)
$this->notFound(Lang::game('title'));
$this->notFound(Lang::game('title'), Lang::title('notFound'));
$this->name = $this->subject->getHtmlizedName();
$this->nameFixed = Util::ucFirst(trim(strtr($this->subject->getField('male', true), ['%s' => '', ',' => ''])));

View File

@@ -24,7 +24,7 @@ class ZonePage extends GenericPage
$this->subject = new ZoneList(array(['id', $this->typeId]));
if ($this->subject->error)
$this->notFound(Lang::game('zone'));
$this->notFound(Lang::game('zone'), Lang::zone('notFound'));
$this->name = $this->subject->getField('name', true);
}