Skip to content

Commit

Permalink
Merge pull request PrestaShop#32720 from jolelievre/translation-tools…
Browse files Browse the repository at this point in the history
…-bundle6

Update TranslationToolsBundle to version 6
  • Loading branch information
kpodemski authored Aug 14, 2023
2 parents 7f20d36 + 755b9da commit 5a18c15
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"prestashop/statssales": "^2",
"prestashop/statssearch": "^2",
"prestashop/statsstock": "^2",
"prestashop/translationtools-bundle": "^5.0",
"prestashop/translationtools-bundle": "^6",
"sensio/framework-extra-bundle": "^5.1",
"smarty/smarty": "^4.3.1",
"soundasleep/html2text": "^2.1.0",
Expand Down
25 changes: 12 additions & 13 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Core/Translation/Storage/Extractor/ThemeExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private function normalize(MessageCatalogue $catalogue): MessageCatalogue
foreach ($catalogue->getMetadata('', '') as $domain => $metadata) {
$newDomain = $this->normalizeDomain($domain);
foreach ($metadata as $key => $value) {
$newCatalogue->setMetadata($key, $value, $newDomain);
$newCatalogue->setMetadata((string) $key, $value, $newDomain);
}
}

Expand Down

0 comments on commit 5a18c15

Please sign in to comment.