agavi/agavi — pull request #1535 by thomasbachem (2014-12-31 14:34:57+00:00)
Title: Add AgaviTranslationManager::getMatchingLocaleIdentifiers() method

Currently ``getLocaleIdentifier()`` is the only method that can be used to match a given identifier against all available locales. It however throws an exception ("Specified ambiguous locale identifier...") for identifiers that match against more than one available locale, e.g. "de" against "de_DE" and "de_AT".

That's why I separated a ``getMatchingLocaleIdentifiers()`` out of the original ``getLocaleIdentifier()`` method.