📚 Looking for current Exponential documentation? This site contains legacy SDK & API reference docs (eZ Publish era). For up-to-date 2026 product documentation, visit doc.exponential.earth.

  class / eZBorkTranslator  

eZBorkTranslator Class Reference
[Translation]

Translates text into the Bork language (Mock Swedish). More...

Inheritance diagram for eZBorkTranslator:

TODO — Image not available in archive

Title:   eZBorkTranslator Class Inheritance Diagram (Doxygen)
File:    /doc/generated/html/classeZBorkTranslator.png

What this image shows:
Doxygen-generated class inheritance diagram for the eZBorkTranslator PHP class. Shows the inheritance hierarchy: which classes eZBorkTranslator extends and which classes inherit from it, with links to parent and child class documentation. This diagram was auto-generated from the Exponential 3.1 PHP source code using Doxygen circa 2003.

Replacement instructions:
Run Doxygen on the Exponential 3.1 PHP source and locate the generated classeZBorkTranslator.png in the output. Or draw the inheritance tree manually from the API reference. Save as /doc/generated/html/classeZBorkTranslator.png

See /sdk/missing.html for the full list of missing images.
eZTranslatorHandler List of all members.

Public Methods

 eZBorkTranslator ()
findMessage ($context,$source,$comment=null)
borkify ($text)
translate ($context,$source,$comment=null)

Static Public Methods

initialize ()

Private Attributes

 Messages

Detailed Description

Translates text into the Bork language (Mock Swedish).

This translation is adapted from the Mock Swedish translation in Qt Quarterly 3/2002: http://doc.trolltech.com/qq/qq03-swedish-chef.html

It translates the following characters/strings: (The "|" sign stands for a word boundary, and "-" stands for mid-word.)

a- -> e an -> un au -> oo en| -> ee -ew -> oo -f -> ff -i -> ee -ir -> ur |o -> oo ow -> oo ph -> f th| -> t -tion -> shun -u -> oo |U- -> Oo y| -> ai v -> f w -> v

Words that are not changed by these rules will have "-a" appended to them.

Definition at line ezborktranslator.php.


Constructor & Destructor Documentation

eZBorkTranslator::eZBorkTranslator  
 

Construct the translator.

Definition at line ezborktranslator.php.

References Messages.

Referenced by initialize().


Member Function Documentation

& eZBorkTranslator::borkify   text
 

Translates the text into bork code.

Definition at line ezborktranslator.php.

Referenced by findMessage().

& eZBorkTranslator::findMessage   context,
  source,
  comment = null
[virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZTranslatorHandler.

Definition at line ezborktranslator.php.

References Messages.

Referenced by translate().

& eZBorkTranslator::initialize   [static]
 

Initialize the bork translator if this is not allready done.

Definition at line ezborktranslator.php.

References eZTranslatorManager::instance().

& eZBorkTranslator::translate   context,
  source,
  comment = null
[virtual]
 

Reimplemented for internal reasons; the API is not affected.

Implements eZTranslatorHandler.

Definition at line ezborktranslator.php.

References findMessage().


Member Data Documentation

eZBorkTranslator::Messages [private]
 

Contains the hash table with cached bork translations

Definition at line ezborktranslator.php.

Referenced by findMessage().


The documentation for this class was generated from the following file:  

Exponential Copyright © 1998 - 2026 7x