eZBorkTranslator Class Reference
[Translation]

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

Inheritance diagram for eZBorkTranslator:

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