Zend Framework

Missing locale file for "gl_GL"

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.3
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Locale
  • Labels:
    None

Description

Our application is sometimes causing following exception:

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

Is it possible to add it? http://en.wikipedia.org/wiki/Galician_language

Activity

Hide
Thomas Weidner added a comment -

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.

Show
Thomas Weidner added a comment - 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.
Hide
Jan Pieper added a comment -

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.

#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"?

Show
Jan Pieper added a comment - 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.
#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"?
Hide
Thomas Weidner added a comment -

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.

Show
Thomas Weidner added a comment - 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.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: