Localization: remove search-group and move strings to main

Profiler: implemented frontpage (?profiler)
Announcements: parse for STATIC_URL and HOST_URL
This commit is contained in:
Sarjuuk
2014-07-24 20:37:30 +02:00
parent 6acee41e3d
commit 48527b0b68
15 changed files with 172 additions and 53 deletions

View File

@@ -586,7 +586,7 @@ var PageTemplate = new function()
locale.description,
g_host + '?locale=' + locale.id, // sarjuuk: edited for unsupported subdomains # linkBefore + locale.domain + linkAfter
null, // more custom
{rel: linkBefore + linkAfter + " domain=" + locale.domain} // also custom
{rel: location.href + " domain=" + locale.domain} // also custom
];
if(locale.id == localeId)

View File

@@ -638,7 +638,7 @@ function pr_DirectLookup(form, browse)
if(browse)
{
if(region.val() || server.val() || name.val())
location.href = '/profiles' + (region.val() ? '=' + region.val() + (server.val() ? '.' + g_urlize(server.val(), false, true) : '') : '') + (name.val() ? '?filter=na=' + name.val() + ';ex=on' : '');
location.href = '?profiles' + (region.val() ? '=' + region.val() + (server.val() ? '.' + g_urlize(server.val(), false, true) : '') : '') + (name.val() ? '?filter=na=' + name.val() + ';ex=on' : '');
return false;
}
@@ -673,7 +673,7 @@ function pr_DirectLookup(form, browse)
if(region.val() && server.val())
usePath = false;
location.href = (usePath ? menuItem[2].replace('profiles', 'profile') : '/profile=' + region.val() + '.' + g_urlize(server.val(), false, true)) + '.' + g_cleanCharacterName(name.val());
location.href = (usePath ? menuItem[2].replace('profiles', 'profile') : '?profile=' + region.val() + '.' + g_urlize(server.val(), false, true)) + '.' + g_cleanCharacterName(name.val());
return false;
}