Hi, I'm having some trouble using the old translate tags in combination with razor in two scenarios.
Scenario 1
The following piece of code are from a productlist template:
59: @if (Pageview.Area.ID != 10) { 60: <strong><!--@Translate(ProduktlisteProduktPris, "Pris fra", global)--></strong> @product.GetString("Ecom:Product.Price.PriceWithVATFormatted") <!--@Translate(MurstenProduktlisteProduktStk, "pr. stk.", global)--> 61: }
generates the following error:
Line 60: Identifier expected Line 60: ; expected
and the outputted code looks like this:
59: @if (Pageview.Area.ID != 10) { 60: <strong>Pris fra</strong> @product.GetString("Ecom:Product.Price.PriceWithVATFormatted") pr. stk. 61: }
If I change "@if (Pageview.Area.ID != 10) {" to "<!--@If(Global:Area.ID != 10)-->" or if i delete the last "<!--@Translate()-->" tag in line 60 the page doesn't generate an error anymore.
Scenario 2
The following piece of code are from a product template:
638: @if (Pageview.Area.ID == 1) { 639: <!--@Translate(ReferencegalleriTekstDel1, "Kom ud og se", global)--> <span>@GetString("Ecom:Product.Number")</span><br /> 640: <a href="mailto:john@email.dk?subject=@GetString("Ecom:Product.Number") - forespørgsel på produkt&body=Jeg ønsker at få tilsendt materiale omkring ovenstående produkt."><!--@Translate(ReferencegalleriLink, "Spørg på referenceadresser", global)--></a> 641: }
generates the following error:
Line 639: ; expected Line 639: ; expected
and the outputted code looks like this:
638: @if (Pageview.Area.ID != 10) { 639: Kom ud og se <span>@GetString("Ecom:Product.Number")</span><br /> 640: <a href="mailto:john@email.dk?subject=@GetString("Ecom:Product.Number") - forespørgsel på produkt&body=Jeg ønsker at få tilsendt materiale omkring ovenstående produkt.">Spørg på referenceadresser</a> 641: }
Again if I change "@if (Pageview.Area.ID == 1) {" to "<!--@If(Global:Area.ID == 1)-->" or if I delete the the "<!--@Translate()-->" tag in line 639 the page doesn't generate an error anymore.
The solution is running version 8.4.1.9
What am I missing/not seeing - Any suggestions?