Task #36840

Improve exception for wrong locales

Added by Robert Lemke over 7 years ago. Updated about 7 years ago.

Status:
Accepted
Priority:
Should have
Category:
I18n
Target version:
-
Start date:
2012-05-04
Due date:
% Done:

0%

Sprint:
PHP Version:
Has patch:
No
Complexity:

Description

I created a locale with the identifier "en_EN". I took me a while to realize that this is an invalid locale of course, as there is no country identified by "EN". The error message you'd currently see on trying this is the following:

#1328879703: The path "resource://TYPO3.FLOW3/Private/I18n/CLDR/Sources/main/en_EN.xml" does not point to an existing and accessible XML file.

We could improve this by throwing a more specific exception telling what is actually wrong - "EN is not a valid region code according to ISO xyz / the CLDR".

History

#1 Updated by Karsten Dambekalns over 7 years ago

  • Category set to I18n
  • Status changed from New to Accepted
  • Target version set to 1.1

#2 Updated by Karsten Dambekalns over 7 years ago

  • Target version changed from 1.1 to 1.1 RC1

#3 Updated by Karsten Dambekalns about 7 years ago

  • Target version deleted (1.1 RC1)

Also available in: Atom PDF