(test.html)
<localize key="MyPlugin_TestWithParam" >Test with param</localize>
---------------
(it-IT.xml)
<key alias="TestWithParam"><![CDATA[Test con un parametro]]></key>
Now I need to add a param in the localized CDATA text like this (or similar):
<key alias="TestWithParam"><![CDATA[Test con un parametro {0}]]></key>
Is this the right way to set a parameter ({0}) inside language resource file?
How do I change the <localize> html tag to valorize the {0} field?
Localize with params
Hi to all,
there is a way to use param with localized key?
Example:
Now I need to add a param in the localized CDATA text like this (or similar):
Thanks
Hi Adriano,
So, you have a few ways:
@(string.Format(umbraco.GetDictionaryValue("[key]"), [params]))
Regards, Vitaly
Thank you Vitaly, but I would to do it with the
Do you know if there is a way to do that?
is working on a reply...