diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-07-20 10:27:58 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-07-20 10:27:58 +0200 |
commit | f7a290c11c9b03baaa9acfb4cd777d1c5a48928c (patch) | |
tree | d117a23178f82344552fec36a95fb794ad0d39fc /lib | |
parent | 6f8f09e313d612cef4c0e7e7163497c7e7f8760a (diff) |
Ensure that we have a valid localization handle to call set_fallback on
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 0683564..94a88ba 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -447,7 +447,13 @@ sub startup { } } - my $handle = Travelynx::Helper::Locales->get_handle(@languages); + # en-GB and de-DE serve as fall-back languages, both in case + # we do not have the handle we need (here) and in case a string + # has only been translated to some languages (below). + + my $handle + = Travelynx::Helper::Locales->get_handle( @languages, 'en-GB', + 'de-DE' ); my $first_fallback = Travelynx::Helper::Locales->get_handle('en-GB'); my $second_fallback |