BSD Ports

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

SystemPortVersion
FreeBSDsysutils/pear-Translation22.0.4,1
DragonFlysysutils/pear-Translation22.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.0.4,12.0.4,12.0.4,12.0.4,12.0.4,1
FreeBSD:14:quarterly2.0.4,12.0.4,1n/a2.0.4,12.0.4,1
FreeBSD:15:latest2.0.4,12.0.4,1n/a2.0.4,12.0.4,1
FreeBSD:15:quarterly2.0.4,12.0.4,1n/an/an/a
FreeBSD:16:latest2.0.4,12.0.4,1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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

OptionDefaultDescription
PEAR_CACHE_LITEoffPEAR::Cache_Lite support
PEAR_DBoffPEAR::DB support
PEAR_DB_DATAOBJECToffPEAR::DB_DataObject support
PEAR_FILE_GETTEXToffPEAR::File_Gettext support
PEAR_I18NV2offPEAR::I18Nv2 support
PEAR_MDBoffPEAR::MDB support
PEAR_MDB2offPEAR::MDB2 support
PEAR_XML_SERIALIZERoffPEAR::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
FileSizeSHA256
PEAR/Translation2-2.0.4.tgz59316b46f053011aaf8a59c0a1c55e8ef0c8812817a206792eb2d631cf1201fee7fc0

Commit history 0

No commits in the history this site was built from.