Language |
Returns a translation for a language. To select the wished translation
you must give the language code as value
|
Script |
Returns a translation for a script. To select the wished translation you
must give the script code as value
|
Territory or Country
|
Returns a translation for a territory. This can be countries, continents
and territories. To select the wished variant you must give the
territory code as value
|
Variant |
Returns a translation for a script variant. To select the wished variant
you must give the variant code as value
|
Key |
Returns translation for a known keys. This keys are generic values used
in translation. These are normally calendar, collation and currency. To
select the wished key you must give the key code as value
|
DefaultCalendar |
Returns the default calendar for the given locale. For most locales this
will be 'gregorian'. Use Zend_Date for simplicity
|
MonthContext |
Returns the default context for months which is used within the given
calendar. If you omit the value the 'gregorian' calendar will be used.
Use Zend_Date for
simplicity
|
DefaultMonth |
Returns the default format for months which is used within the given
calendar. If you omit the value the 'gregorian' calendar will be used.
Use Zend_Date for
simplicity
|
Month |
Returns a translation for a month. You have to give the number of the
month as integer value. It has to be between 1 and 12. If you want to
receive data for other calendars, contexts or formats, then you must
give an array instead of an integer with the expected values. The array
has to look like this:
array( 'calendar', 'context', 'format', 'month number') . If
you give only an integer then the default values are the 'gregorian'
calendar, the context 'format' and the format 'wide'. Use
Zend_Date for simplicity
|
DayContext |
Returns the default context for ´days which is used within the given
calendar. If you omit the value the 'gregorian' calendar will be used.
Use Zend_Date for
simplicity
|
DefaultDay |
Returns the default format for days which is used within the given
calendar. If you omit the value the 'gregorian' calendar will be used.
Use Zend_Date for
simplicity
|
Day |
Returns a translation for a day. You have to give the english
abbreviation of the day as string value ('sun', 'mon', etc.). If you
want to receive data for other calendars, contexts or format, then you
must give an array instead of an integer with the expected values. The
array has to look like this: array('calendar', 'context',
'format', 'day abbreviation'). If you give only an
string then the default values are the 'gregorian' calendar, the context
'format' and the format 'wide'. Use Zend_Date for simplicity
|
Quarter |
Returns a translation for a quarter. You have to give the number of the
quarter as integer and it has to be between 1 and 4. If you want to
receive data for other calendars, contexts or formats, then you must
give an array instead of an integer with the expected values. The array
has to look like this: array('calendar', 'context',
'format', 'quarter number'). If you give only an
string then the default values are the 'gregorian' calendar,
the context 'format' and the format 'wide'
|
Am |
Returns a translation for 'AM' in a expected locale. If you want to
receive data for other calendars an string with the expected calendar.
If you omit the value then the 'gregorian' calendar will be used. Use
Zend_Date for simplicity
|
Pm |
Returns a translation for 'PM' in a expected locale. If you want to
receive data for other calendars an string with the expected calendar.
If you omit the value then the 'gregorian' calendar will be used. Use
Zend_Date for simplicity
|
Era |
Returns a translation for an era within a locale. You have to give the
era number as string or integer. If you want to receive data for other
calendars or formats, then you must give an array instead of the era
number with the expected values. The array has to look like this:
array('calendar', 'format', 'era number'). If
you give only an string then the default values are the 'gregorian'
calendar and the 'abbr' format
|
DefaultDate |
Returns the default date format which is used within the given
calendar. If you omit the value the 'gregorian' calendar will be used.
Use Zend_Date for
simplicity
|
Date |
Returns the date format for an given calendar or format within a locale.
If you omit the value then the 'gregorian' calendar will be used with
the 'medium' format. If you give a string then the 'gregorian' calendar
will be used with the given format. Or you can also give an array which
will have to look like this: array('calendar',
'format'). Use Zend_Date for simplicity
|
DefaultTime |
Returns the default time format which is used within the given calendar.
If you omit the value the 'gregorian' calendar will be used. Use
Zend_Date for simplicity
|
Time |
Returns the time format for an given calendar or format within a locale.
If you omit the value then the 'gregorian' calendar will be used with
the 'medium' format. If you give a string then the 'gregorian' calendar
will be used with the given format. Or you can also give an array which
will have to look like this:
array('calendar', 'format'). Use Zend_Date for simplicity
|
DateTime |
Returns the datetime format for the given locale which indicates how to
display date with times in the same string within the given calendar. If
you omit the value the 'gregorian' calendar will be used. Use
Zend_Date for simplicity
|
DateItem |
Returns the default format for a given date or time item |
DateInterval |
Returns the interval format for a given date or time format. The first
value is the calendar format, normally 'gregorian'. The second value is
the interval format and the third value the token with the greatest
difference. For example: array('gregorian', 'yMMMM', 'y') returns the
interval format for the date format 'yMMMM' where 'y' has the greatest
difference.
|
Field |
Returns a translated date field which can be used to display calendars
or date strings like 'month' or 'year' in a wished language. You must
give the field which has to be returned as string. In this case the
'gregorian' calendar will be used. You can get the field for other
calendar formats if you give an array which has to look like this:
array('calendar', 'date field')
|
Relative |
Returns a translated date which is relative to today which can include
date strings like 'yesterday' or 'tomorrow' in a wished language. You
have to give the number of days relative to tomorrow to receive the
expected string. Yesterday would be '-1', tomorrow '1' and so on. This
will use the 'gregorian' calendar. if you want to get relative dates for
other calendars you will have to give an array which has to look like
this: array('calendar', 'relative days'). Use
Zend_Date for simplicity
|
DecimalNumber |
Returns the format for decimal numbers within a given locale. Use Zend_Locale_Format for
simplicity
|
ScientificNumber |
Returns the format for scientific numbers within a given locale
|
PercentNumber |
Returns the format for percentage numbers within a given locale
|
CurrencyNumber |
Returns the format for displaying currency numbers within a given
locale. Use Zend_Currency for
simplicity
|
NameToCurrency |
Returns the translated name for a given currency. The currency has to be
given in ISO format which is for example 'EUR' for
the currency 'euro'. Use Zend_Currency for
simplicity
|
CurrencyToName |
Returns a currency for a given localized name. Use Zend_Currency for
simplicity
|
CurrencySymbol |
Returns the used symbol for a currency within a given locale. Not for
all currencies exists a symbol. Use
Zend_Currency for
simplicity
|
Question |
Returns a localized string for acceptance ('yes') and negotation ('no').
You have to give either 'yes' or 'no' as value to receive the expected
string. Use Zend_Locale's
getQuestion method for simplicity
|
CurrencyFraction |
Returns the fraction to use for a given currency. You must give the
currency as ISO value. Use Zend_Currency
for simplicity
|
CurrencyRounding |
Returns how to round a given currency. You must give the currency as
ISO value. If you omit the currency then the
'DEFAULT' rounding will be returned. Use Zend_Currency
for simplicity
|
CurrencyToRegion |
Returns the currency for a given region. The region code has to be given
as ISO3166 string for example 'AT' for austria. Use
Zend_Currency for
simplicity
|
RegionToCurrency |
Returns the regions where a currency is used. The currency has to be
given as ISO4217 code for example 'EUR' for euro.
When a currency is used in multiple regions, these regions are separated
with a whitespace character. Use Zend_Currency for
simplicity
|
RegionToTerritory |
Returns the regions for a given territory. The territory has to be given
as ISO4217 string for example '001' for world. The
regions within this territory are separated with a whitespace character
|
TerritoryToRegion |
Returns the territories where a given region is located. The region has
to be given in ISO3166 string for example 'AT' for
austria. When a region is located in multiple territories then these
territories are separated with a whitespace character
|
ScriptToLanguage |
Returns the scripts which are used within a given language. The language
has to be given as ISO language code for example 'en'
for english. When multiple scripts are used within a language then these
scripts are separated with a whitespace character
|
LanguageToScript |
Returns the languages which are used within a given script. The script
has to be given as ISO script code for example 'Latn'
for latin. When a script is used in multiple languages then these
languages are separated with a whitespace character
|
TerritoryToLanguage |
Returns the territories where a given language is used. The language has
to be given as ISO language code for example 'en' for
english. When multiple territories exist where this language is used
then these territories are separated with a whitespace character
|
LanguageToTerritory |
Returns the languages which are used within a given territory. The
territory has to be given as ISO3166 code for
example 'IT' for italia. When a language is used in multiple territories
then these territories are separated with a whitespace character
|
TimezoneToWindows |
Returns a ISO timezone for a given windows timezone
|
WindowsToTimezone |
Returns a windows timezone for a given ISO timezone
|
TerritoryToTimezone |
Returns the territory for a given ISO timezone
|
TimezoneToTerritory |
Returns the ISO timezone for a given territory
|
CityToTimezone |
Returns the localized city for a given ISO timezone.
Not for all timezones does a city translation exist
|
TimezoneToCity |
Returns the ISO timezone for a given localized city
name. Not for all cities does a timezone exist
|
PhoneToTerritory |
Returns the telephone code for a given territory (region). The territory
code has to be given as ISO3166 string for example
'AT' for austria
|
TerritoryToPhone |
Returns the territory (region) where a telephone code is used. The
telephone code has to be given as plain integer code for example '43'
for +43. When a telephone code is used in multiple territories
(regions), these territories are separated with a whitespace character
|
NumericToTerritory |
Returns the 3 digit number code for a given territory (region). The
territory code has to be given as ISO3166 string
for example 'AT' for austria
|
TerritoryToNumeric |
Returns the territory (region) for a 3 digit number code. The 3 digit
number code has to be given as plain integer code for example '43'
|
Alpha3ToTerritory |
Returns the 3 sign character code for a given territory (region). The
territory code has to be given as ISO3166 string
for example 'AT' for austria
|
TerritoryToAlpha3 |
Returns the territory (region) for a 3 sign character code |
PostalToTerritory |
Returns the a regex for postal codes for a given territory. The
territory has to be given as ISO4217 string for
example '001' for world
|
NumberingSystem |
Returns a scripts with the notation for digits used within this script
|
FallbackToChar |
Returns a replacement character for a often used unicode character.
This can be used to replace "©" with "(C)" for example
|
CharToFallback |
Returns a unicode character for a often used replacement character.
This can be used to replace "(C)" with "©" for example
|
LocaleUpgrade |
Returns a locale dependencies for a given language which can be used to
upgrade this language to a full qualified locale
|
Unit |
Returns a localized calendar unit. This can be used to translate
the strings "day", "month" and so on automatically. The first parameter
has to be the type, and the second parameter has to be the count
|