Ticket #505 (closed defect: fixed)

Opened 21 months ago

Last modified 21 months ago

cultureInfo::getEnglishName does not return an arrary

Reported by: rabol Owned by: xue
Priority: urgent Milestone: 3.0.7
Component: Prado Framework v3 Version: 3.0
Severity: minor Keywords:
Cc:

Description

According to the documentation, CulturInfo?->getEnglishName should return an array containing the language and country, but it returns a string.

Please do one of two: update the documentation and provide a new method that returns an array or 'fix' the current version.

IMHO option one would be best not to break BCP :)

I would have extended a class from CultureInfo? and made the new method, but findInfo is protected and can not be used in my class.

Change History

Changed 21 months ago by rabol

Please disregard my comment about findInfo

Changed 21 months ago by rabol

Small comment: for some cultures the $language[0] is not set line 428 and line 430 in CulturInfo?.php:

Culture code in,in_ID,iw, iw_IL

The follwoing culture code thorws 'Invalid culture supplied' exception: hy_AM_REVISED, ja_JP_TRADITIONAL, kok, kok_IN ,sr_Cyrl, sr_Cyrl_YU, sr_Latn, sr_Latn_YU, th_TH_TRADITIONAL, zh_Hans, zh_Hans_CN, zh_Hans_SG, zh_Hant,zh_Hant_HK, zh_Hant_MO, zh_Hant_TW

Changed 21 months ago by xue

  • milestone set to 3.0.7

Changed 21 months ago by wei

  • status changed from new to closed
  • resolution set to fixed

Changed 21 months ago by wei

These

hy_AM_REVISED, ja_JP_TRADITIONAL, kok, kok_IN ,sr_Cyrl, sr_Cyrl_YU, sr_Latn, sr_Latn_YU, th_TH_TRADITIONAL, zh_Hans, zh_Hans_CN, zh_Hans_SG, zh_Hant,zh_Hant_HK, zh_Hant_MO, zh_Hant_TW

some hierachial data, for example, z_Hant is used zh_Hant_TW, then zh_Hant_Tw is used by zh_TW. Not sure about the others.

I think they are not actual culture codes, but is there to reduce duplicate data.

Note: See TracTickets for help on using tickets.