Zend Framework

Use fallback for language name

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Not an Issue
  • Affects Version/s: 1.10.2
  • Fix Version/s: 1.10.3
  • Component/s: Zend_Locale
  • Labels:
    None

Description

Zend_Locale::getTranslation('es_AR', 'language', 'en') returns false;

It should either fall back to this:

Zend_Locale::getTranslation('es', 'language', 'en')

Or (to be clever?) it could translate the language/territory separately

Zend_Locale::getTranslation('es', 'language', 'en').' ('.Zend_Locale::getTranslation('AR', 'territory', 'en').')'

Activity

Hide
Thomas Weidner added a comment -

Why should the translation itself fall back ??
This is unlogic.

The locale can fall back, but not the translation.

When you are requesting the translation for "country" why should it then fall back to "city" ?

Show
Thomas Weidner added a comment - Why should the translation itself fall back ?? This is unlogic. The locale can fall back, but not the translation. When you are requesting the translation for "country" why should it then fall back to "city" ?
Hide
Thomas Weidner added a comment -

Closing as non-issue

Show
Thomas Weidner added a comment - Closing as non-issue

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: