Skip to content

Commit

Permalink
[Framework] Rename tv products for main and variants (#3578)
Browse files Browse the repository at this point in the history
Co-authored-by: Michal Vanek <[email protected]>
Co-authored-by: ShopsysBot <[email protected]>
  • Loading branch information
3 people authored Nov 11, 2024
1 parent 5f55848 commit 387b1dd
Show file tree
Hide file tree
Showing 16 changed files with 95 additions and 104 deletions.
36 changes: 18 additions & 18 deletions app/src/DataFixtures/Demo/ProductDataFixture.php

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ private function getExpectedProductDetailWithAllAttributes(): array
'name' => t('47" LG 47LA790V (FHD)', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
],
[
'name' => t('Philips 32PFL4308', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
'name' => t('Television Philips [M]', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
],
[
'name' => t('A4tech mouse X-710BK, OSCAR Game, 2000DPI, black,', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
Expand Down Expand Up @@ -412,7 +412,7 @@ private function getExpectedProductDetailWithAllAttributes(): array
'name' => t('Defender 2.0 SPK-480', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
],
[
'name' => t('24" Philips 32PFL4308', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
'name' => t('24" Philips [V]', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
],
],
'isSellingDenied' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function testReadyCategorySeoMixProductsWithFlag(): void
'orderingMode' => 'PRIORITY',
'defaultOrderingMode' => 'PRIORITY',
'edges' => [
['node' => ['name' => t('Philips 32PFL4308', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $this->getLocaleForFirstDomain())]],
['node' => ['name' => t('Television Philips [M]', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $this->getLocaleForFirstDomain())]],
],
];

Expand All @@ -154,7 +154,7 @@ public function testReadyCategorySeoMixProductsWithParameters(): void
'orderingMode' => 'PRIORITY',
'defaultOrderingMode' => 'PRIORITY',
'edges' => [
['node' => ['name' => t('32" Hyundai 32PFL4400', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $this->getLocaleForFirstDomain())]],
['node' => ['name' => t('Television Hyundai [M]', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $this->getLocaleForFirstDomain())]],
],
];

Expand Down
15 changes: 0 additions & 15 deletions app/tests/FrontendApiBundle/Functional/Product/Flag/FlagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ public function testFlagByUuidFilteredByAnotherFlag(): void
[
'name' => t('32" Philips 32PFL4308', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $this->getFirstDomainLocale()),
],
[
'name' => t('32" Hyundai 32PFL4400', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $this->getFirstDomainLocale()),
],
[
'name' => t('Apple iPhone 5S 64GB, gold', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $this->getFirstDomainLocale()),
],
Expand All @@ -130,18 +127,6 @@ public function testFlagByUuidFilteredByAnotherFlag(): void
[
'name' => t('Book Computer for Dummies Digital Photography II', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $this->getFirstDomainLocale()),
],
[
'name' => t('Book of procedures for dealing with traffic accidents', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $this->getFirstDomainLocale()),
],
[
'name' => t('Canon MG3550', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $this->getFirstDomainLocale()),
],
[
'name' => t('Defender 2.0 SPK-480', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $this->getFirstDomainLocale()),
],
[
'name' => t('DeLonghi ECAM 44.660 B Eletta Plus', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $this->getFirstDomainLocale()),
],
];

ArraySorter::sortArrayAlphabeticallyByValue('name', $products, $this->getLocaleForFirstDomain());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ private function getExpectedProductDetailWithAllAttributes(): array
'name' => t('47" LG 47LA790V (FHD)', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
],
[
'name' => t('Philips 32PFL4308', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
'name' => t('Television Philips [M]', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
],
[
'name' => t('A4tech mouse X-710BK, OSCAR Game, 2000DPI, black,', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
Expand Down Expand Up @@ -256,7 +256,7 @@ private function getExpectedProductDetailWithAllAttributes(): array
'name' => t('Defender 2.0 SPK-480', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
],
[
'name' => t('24" Philips 32PFL4308', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
'name' => t('24" Philips [V]', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
],
],
'isSellingDenied' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ public function testProductMainVariantResultData(): void
'data' => [
'product' => [
'__typename' => 'MainVariant',
'name' => t('Hyundai 22HD44D', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
'name' => t('Television Sencor [M]', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
'shortDescription' => t(
'Television monitor IPS, 16: 9, 5M: 1, 200cd/m2, 5ms GTG, FullHD 1920x1080, DVB-S2/T2/C, 2x HDMI, USB, SCART, 2 x 5W speakers, energ. Class A',
[],
Translator::DATA_FIXTURES_TRANSLATION_DOMAIN,
$firstDomainLocale,
),
'variants' => [
// Variant 51,5" Hyundai 22HD44D is not sellable, so it's not present
// Variant 51,5" Sencor is not sellable, so it's not present
[
'name' => t('60" Hyundai 22HD44D', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
'name' => t('60" Sencor [V]', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
],
],
'variantsCount' => 1,
Expand Down Expand Up @@ -89,15 +89,15 @@ public function testProductVariantResultData(): void
'data' => [
'product' => [
'__typename' => 'Variant',
'name' => t('27" Hyundai T27D590EY', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
'name' => t('27" Hyundai [V]', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
'shortDescription' => t(
'TV LED, 100Hz, diagonal 80cm 100Hz, Full HD 1920 x 1080, DVB-T / C, 2x HDMI, USB, CI +, VGA, SCART, speakers 16W, energy. Class A +',
[],
Translator::DATA_FIXTURES_TRANSLATION_DOMAIN,
$firstDomainLocale,
),
'mainVariant' => [
'name' => t('32" Hyundai 32PFL4400', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
'name' => t('Television Hyundai [M]', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
],
],
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ public function testProductsByCatnums(): void
'name' => t('Canon EH-22L', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
'catalogNumber' => '532564',
], [
'name' => t('Philips 32PFL4308', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
'name' => t('Television Philips [M]', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
'catalogNumber' => '9176544M',
], [
'name' => t('24" Philips 32PFL4308', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
'name' => t('24" Philips [V]', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale),
'catalogNumber' => '9176522',
],
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -688,15 +688,15 @@ public function testGetProductFilterOptionsForSencorSearch()
}';

$minimalPrice = $this->getFormattedMoneyAmountConvertedToDomainDefaultCurrency('3499');
$maximalPrice = $this->getFormattedMoneyAmountConvertedToDomainDefaultCurrency('3499');
$maximalPrice = $this->getFormattedMoneyAmountConvertedToDomainDefaultCurrency('7258.79');

$expectedResult = '{
"data": {
"productsSearch": {
"productFilterOptions": {
"minimalPrice": "' . $minimalPrice . '",
"maximalPrice": "' . $maximalPrice . '",
"inStock": 2,
"inStock": 3,
"flags": [
{
"count": 2,
Expand All @@ -707,7 +707,7 @@ public function testGetProductFilterOptionsForSencorSearch()
],
"brands": [
{
"count": 2,
"count": 3,
"brand": {
"name": "Sencor"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ public function testPromotedProductsWithName(): void
$productsExpected = [
['name' => t('22" Sencor SLE 22F46DM4 HELLO KITTY', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale)],
['name' => t('32" Philips 32PFL4308', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale)],
['name' => t('Philips 32PFL4308', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale)],
['name' => t('Television Philips [M]', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale)],
['name' => t('47" LG 47LA790V (FHD)', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale)],
['name' => t('A4tech mouse X-710BK, OSCAR Game, 2000DPI, black,', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale)],
['name' => t('Apple iPhone 5S 64GB, gold', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale)],
['name' => t('Canon EH-22L', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale)],
['name' => t('Canon EOS 700D', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale)],
['name' => t('Canon MG3550', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale)],
['name' => t('Genius repro SP-M120 black', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale)],
['name' => t('24" Philips 32PFL4308', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale)],
['name' => t('24" Philips [V]', [], Translator::DATA_FIXTURES_TRANSLATION_DOMAIN, $firstDomainLocale)],
];

$graphQlType = 'promotedProducts';
Expand Down
65 changes: 34 additions & 31 deletions app/translations/dataFixtures.cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ msgstr "220 x 250 x 9 mm"
msgid "24\""
msgstr ""

msgid "24\" Philips 32PFL4308"
msgstr ""
msgid "24\" Philips CRT [V]"
msgstr "24\" Philips CRT [V]"

msgid "24\" Philips CRT 32PFL4308"
msgstr ""
msgid "24\" Philips [V]"
msgstr "24\" Philips [V]"

msgid "240 x 205 x 15 mm"
msgstr "240 x 205 x 15 mm, klazeta s aktivnim uhlikem"
Expand All @@ -106,15 +106,18 @@ msgstr "255 x 255 x 15"
msgid "27\""
msgstr "27\""

msgid "27\" Hyundai PLASMA T27D590EY"
msgstr "27\" Hyundai PLASMA T27D590EY"
msgid "27\" Hyundai PLASMA [V]"
msgstr "27\" Hyundai PLASMA [V]"

msgid "27\" Hyundai T27D590EY"
msgstr "27\" Hyundai T27D590EY"

msgid "27\" Hyundai T27D590EZ"
msgstr "27\" Hyundai T27D590EZ"

msgid "27\" Hyundai [V]"
msgstr "27\" Hyundai [V]"

msgid "275 kWh/year"
msgstr "275 kWh/rok"

Expand All @@ -139,9 +142,6 @@ msgstr "310 x 285 x 15 mm"
msgid "310 x 480 x 10"
msgstr "310 x 480 x 10"

msgid "32\" Hyundai 32PFL4400"
msgstr "32\" Hyundai 32PFL4400"

msgid "32\" Philips 32PFL4308"
msgstr "32\" Philips 32PFL4308"

Expand All @@ -154,17 +154,17 @@ msgstr ""
msgid "36\""
msgstr "36\""

msgid "36\" Hyundai 32PFL4308"
msgstr "36\" Hyundai 32PFL4360"
msgid "36\" Hyundai PLASMA [V]"
msgstr "36\" Hyundai PLASMA [V]"

msgid "36\" Hyundai PLASMA 32PFL4308"
msgstr ""
msgid "36\" Hyundai [V]"
msgstr "36\" Hyundai [V]"

msgid "36\" Philips 32PFL4308"
msgstr "36\" Philips 32PFL4308"
msgid "36\" Philips CRT [V]"
msgstr "36\" Philips CRT [V]"

msgid "36\" Philips CRT 32PFL4308"
msgstr ""
msgid "36\" Philips [V]"
msgstr "36\" Philips [V]"

msgid "3“"
msgstr "3“"
Expand Down Expand Up @@ -229,17 +229,17 @@ msgstr "50"
msgid "51,5\""
msgstr ""

msgid "51,5\" Hyundai 22HD44D"
msgstr "51,5\" Hyundai 22HD44D"
msgid "51,5\" Sencor [V]"
msgstr "51,5\" Sencor [V]"

msgid "54\""
msgstr "54\""

msgid "54\" Philips 32PFL4308"
msgstr "54\" Philips 32PFL4308"
msgid "54\" Philips CRT [V]"
msgstr "54\" Philips CRT [V]"

msgid "54\" Philips CRT 32PFL4308"
msgstr ""
msgid "54\" Philips [V]"
msgstr "54\" Philips [V]"

msgid "55"
msgstr "55"
Expand All @@ -250,8 +250,8 @@ msgstr "5“"
msgid "60\""
msgstr "60\""

msgid "60\" Hyundai 22HD44D"
msgstr "60\" Hyundai 22HD44D"
msgid "60\" Sencor [V]"
msgstr "60\" Sencor [V]"

msgid "600 ml"
msgstr "600 ml"
Expand Down Expand Up @@ -1048,9 +1048,6 @@ msgstr "Hadice VP-9241"
msgid "Hose VP-9310"
msgstr "Hadice VP-9310"

msgid "Hyundai 22HD44D"
msgstr "Hyundai 22HD44D"

msgid "Iconic Design"
msgstr "Ikonický design"

Expand Down Expand Up @@ -1390,9 +1387,6 @@ msgstr "Export osobních údajů - {domain}"
msgid "Personal information overview - {domain}"
msgstr "Přehled osobních údajů - {domain}"

msgid "Philips 32PFL4308"
msgstr "Philips 32PFL4308"

msgid "Photographer's dream. Main camera with 13-megapixel front camera and a 5 megapixel guarantee photos in high definition on each side. Thanks to the built-in tools for editing and sharing can capture moving images in HD and combine the results to show from multiple angles."
msgstr "Fotografův sen. Hlavní fotoaparát s 13 megapixely a přední fotoaparát s 5 megapixely zaručují fotky ve vysokém rozlišení z každé strany. Díky vestavěným nástrojům pro úpravu a sdílení můžete zachytit pohyblivé obrázky v HD kvalitě a kombinovat výsledky do zobrazení z více úhlů."

Expand Down Expand Up @@ -1732,6 +1726,9 @@ msgstr "Trubka teleskopická VP918x VP802x"
msgid "Television"
msgstr "Televize"

msgid "Television Hyundai [M]"
msgstr "Televize Hyundai [M]"

msgid "Television LED, 55 cm diagonal, 1920x1080 Full HD, DVB-T MPEG4 tuner with USB recording and playback"
msgstr "Sencor SLE 22F46DM4 Hello Kitty je televizor LED pro ty, kteří hledají pro své děti něco, co mají rádi a co by je potěšilo . Televizor s motivy populární Hello Kity a provedením v růžové barvě vaše dítko určitě zaujme!"

Expand All @@ -1747,12 +1744,18 @@ msgstr "Televize LED, úhlopříčka 82 cm, 1366x768, DVB-T/C MPEG4 tuner, 2x HD
msgid "Television LED, diagonal 82 cm, 1366x768, DVB-T/C MPEG4 tuner, 2x HDMI, USB, SCART, VGA, headphone jack, USB/HDD recording, hotel mode, Energ. Class A"
msgstr "Televize LED, úhlopříčka 82 cm, 1366x768, DVB-T/C MPEG4 tuner, 2x HDMI, USB, SCART, VGA, sluchátkový výstup, USB/HDD nahrávání, hotelový mód, energ. třída B"

msgid "Television Philips [M]"
msgstr "Televize Philips [M]"

msgid "Television SMART 3D LED, 189 cm diagonal, CMR 1000 4K Ultra HD 3840x2160, DVB-S2 / T2 / C, 4x HDMI, 3x USB, CI +, LAN, WiFi, DLNA, MHL, HbbTV, Tizen OS, energ. Class A"
msgstr "Díky technologii Color Brilliance uvidíte všechno přesně tak, jak to příroda zamýšlela. Televizor podává barevné odstíny s ohromující přesností – jako byste byli součástí děje. Všechno, co vidíte na obrazovce, je jasné a syté. Barvy ožívají v nádherné intenzitě a obraz vypadá přirozeně a věrně. Nyní se můžete ponořit do mimořádně živého obrazu UHD, který je skutečně brilantní."

msgid "Television SMART 3D LED, 189 cm diagonal."
msgstr "Díky technologii Color Brilliance uvidíte všechno přesně tak, jak to příroda zamýšlela."

msgid "Television Sencor [M]"
msgstr "Televize Sencor [M]"

msgid "Television monitor IPS, 16: 9, 5M: 1, 200cd/m2, 5ms GTG, FullHD 1920x1080"
msgstr "LED monitor IPS, 5M:1, 250cd/m2, 5ms GTG, FullHD 1920x1080, DVI, D-Sub, VESA 75x75, matný"

Expand Down
Loading

0 comments on commit 387b1dd

Please sign in to comment.