Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ protected function getFieldFormat()

$attribute = $this->getFilter()->getAttributeModel();

$format['pattern'] = (string) $attribute->getDisplayPattern();
$format['pattern'] = str_replace('%%', '%', (string) $attribute->getDisplayPattern());
$format['precision'] = (int) $attribute->getDisplayPrecision();
$format['requiredPrecision'] = (int) $attribute->getDisplayPrecision();
$format['integerRequired'] = (int) $attribute->getDisplayPrecision() > 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ private function addDisplayFields(Fieldset $fieldset)
[
'name' => 'display_pattern',
'label' => __('Display pattern'),
'note' => __('A pattern like %s UNIT where %s is the value. Eg : $%s => $20 or %s € => 20 €'),
'note' => __('A pattern like %s UNIT where %s is the value. Eg : $%s => $20 or %s € => 20 € or %s%% => 20%'),
]
);

Expand Down
2 changes: 1 addition & 1 deletion src/module-elasticsuite-catalog/i18n/de_DE.csv
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"Sort products without value when sorting DESC","Produkte ohne Wert beim Sortieren von DESC sortieren"
"Slider Display Configuration","Slider Anzeigeeinstellungen"
"Display pattern","Anzeigemuster"
"A pattern like %s UNIT where %s is the value. Eg : $%s => $20 or %s € => 20 €","Ein Muster wie %s UNIT bei dem %s der Wert ist. z.B.: $%s => $20 oder %s € => 20 €"
"A pattern like %s UNIT where %s is the value. Eg : $%s => $20 or %s € => 20 € or %s%% => 20%","Ein Muster wie %s UNIT bei dem %s der Wert ist. z.B.: $%s => $20 oder %s € => 20 € oder %s%% => 20%"
"Display Precision","Darstellungsgenauigkeit"
"The number of digits to use for precision when displaying.","Die Anzahl der Ziffern zur Verfeinerung der Ergebnisse."
"No exact results found for: <b>'%1'</b>. The displayed items are the closest matches.","Wir konnten für: <b>'%1'</b> keine exakten Ergebnisse finden. Die gezeigten Elemente entsprechen den besten Übereinstimmungen."
Expand Down
2 changes: 1 addition & 1 deletion src/module-elasticsuite-catalog/i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Last,Last
"Sort products without value when sorting DESC","Sort products without value when sorting DESC"
"Slider Display Configuration","Slider Display Configuration"
"Display pattern","Display pattern"
"A pattern like %s UNIT where %s is the value. Eg : $%s => $20 or %s € => 20 €","A pattern like %s UNIT where %s is the value. Eg : $%s => $20 or %s € => 20 €"
"A pattern like %s UNIT where %s is the value. Eg : $%s => $20 or %s € => 20 € or %s%% => 20%","A pattern like %s UNIT where %s is the value. Eg : $%s => $20 or %s € => 20 € or %s%% => 20%"
"Display Precision","Display Precision"
"The number of digits to use for precision when displaying.","The number of digits to use for precision when displaying."
"No exact results found for: <b>'%1'</b>. The displayed items are the closest matches.","No exact results found for: <b>'%1'</b>. The displayed items are the closest matches."
Expand Down
2 changes: 1 addition & 1 deletion src/module-elasticsuite-catalog/i18n/fr_FR.csv
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Save,Sauvegarder
"Sort products without value when sorting DESC","Trier les produits sans valeurs lors d'un tri DESC"
"Slider Display Configuration","Slider Display Configuration"
"Display pattern","Display pattern"
"A pattern like %s UNIT where %s is the value. Eg : $%s => $20 or %s € => 20 €","A pattern like %s UNIT where %s is the value. Eg : $%s => $20 or %s € => 20 €"
"A pattern like %s UNIT where %s is the value. Eg : $%s => $20 or %s € => 20 € or %s%% => 20%","Un motif comme %s UNIT %s est la valeur. Exemple: $%s => $20 ou %s € => 20 € ou %s%% => 20%"
"Display Precision","Display Precision"
"The number of digits to use for precision when displaying.","The number of digits to use for precision when displaying."
"No exact results found for: <b>'%1'</b>. The displayed items are the closest matches.","Aucun résultat exact pour la recherche: <b>'%1'</b>. Nous vous proposons des résultats approchants."
Expand Down
2 changes: 1 addition & 1 deletion src/module-elasticsuite-catalog/i18n/nl_NL.csv
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"Sort products without value when sorting DESC","Sorteer producten zonder waarde bij het sorteren van DESC"
"Slider Display Configuration","Slider weergaveconfiguratie"
"Display pattern","Patroon weergeven"
"A pattern like %s UNIT where %s is the value. Eg : $%s => $20 or %s € => 20 €","Een patroon zoals %s UNIT waar %s de waarde is. Bijvoorbeeld: $%s => $20 of %s € => 20 €"
"A pattern like %s UNIT where %s is the value. Eg : $%s => $20 or %s € => 20 € or %s%% => 20%","Een patroon zoals %s UNIT waar %s de waarde is. Bijvoorbeeld: $%s => $20 of %s € => 20 € of %s%% => 20%"
"Display Precision","Toon Precisie"
"The number of digits to use for precision when displaying.","Het aantal te gebruiken cijfers voor precisie bij weergave."
"No exact results found for: <b>'%1'</b>. The displayed items are the closest matches.","Geen exacte resultaten gevonden: <b>'%1'</b>. De weergegeven items zijn de dichtstbijzijnde matches."
Expand Down
Loading