sysutils/pear-Translation2 2.0.4,1 DragonFly
PEAR class for multilingual applications management
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- Categories
- devel, pear, sysutils
- Package size
- 46.2 KiB, 414.0 KiB installed
Description
This class provides an easy way to retrieve all the strings for a multilingual site from a data source (i.e. db). The following containers are provided, more will follow:
- PEAR::DB
- PEAR::MDB
- PEAR::MDB2
- gettext
- XML
- PEAR::DB_DataObject (experimental) It is designed to reduce the number of queries to the db, caching the results when possible. An Admin class is provided to easily manage translations (add/remove a language, add/remove a string).
Currently, the following decorators are provided:
- CacheLiteFunction (for file-based caching)
- CacheMemory (for memory-based caching)
- DefaultText (to replace empty strings with their keys)
- Iconv (to switch from/to different encodings)
- Lang (resort to fallback languages for empty strings)
- SpecialChars (replace html entities with their hex codes)
- UTF-8 (to convert UTF-8 strings to ISO-8859-1)
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | sysutils/pear-Translation2 | 2.0.4,1 |
| FreeBSD | sysutils/pear-Translation2 | 2.0.4,1 |
Install
Binary package:
pkg install php81-pear-Translation2
From DPorts:
cd /usr/dports/sysutils/pear-Translation2 && make install clean
Dependencies
Run dependencies 2
No port depends on this one.
Configuration
No options to configure.
- Service scripts
- none
- Flavors
php82-pear-Translation2-2.0.4,1,php83-pear-Translation2-2.0.4,1,php84-pear-Translation2-2.0.4,1