Skip to content

Commit

Permalink
Merge pull request #57 from AxelDeneu/master
Browse files Browse the repository at this point in the history
Solving non numerical value error and adding french translations
  • Loading branch information
bitbager authored May 20, 2019
2 parents 1a012d1 + 9886e65 commit c30ffce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryBuilder/HasPriceBetweenQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ private function resolveBasePrice(string $price): int

private function convertFromString(string $price): int
{
return (int) round($price * 100, 2);
return (int) round((int) $price * 100, 2);
}
}
13 changes: 13 additions & 0 deletions src/Resources/translations/messages.fr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
bitbag_sylius_elasticsearch_plugin:
ui:
min_price: Prix min
max_price: Prix max
filter_results: Filtrer les résultats
filter: Filtrer
sort: Trier par
bestsellers: Meilleures ventes
newest: Plus récent en premier
oldest: Plus ancien en primier
most_expensive: Plus cher en premier
cheapest: Moins cher en primier
per_page: Nombre de résultats

0 comments on commit c30ffce

Please sign in to comment.