mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Locales/Domain
* entirely switch over to write 'en' for locale 0 and accept both 'www' and 'en' for locale 0 when receiving
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -27,7 +27,7 @@ CLISetup::registerSetup("build", new class extends SetupScript
|
||||
LOCALE_EN => " 0: { // English\r\n" .
|
||||
" id: LOCALE_ENUS,\r\n" .
|
||||
" name: 'enus',\r\n" .
|
||||
" domain: 'www',\r\n" .
|
||||
" domain: 'en',\r\n" .
|
||||
" description: 'English'\r\n" .
|
||||
" }",
|
||||
LOCALE_FR => " 2: { // French\r\n" .
|
||||
|
||||
@@ -28,8 +28,8 @@ MarkupSourceMap[MARKUP_SOURCE_PTR] = 'ptr';
|
||||
MarkupSourceMap[MARKUP_SOURCE_BETA] = 'beta';
|
||||
|
||||
var MarkupDomainRegexMap = {
|
||||
betaPtrLang: /^(www|fr|de|cn|es|ru)$/, // Aowow - /^(beta|legion|wod|mop|ptr|www|ko|fr|de|cn|es|ru|pt|it)$/
|
||||
lang: /^(www|fr|de|cn|es|ru)$/ // Aowow - /^(www|ko|fr|de|cn|es|ru|pt|it)$/
|
||||
betaPtrLang: /^(www|en|fr|de|cn|es|ru)$/, // Aowow - /^(beta|legion|wod|mop|ptr|www|ko|fr|de|cn|es|ru|pt|it)$/
|
||||
lang: /^(www|en|fr|de|cn|es|ru)$/ // Aowow - /^(www|ko|fr|de|cn|es|ru|pt|it)$/
|
||||
};
|
||||
|
||||
var Markup = {
|
||||
@@ -70,6 +70,7 @@ var Markup = {
|
||||
nameCol: 'name_enus',
|
||||
domainToLocale: {
|
||||
'www': 'enus',
|
||||
'en': 'enus',
|
||||
// 'ptr': 'ptr',
|
||||
// 'beta': 'beta',
|
||||
// 'mop': 'beta',
|
||||
|
||||
@@ -345,7 +345,7 @@ if (typeof $WowheadPower == "undefined") {
|
||||
if (url) {
|
||||
var
|
||||
locale,
|
||||
domain = "www";
|
||||
domain = "en";
|
||||
|
||||
currentA = t;
|
||||
if (params.domain) {
|
||||
|
||||
1
setup/updates/1725025019_01.sql
Normal file
1
setup/updates/1725025019_01.sql
Normal file
@@ -0,0 +1 @@
|
||||
UPDATE `aowow_dbversion` SET `build` = CONCAT(IFNULL(`build`, ''), ' tooltips markup locales');
|
||||
Reference in New Issue
Block a user