Skip to content

Node.js based forum software built for the modern web

fix: translate name of custom fields like [[user:website]] [[user:location]] etc

Barış Soner Uşaklı99397176d643
diff --git a/src/views/admin/manage/users/custom-fields.tpl b/src/views/admin/manage/users/custom-fields.tpl
index 22c2a76b15..cbbfc59fbf 100644
--- a/src/views/admin/manage/users/custom-fields.tpl
+++ b/src/views/admin/manage/users/custom-fields.tpl
@@ -33,7 +33,7 @@
<a href="#" component="sort/handle" class="btn btn-light btn-sm d-none d-md-block ui-sortable-handle" style="cursor:grab;"><i class="fa fa-arrows-up-down text-muted"></i></a>
</td>
<td class="text-nowrap">{./key}</td>
- <td class="text-nowrap">{{{ if ./icon }}}<i class="text-muted fa-fw {./icon}"></i> {{{ end }}}{./name}</td>
+ <td class="text-nowrap">{{{ if ./icon }}}<i class="text-muted fa-fw {./icon}"></i> {{{ end }}}{{tx(./name)}}</td>
<td>
{./type}
{{{ if ((./type == "select") || (./type == "select-multi")) }}}