Pear-translation2

Jul 20, 2023

PEAR class for multilingual applications management

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

  • PEARDB
  • PEARMDB
  • PEARMDB2
  • gettext
  • XML
  • PEARDB_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


Checkout these related ports:
  • Zxfer - Easily and reliably transfer ZFS filesystems
  • Ztop - Display ZFS dataset I/O in real time
  • Zsm - ZFS Snapshot Manager
  • Zsd - Destroys ZFS snapshots
  • Zrepl - ZFS dataset replication tool
  • Zrep - ZFS based replication and failover solution
  • Zpool-iostat-viz - ZFS pool I/O latency statistics
  • Zoxide - Fast cd alternative that learns your habits
  • Zogftw - Creates redundant backups on encrypted ZFS pools
  • Znapzend - ZFS-centric backup tool
  • Zisofs-tools - User utilities for zisofs
  • Zidrav - File corruption detection and repair program
  • Zfstools - OpenSolaris-compatible auto snapshotting for ZFS
  • Zfsnap2 - Portable performant script to make rolling ZFS snapshots easy
  • Zfsnap - Simple sh script to make zfs rolling snaphosts with cron