sysutils/pear-Translation2 2.0.4,1 FreeBSD
PEAR class for multilingual applications management
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Categories
- sysutils, devel, pear
- Package size
- 49.9 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 |
|---|---|---|
| FreeBSD | sysutils/pear-Translation2 | 2.0.4,1 |
| DragonFly | sysutils/pear-Translation2 | 2.0.4,1 |
Install
Binary package:
pkg install php82-pear-Translation2
From the ports tree:
cd /usr/ports/sysutils/pear-Translation2/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= php82-pear-Translation2>0:sysutils/pear-Translation2
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.0.4,1 | 2.0.4,1 | 2.0.4,1 | 2.0.4,1 | 2.0.4,1 |
| FreeBSD:14:quarterly | 2.0.4,1 | 2.0.4,1 | n/a | 2.0.4,1 | 2.0.4,1 |
| FreeBSD:15:latest | 2.0.4,1 | 2.0.4,1 | n/a | 2.0.4,1 | 2.0.4,1 |
| FreeBSD:15:quarterly | 2.0.4,1 | 2.0.4,1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.0.4,1 | 2.0.4,1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 9
Run dependencies 10
No port depends on this one.
Configuration
Options name: sysutils_Translation2
| Option | Default | Description |
|---|---|---|
| PEAR_CACHE_LITE | off | PEAR::Cache_Lite support |
| PEAR_DB | off | PEAR::DB support |
| PEAR_DB_DATAOBJECT | off | PEAR::DB_DataObject support |
| PEAR_FILE_GETTEXT | off | PEAR::File_Gettext support |
| PEAR_I18NV2 | off | PEAR::I18Nv2 support |
| PEAR_MDB | off | PEAR::MDB support |
| PEAR_MDB2 | off | PEAR::MDB2 support |
| PEAR_XML_SERIALIZER | off | PEAR::XML_Serializer support |
- USES
- pear shebangfix
- Service scripts
- none
- Flavors
php83-pear-Translation2-2.0.4,1,php84-pear-Translation2-2.0.4,1,php85-pear-Translation2-2.0.4,1,php86-pear-Translation2-2.0.4,1
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| PEAR/Translation2-2.0.4.tgz | 59316 | b46f053011aaf8a59c0a1c55e8ef0c8812817a206792eb2d631cf1201fee7fc0 |
Commit history 0
No commits in the history this site was built from.