[BUGFIX] Fix translation fallback
authorXavier Perseguers <xavier@typo3.org>
Fri, 31 Aug 2012 12:37:10 +0000 (14:37 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 19 Sep 2012 09:37:18 +0000 (11:37 +0200)
commitc39d626123816fc6ec811f35c1c659fe435199d9
tree03a10ebb8db9634b96c63a8bcaa259cd273e16c3
parent291c04ac928fd3828e53eb015866e3accccccbdf
[BUGFIX] Fix translation fallback

If the target for the translation does not exist, we have to
fallback to the default language, which is guaranteed to have
a target.

Change-Id: I7c4055999df1211a5f88bf3eeadc98af568372ea
Fixes: #36905
Fixes: #39569
Releases: 6.0, 4.7, 4.6
Reviewed-on: http://review.typo3.org/13039
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/extbase/Classes/Utility/LocalizationUtility.php
typo3/sysext/extbase/Tests/Unit/Utility/LocalizationUtilityTest.php