Added gettext function to text which was “hardcode” before

This commit is contained in:
pezcurrel 2023-12-25 12:44:02 +01:00
parent 22eaeecbdf
commit ca9a248112

View file

@ -202,7 +202,7 @@ function presub() {
<script language="JavaScript">swmetastats();</script>
<h5>Stats relative to instances with accessible list of moderated instances</h5>
<h5>'._('Stats relative to instances with accessible list of moderated instances').'</h5>
<table class="ms_leg_tab"><tr><td class="ms_suspending"></td><td class="ms_leg_td">&nbsp;'._('Instances suspending Threads').': '.fnum($metastats['suspending']['instances'],0,$dlang).' / '.fnum($metastats['known']['instances'],0,$dlang).' ('.fnum($metastats['suspending']['kiperc'],2,$dlang).'%)</td></tr></table>
<table class="ms_leg_tab"><tr><td class="ms_silencing"></td><td class="ms_leg_td">&nbsp;'._('Instances limiting Threads').': '.fnum($metastats['silencing']['instances'],0,$dlang).' / '.fnum($metastats['known']['instances'],0,$dlang).' ('.fnum($metastats['silencing']['kiperc'],2,$dlang).'%)</td></tr></table>
@ -218,7 +218,7 @@ function presub() {
<table class="ms_cont"><tr><td class="ms_suspending_u" style="width:'.$metastats['suspending']['kuperc'].'%"></td><td class="ms_silencing_u" style="width:'.$metastats['silencing']['kuperc'].'%"></td><td class="ms_notsuspsil_u" style="width:'.$metastats['notsuspsil']['kuperc'].'%"></td></tr></table>
<h5>Stats relative to all instances</h5>
<h5>'._('Stats relative to all instances').'</h5>
<table class="ms_leg_tab"><tr><td class="ms_suspending"></td><td class="ms_leg_td">&nbsp;'._('Instances suspending Threads').': '.fnum($metastats['suspending']['instances'],0,$dlang).' / '.fnum($row['tinsts'],0,$dlang).' ('.fnum($metastats['suspending']['iperc'],2,$dlang).'%)</td></tr></table>
<table class="ms_leg_tab"><tr><td class="ms_silencing"></td><td class="ms_leg_td">&nbsp;'._('Instances limiting Threads').': '.fnum($metastats['silencing']['instances'],0,$dlang).' / '.fnum($row['tinsts'],0,$dlang).' ('.fnum($metastats['silencing']['iperc'],2,$dlang).'%)</td></tr></table>