Skip to content

Commit

Permalink
Issue #205: no need to use Lingua::Traslit with indirect object syntax
Browse files Browse the repository at this point in the history
Indirect object syntax is just mentioned in the documentation. But
the regular constructor syntax works just as well.
  • Loading branch information
bschmalhofer committed Nov 11, 2023
1 parent dccf124 commit 35d4706
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ sub HandleLanguage {
},
);
if ( $TranslitLanguagesMap{$Language} ) {
$TranslitObject = new Lingua::Translit( $TranslitLanguagesMap{$Language}->{TranslitTable} ); ## no critic qw(Objects::ProhibitIndirectSyntax)
$TranslitObject = Lingua::Translit->new( $TranslitLanguagesMap{$Language}->{TranslitTable} );
$TranslitLanguageCoreObject = Kernel::Language->new(
UserLanguage => $TranslitLanguagesMap{$Language}->{SourceLanguage},
TranslationFile => 1,
Expand Down

0 comments on commit 35d4706

Please sign in to comment.