Skip to content

Commit

Permalink
possible solution for #7
Browse files Browse the repository at this point in the history
  • Loading branch information
gflohr committed Dec 2, 2022
1 parent 562fc05 commit 3a0ab71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Locale/TextDomain.pm
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ sub __find_domain ($)
my $try_dirs = $bound_dirs{$domain};

if (defined $try_dirs) {
my $found_dir = '';
my $found_dir;

TRYDIR: foreach my $dir (grep { -d $_ } @$try_dirs) {
# Is there a message catalog? We have to search recursively
Expand All @@ -412,7 +412,7 @@ sub __find_domain ($)

# If there was no success, this will fall back to the default search
# directories.
bindtextdomain $domain => abs_path $found_dir;
bindtextdomain $domain => abs_path $found_dir if defined $found_dir;
}

# The search has completed.
Expand Down

0 comments on commit 3a0ab71

Please sign in to comment.