| [ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 523 lignes (16 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
NLS:: (16 méthodes):
select()
setLang()
setTextdomain()
isValid()
_map()
getCharset()
getExternalCharset()
_cachedCharset()
getEmailCharset()
checkCharset()
setTimeZone()
getLocaleInfo()
getLangInfo()
getCountryByHost()
generateFlagImageByHost()
getCountryISO()
| select() X-Ref |
| Selects the most preferred language for the current client session. return: string The selected language abbreviation. |
| setLang($lang = null) X-Ref |
| Sets the language. param: optional string $lang The language abbriviation. |
| setTextdomain($app, $directory, $charset) X-Ref |
| Sets the gettext domain. param: string $app The application name. param: string $directory The directory where the application's param: string $charset The charset. |
| isValid($language) X-Ref |
| Determines whether the supplied language is valid. param: string $language The abbreviated name of the language. return: boolean True if the language is valid, false if it's not |
| _map($language) X-Ref |
| Maps languages with common two-letter codes (such as nl) to the full gettext code (in this case, nl_NL). Returns the language unmodified if it isn't an alias. param: string $language The language code to map. return: string The mapped language code. |
| getCharset($original = false) X-Ref |
| Returns the charset for the current language. param: boolean $original If true returns the original charset of the return: string The character set that should be used with the current |
| getExternalCharset() X-Ref |
| Returns the current charset of the environment return: string The character set that should be used with the current |
| _cachedCharset($index, $charset = null) X-Ref |
| Sets or returns the charset used under certain conditions. param: integer $index The ID of a cache slot. 0 for the UI charset, 1 param: string $charset If specified, this charset will be stored in the |
| getEmailCharset() X-Ref |
| Returns the charset to use for outgoing emails. return: string The preferred charset for outgoing mails based on |
| checkCharset($charset) X-Ref |
| Check to see if character set is valid for htmlspecialchars() calls. param: string $charset The character set to check. return: boolean Is charset valid for the current system? |
| setTimeZone() X-Ref |
| Sets the current timezone, if available. |
| getLocaleInfo() X-Ref |
| Get the locale info returned by localeconv(), but cache it, to avoid repeated calls. return: array The results of localeconv(). |
| getLangInfo($item) X-Ref |
| Get the language info returned by nl_langinfo(), but cache it, to avoid repeated calls. param: const $item The langinfo item to return. return: array The results of nl_langinfo(). |
| getCountryByHost($host) X-Ref |
| Get country information from a hostname or IP address. param: string $host The hostname or IP address. return: mixed On success, return an array with the following entries: |
| generateFlagImageByHost($host) X-Ref |
| Returns a Horde image link to the country flag. param: string $host The hostname or IP address. return: string The image URL, or the empty string on error. |
| getCountryISO($code = '') X-Ref |
| Returns either a specific or all ISO-3166 country names. param: optional string $code The ISO 3166 country code. return: mixed If a country code has been requested will return the |
| Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |