Bug #37316

Use findBestMatchingLocale instead of getDefaultLocale?

Added by Carsten Bleicker about 1 year ago.

Status:New Start date:2012-05-20
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:Validation
Target version:-
PHP Version: Complexity:
Has patch:No FLOW3 version affected:FLOW3 1.1.0 beta 1
Votes: 0

Description

Shouldnt the getDefaultLocale() replaced by findBestMatchingLocale() to
use also the fallbacks etc? (Line 62)

from: $locale = $this->localizationService->getConfiguration()->getDefaultLocale();
to: $locale = $this->localizationService->findBestMatchingLocale();

Kind regards
Carsten

NumberValidator.php (3.5 kB) Carsten Bleicker, 2012-05-20 09:35

Also available in: Atom PDF