PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Internationalization » I18Nv2

Internationalization

This package is unmaintained.

Download latest release 0.11.4 (archived versions might be outdated)

License: PHP

Description

This package provides basic support to localize your application,
like locale based formatting of dates, numbers and currencies.

Beside that it attempts to provide an OS independent way to setlocale()
and aims to provide language, country and currency names translated into
many languages.

Short descriptions of provided classes:
=======================================
- I18Nv2 OS independent (Linux/Win32) setlocale(), other utils
- I18Nv2_Locale locale based formatter
- I18Nv2_Negotiator HTTP negiotiation of preferred language and charset
- I18Nv2_Country multilingual list of country names
- I18Nv2_Language multilingual list of language names
- I18Nv2_Currency multilingual list of currency names
- I18Nv2_Encoding list of common and not so common charsets and aliases
- I18Nv2_AreaCode list of international area codes (phone)

Decorators for lists like I18Nv2_Country and I18Nv2_Language:
=============================================================
- HtmlEntities transparently encode displayed names with HTML entities
- HtmlSpecialchars transparently encode special XML chars in displayed names
- HtmlSelect ready to use HTML select element facility
- Filter exclude or include elements of a list

Translations of language, country and currency names are
more or less completely available in the following languages:
=============================================================
Afar, Afrikaans, Albanian, Amharic, Arabic, Armenian, Assamese, Azerbaijani,
Basque, Belarusian, Bengali, Bulgarian, Catalan, Chinese, Cornish, Croatian,
Czech, Danish, Divehi, Dutch, Dzongkha, English, Esperanto, Estonian, Faroese,
Finnish, French, Gallegan, Georgian, German, Greek, Gujarati, Hebrew, Hindi,
Hungarian, Icelandic, Indonesian, Inuktitut, Irish, Italian, Japanese,
Kalaallisut, Kannada, Kazakh, Khmer, Kirghiz, Korean, Lao, Latvian, Lithuanian,
Macedonian, Malay, Malayalam, Maltese, Manx, Marathi, Mongolian,
Norwegian Bokmal, Norwegian Nynorsk, Oriya, Oromo, Pashto (Pushto),
Persian, Polish, Portuguese, Punjabi, Romanian, Russian, Sanskrit, Serbian,
Serbo-Croatian, Slovak, Slovenian, Somali, Spanish, Swahili, Swedish, Tamil,
Tatar, Telugu, Thai, Tigrinya, Turkish, Ukrainian, Urdu, Uzbek, Vietnamese
and Welsh

FINAL NOTE:
===========
Contributions are very welcome!

Documentation

Manual

Maintainers

No maintainers.

Dependencies

No dependencies.

Releases

Bugs

IDStatusTypeVersionDateSummary
#2152ClosedBug2004-08-17_iconv in CommonList.php line 196 throws notice
#2361Wont fixReq2004-09-20Handle the ordinal suffix
#2541ClosedBug2004-10-15[PATCH] warning with E_ALL
#2816ClosedBug2004-11-23Inconsistent capitalization of language names
#2847ClosedBug2004-11-28Missing third paramter in I18Nv2::createNegotiator
#2869ClosedBug2004-12-01Cannot Install
#3423ClosedReq2005-02-10country lists separated by continent
#3494No FeedbackBug2005-02-16I18Nv2's modifies the global locale
#3573BogusReq2005-02-24Dialing codes
#3626ClosedBug2005-02-27CRITICAL: non-ISO-8859-1 characters in package.xml must be entitied
#4093ClosedBug2005-04-06Wrong caps on Swedish translation of USA
#4222Wont fixReq2005-04-26Using locale with specific charset
#4269Wont fixReq2005-05-03Retrieving predefined groups
#4271AssignedReq2005-05-032-Level lists and Regions
#4280Wont fixBug2005-05-04First letter in languages and countries are always in uppercase.
#4406BogusBug2005-05-22Japanese has the wrong 2 char name
#4622Wont fixReq2005-06-17Hebrew Countries Update
#4816SuspendedBug2005-07-13converting charset of strftime result
#5252ClosedBug2005-08-31Fatal error due to API change in PHP 4.4/5.0.5
#5256Wont fixReq2005-08-31No way to fetch all matching languages
#5289No FeedbackBug2005-09-03YU != Serbia and Montenegro
#5332No FeedbackBug2005-09-08Russian time-/dateformats are wrong
#5533ClosedBug2005-09-27'Und' and 'Die' should be lowercase in I18Nv2_Country_de
#5556BogusBug2005-09-29I18Nv2.createLocale makes system-wide changes
#5579BogusReq2005-10-02Hebrew locale file
#6627BogusBug2006-01-30PHP Warning: array_walk()
#7060ClosedBugCVS2006-03-082nd call to setLocale fails with fallbackLocale
#7247ClosedBug0.11.42006-03-29createLocale raises php notice
#7884ClosedBug0.11.42006-06-13Typo in Encoding.php
#7885Wont fixReq0.11.42006-06-13Get / handle language info
#9400ClosedReq0.11.42006-11-21ISO-3166 Country Code Updates
#10227ClosedBug0.11.42007-02-28Object instanciation returned by reference in CommonList.php line 239
#10366BogusBug0.11.42007-03-14I18Nv2_Locale breaks when system locale not found
#10369Wont fixReq0.11.42007-03-14Add support for multiple locales
#10371Wont fixReq0.11.42007-03-14Enhance fallback for I18Nv2::setLocale()
#11690ClosedReq0.11.42007-07-25US/UK AreaCode
#15005AssignedBug2008-11-12No output for date/time-formats (broken unit tests)
#15133ClosedBugCVS2008-11-22Parse error in he/hu currency.
#19632OpenBug0.11.42012-10-03Assigning the return value of new by reference is deprecated