Template talk:Translate
From Space Engineers Wiki
Revision as of 14:45, 4 April 2020 by Vox Serico (talk | contribs) (→Translation fallback error when ?Translation parameter is missing: new section)
Translation fallback error when ?Translation parameter is missing
This template has a bug: If the translation parameter is missing, it will display the page's name instead of the page's content.
Current code: {{#if: {{#show: {{{1|}}}{{lang}} | ?translation }} | {{#show: {{{1|}}}{{lang}} | ?translation }} | {{{1|}}}{{lang}} }}
Example using {{translate|Property:Volume}}
when {{lang}}
is set to /de
:
Property:Volume/de
Proposed change: {{#if: {{#show: {{{1|}}}{{lang}} | ?translation }} | {{#show: {{{1|}}}{{lang}} | ?translation }} | {{{{{1|}}}{{lang}}}} }}
Solution example using {{translate|Property:Volume}}
when {{lang}}
is set to /de
:
Volumen
--Vox Serico (talk) 14:45, 4 April 2020 (UTC)