From 18cb0fe5b5341d7eff2a8216db8db65610a29646 Mon Sep 17 00:00:00 2001 From: Maxim Leshchenko Date: Fri, 17 Dec 2021 17:28:21 +0200 Subject: [PATCH] Global: Allow localization of custom links in the menu To do this, add the "@" symbol to the beginning of the link name --- Web/Presenters/templates/@layout.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Presenters/templates/@layout.xml b/Web/Presenters/templates/@layout.xml index 5a205eac..4a681113 100644 --- a/Web/Presenters/templates/@layout.xml +++ b/Web/Presenters/templates/@layout.xml @@ -187,7 +187,7 @@ n:foreach="OPENVK_ROOT_CONF['openvk']['preferences']['menu']['links'] as $menuItem" href="{$menuItem['url']}" target="_blank" - class="link">{$menuItem["name"]} + class="link">{strpos($menuItem["name"], "@") === 0 ? tr(substr($menuItem["name"], 1)) : $menuItem["name"]}