A function which has an object and a locale as parameter.
- The object holds an array of translations
->getTranslations()
and->getTranslation($locale)
are available - Locale is a dead simple string of 2 chars
- The function has access to an array of locales ordered by priority
- The locale parameter should be priority #1, otherwise the array of priorities is used to get the correct locale.
class Testing {