ZF-8030: Missing locale file for "gl_GL"

Issue Type: Bug Created: 2009-10-07T12:40:21.000+0000 Last Updated: 2009-10-12T12:25:30.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Jan Pieper (jpieper) Assignee: Thomas Weidner (thomas) Tags: - Zend_Locale

Related issues: Attachments:


Our application is sometimes causing following exception:

{quote}Zend_Locale_Exception Missing locale file '/usr/share/php/Zend/Locale/Data/gl_GL.xml' for 'gl_GL' locale.{quote}

Is it possible to add it?


Posted by Thomas Weidner (thomas) on 2009-10-07T13:05:26.000+0000

When you want to use galician then use "gl".

When you want to use galician within spain (where this dialect is widely spoken, then use "gl_ES".

But when you want ot use galician within the region Grenlandia, then you will find no support, because the people in grenlandia don't speak galician.

Posted by Jan Pieper (jpieper) on 2009-10-12T01:44:30.000+0000

At least one of our users is using "gl_GL" as browser locale. And because we are using locale auto-detection we are getting "gl_GL" as locale and this is causing the exception.

<pre class="highlight">#0 /opt/phplibs/Zend/Locale/Data.php(216): Zend_Locale_Data::_findRoute('gl_GL', '/ldml/localeDis...', 'type', false, Array)
#1 /opt/phplibs/Zend/Locale/Data.php(859): Zend_Locale_Data::_getFile('gl_GL', '/ldml/localeDis...', 'type')
#2 /opt/phplibs/Zend/Locale.php(594): Zend_Locale_Data::getContent('gl_GL', 'country', 'AD')
#3 /opt/phplibs/Zend/Locale.php(635): Zend_Locale::getTranslation('AD', 'country', NULL)
#4 /opt/phplibs/My/View/Helper/FormSelectCountry.php(52): Zend_Locale::getCountryTranslation('AD')

So we need to implement a mapping to map "gl_GL" to "gl"?

Posted by Thomas Weidner (thomas) on 2009-10-12T12:25:19.000+0000

The exception you gave afterwards shows a possible problem on locale downgrading while using the pre-translation methods.

Fixed with r18530 within trunk.

Please give such usefull informations next time while creating the issue.

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.