ZF-3617: Standardized locale string is not recognized

Issue Type: Improvement Created: 2008-07-09T09:23:21.000+0000 Last Updated: 2008-09-02T10:39:36.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Michael (michaeld) Assignee: Thomas Weidner (thomas) Tags: - Zend_Locale

Related issues: Attachments:


class Zend_Locale does not recognize standardized locale strings. According to the RFC: see section "2.1. Syntax" " ... Subtags are distinguished and separated from one another by a hyphen ("-", ABNF [RFC4234] %x2D)." a hyphen is the one and only characted to separate language and country parts of the locale.

Reproduce error with:

<pre class="highlight">
  $locale1 = new Zend_Locale('en-US');

result: string(2) "en" bool(false)

expected: en-US en-US


Posted by Thomas Weidner (thomas) on 2008-07-12T03:23:47.000+0000

Please read the documentation about how a locale string has to look like to be recognised.

This RFC is not supported for now. So this is not a bug but a feature request.

Posted by Thomas Weidner (thomas) on 2008-08-28T13:45:38.000+0000

Added support for RFC4646 with r11114

Posted by Wil Sinclair (wil) on 2008-09-02T10:39:36.000+0000

Updating for the 1.6.0 release.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.