View Issue Details

IDProjectCategoryView StatusLast Update
0007669OXID eShop (all versions)8. --- Twig engine ---public2024-07-04 10:31
ReporterbYemma Assigned To 
Status acknowledgedResolutionopen 
Product Version7.1.0 
Summary0007669: Translations with args = 0 does not replace placeholder
DescriptionIn the checkout is the VAT info: {{ translate({ ident: "VAT_PLUS_PERCENT_AMOUNT", args: key }) }}

When the VAT rate is 0 (e.g. Switzerland), the placeholder is not replaced and the result is "plus %s%% tax, amount".
Steps To ReproduceGet to checkout and create a account to country "Switzerland" (or change an existing one to this country with zero VAT).
Now you can see in the right summary for VAT info that the string placeholder is not replaced.
Additional InformationThe reason why it's not replaced is the check in the Twig Template Adapter whether $args is true.
Class: OxidEsales\EshopCommunity\Internal\Transition\Adapter\TemplateLogic\TranslateFunctionLogic
Line 100 in the method "assignArgumentsToTranslation".
TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined