Profiler/Localization

* support non-latin realm names for guilds and arena teams also
This commit is contained in:
Sarjuuk
2022-02-16 04:17:40 +01:00
parent 01a9744ba7
commit a24e8594fb
4 changed files with 8 additions and 8 deletions

View File

@@ -1072,7 +1072,7 @@ function Profiler() {
$WH.ae(_divLine2, _);
_ = $WH.ce('a');
_.href = '?guild=' + _profile.region[0] + '.' + _profile.realm[0] + '.' + g_urlize(_profile.guild);
_.href = '?guild=' + _profile.region[0] + '.' + _profile.realm[0] + '.' + g_urlize(_profile.guild, true);
$WH.ae(_, $WH.ct(_profile.guild));
$WH.ae(_divLine2, _);
@@ -1562,7 +1562,7 @@ function Profiler() {
$WH.ae(div, $WH.ct($WH.sprintfa(LANG.pr_qf_xvxteam, i)));
a = $WH.ce('a');
a.href = '?arena-team=' + _profile.region[0] + '.' + _profile.realm[0] + '.' + g_urlize(_profile.arenateams[i]);
a.href = '?arena-team=' + _profile.region[0] + '.' + _profile.realm[0] + '.' + g_urlize(_profile.arenateams[i], true);
$WH.ae(a, $WH.ct(_profile.arenateams[i]));
$WH.ae(div, a);

View File

@@ -15730,7 +15730,7 @@ Listview.templates = {
if (profile.guild && typeof(profile.guild) != 'number') {
var a = $WH.ce('a');
a.className = 'q1';
a.href = '?guild=' + profile.region + '.' + profile.realm + '.' + g_urlize(profile.guild);
a.href = '?guild=' + profile.region + '.' + profile.realm + '.' + g_urlize(profile.guild, true);
$WH.ae(a, $WH.ct(profile.guild));
$WH.ae(d, $WH.ct('<'));
$WH.ae(d, a);
@@ -16122,7 +16122,7 @@ Listview.templates = {
var a = $WH.ce('a');
a.className = 'q1';
a.href = '?guild=' + profile.region + '.' + profile.realm + '.' + g_urlize(profile.guild);
a.href = '?guild=' + profile.region + '.' + profile.realm + '.' + g_urlize(profile.guild, true);
$WH.ae(a, $WH.ct(profile.guild));
$WH.ae(td, a);
},
@@ -16134,10 +16134,10 @@ Listview.templates = {
getItemLink: function(profile) {
if (profile.size !== undefined) {
return '?arena-team=' + profile.region + '.' + profile.realm + '.' + g_urlize(profile.name);
return '?arena-team=' + profile.region + '.' + profile.realm + '.' + g_urlize(profile.name, true);
}
else if (profile.members !== undefined) {
return '?guild=' + profile.region + '.' + profile.realm + '.' + g_urlize(profile.name);
return '?guild=' + profile.region + '.' + profile.realm + '.' + g_urlize(profile.name, true);
}
else {
return g_getProfileUrl(profile);