mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-05-21 05:40:47 +00:00
WEB: Fix localization of URL in menus
The lang filter in the template was applied before evaluating the content. Then, the lang filter inside the YAML was evaluated.
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
class: menu-main
|
||||
links:
|
||||
- name: '{#menuMainHome#}'
|
||||
href: '{$baseurl|lang}'
|
||||
href: '{#baseurl#}'
|
||||
- name: '{#menuMainScreenshots#}'
|
||||
href: /screenshots/
|
||||
- name: '{#menuMainForums#}'
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<label for="{$menu->getClass()}">{eval var=$menu->getName()}</label>
|
||||
</dt>
|
||||
{foreach from=$menu->getEntries() key=text item=url}
|
||||
<dd><span class="bullet"></span><a href="{eval var=$url|lang}">{eval var=$text}</a></dd>
|
||||
{eval var=$url assign='url'}
|
||||
<dd><span class="bullet"></span><a href="{$url|lang}">{eval var=$text}</a></dd>
|
||||
{/foreach}
|
||||
</dl>
|
||||
</dl>
|
||||
|
||||
Reference in New Issue
Block a user