diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-07-19 08:55:47 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-07-19 08:55:47 +0200 |
commit | 6f8f09e313d612cef4c0e7e7163497c7e7f8760a (patch) | |
tree | f2027b03507901f0a8c2a008a94491df6837e0d8 | |
parent | 4141822af6254ca8233f1bc2fa55db48f3019cc3 (diff) |
Localization fallback: first try en-GB and then de-DE
-rwxr-xr-x | lib/Travelynx.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 2ed573d..0683564 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -448,11 +448,15 @@ sub startup { } my $handle = Travelynx::Helper::Locales->get_handle(@languages); - my $fallback_handle + my $first_fallback + = Travelynx::Helper::Locales->get_handle('en-GB'); + my $second_fallback = Travelynx::Helper::Locales->get_handle('de-DE'); $handle->fail_with( - sub { $fallback_handle->maketext( @_[ 1 .. $#_ ] ) } ); + sub { $first_fallback->maketext( @_[ 1 .. $#_ ] ) } ); + $first_fallback->fail_with( + sub { $second_fallback->maketext( @_[ 1 .. $#_ ] ) } ); return $handle; } ); |