Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
Don't translate sysconfig dropdowns coming from the file system.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgruner committed Mar 30, 2016
1 parent dcd3e69 commit 4764677
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Kernel/Modules/AdminSysConfig.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1188,12 +1188,18 @@ sub ListConfigItem {
$Default = $Option->{Item}->[$Index]->{Content};
}
}
my $Translate = 1;
if ( $Item->{Option}->[1]->{Location} ) {
# Entries coming from the file system should not be translated.
$Translate = 0;
}
my $PulldownMenu = $LayoutObject->BuildSelection(
Data => \%Hash,
SelectedID => $Option->{SelectedID},
Name => $ItemHash{Name},
Disabled => $ReadOnlyAttribute ? 1 : 0,
Class => 'Modernize',
Data => \%Hash,
SelectedID => $Option->{SelectedID},
Name => $ItemHash{Name},
Disabled => $ReadOnlyAttribute ? 1 : 0,
Class => 'Modernize',
Translation => $Translate,
);
$LayoutObject->Block(
Name => 'ConfigElementSelect',
Expand Down

0 comments on commit 4764677

Please sign in to comment.