Skip to content

Commit 58b1076

Browse files
committed
MAGETWO-34363: Pull request processing
1 parent 585b8d9 commit 58b1076

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

app/code/Magento/Translation/Model/Js/Config.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
*/
1414
class Config extends FrameworkJsConfig
1515
{
16+
/**
17+
* Both translation strategies are disabled
18+
*/
19+
const NO_TRANSLATION = 'none';
20+
1621
/**
1722
* Strategy when all js files are translated while publishing
1823
*/

app/code/Magento/Translation/Model/Js/Config/Source/Strategy.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class Strategy implements \Magento\Framework\Option\ArrayInterface
1515
public function toOptionArray()
1616
{
1717
return [
18+
['label' => __('None (Translation is disabled)'), 'value' => Config::NO_TRANSLATION],
1819
['label' => __('Dictionary (Translation on frontend side)'), 'value' => Config::DICTIONARY_STRATEGY],
1920
['label' => __('Embedded (Translation on backend side)'), 'value' => Config::EMBEDDED_STRATEGY]
2021
];

app/code/Magento/Translation/Test/Unit/Model/Js/Config/Source/StrategyTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ protected function setUp()
2424
public function testToOptionArray()
2525
{
2626
$expected = [
27+
['label' => __('None (Translation is disabled)'), 'value' => Config::NO_TRANSLATION],
2728
['label' => 'Dictionary (Translation on frontend side)', 'value' => Config::DICTIONARY_STRATEGY],
2829
['label' => 'Embedded (Translation on backend side)', 'value' => Config::EMBEDDED_STRATEGY]
2930
];

app/code/Magento/Translation/etc/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</invalid_caches>
1717
</translate_inline>
1818
<js>
19-
<translate_strategy>dictionary</translate_strategy>
19+
<translate_strategy>none</translate_strategy>
2020
</js>
2121
</dev>
2222
</default>

0 commit comments

Comments
 (0)