Skip to content

Commit

Permalink
Fix translations for currency providers (#2327)
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Aug 10, 2022
1 parent 195ffc0 commit a4148a8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion system/modules/isotope/dca/tl_iso_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@
(
'exclude' => true,
'inputType' => 'select',
'options' => array('ecb.int', 'admin.ch'),
'options' => array('ecb_int', 'admin_ch'),
'reference' => &$GLOBALS['TL_LANG']['tl_iso_config'],
'eval' => array('mandatory'=>true, 'tl_class'=>'w50'),
'save_callback' => array(
Expand Down
6 changes: 3 additions & 3 deletions system/modules/isotope/languages/en/tl_iso_config.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,10 @@
<trans-unit id="tl_iso_config.iwPosition.0">
<source>Position</source>
</trans-unit>
<trans-unit id="tl_iso_config.ecb.int">
<trans-unit id="tl_iso_config.ecb_int">
<source>European Central Bank</source>
</trans-unit>
<trans-unit id="tl_iso_config.admin.ch">
<trans-unit id="tl_iso_config.admin_ch">
<source>Swiss Federal Department of Finance</source>
</trans-unit>
<trans-unit id="tl_iso_config.new.0">
Expand Down Expand Up @@ -436,4 +436,4 @@
</trans-unit>
</body>
</file>
</xliff>
</xliff>
6 changes: 4 additions & 2 deletions system/modules/isotope/library/Isotope/Automator.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public function convertCurrencies($intId = 0)

foreach ($configs as $config) {
switch ($config->currencyProvider) {
case 'ecb.int':
case 'ecb_int':
case 'ecb.int': // Backwards compatibility
$fltCourse = ('EUR' === $config->currency) ? 1 : 0;
$fltCourseOrigin = ('EUR' === $config->currencyOrigin) ? 1 : 0;

Expand Down Expand Up @@ -128,7 +129,8 @@ public function convertCurrencies($intId = 0)
$config->save();
break;

case 'admin.ch':
case 'admin_ch':
case 'admin.ch': // Backwards compatibility
$fltCourse = ('CHF' === $config->currency) ? 1 : 0;
$fltCourseOrigin = ('CHF' === $config->currencyOrigin) ? 1 : 0;

Expand Down

0 comments on commit a4148a8

Please sign in to comment.