Unverified Commit 6f8f09e3 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Localization fallback: first try en-GB and then de-DE

parent 4141822a
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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;
		}
	);