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:
Sarjuuk
2024-08-30 15:37:13 +02:00
parent e3fc4ebd62
commit a62f24b97c
8 changed files with 20 additions and 21 deletions

View File

@@ -928,7 +928,7 @@ $WH.g_getLocaleFromDomain.L = {
cn: 4,
es: 6,
ru: 8,
www: 0
en: 0
};
$WH.g_getDomainFromLocale = function(locale) {
@@ -941,7 +941,7 @@ $WH.g_getDomainFromLocale = function(locale) {
lookup = $WH.g_getDomainFromLocale.L = $WH.g_createReverseLookupJson($WH.g_getLocaleFromDomain.L);
}
return (lookup[locale] ? lookup[locale] : 'www');
return (lookup[locale] ? lookup[locale] : 'en');
}
$WH.g_getIdFromTypeName = function (typeName) {

View File

@@ -13973,7 +13973,7 @@ Listview.templates = {
/** Variables **/
var container = $('<div></div>');
var hidden = (comment.__minPatch && g_getPatchVersion.T[comment.__minPatch] > new Date(comment.date));
comment.locale = (this.id == 'english-comments' ? 'www' : '');
comment.locale = (this.id == 'english-comments' ? 'en' : '');
/** Initialization.. Create base HTML skeleton */
container.append('<table><tr><td class="vote-column">' +