Phenotype API Documentation

Class PhenotypeLocaleManagerStandard

Description
Description | Descendents | Vars (details) | Methods (details)
Direct descendents
Description | Descendents | Vars (details) | Methods (details)
Class Description
PhenotypeLocaleManager
Variable Summary
mixed $_locales
Method Summary
PhenotypeLocaleManagerStandard __construct ()
void addTokens (unknown_type $myDAO, unknown_type $file, unknown_type $locale)
void helpMe ()
void readTMX$file,  $locale)
void rebuildTMXFiles ([ $insert = ""], [ $_englishinsert = array()], [ $_germaninsert = array()])
void sortTokens ()
void writeTMX$file,  $_token,  $_english, [ $locale = false], [ $_translation = array()])
Variables
mixed $_locales = array("de","xx") (line 28)
  • access: public
Methods
Constructor __construct (line 30)
  • access: public
PhenotypeLocaleManagerStandard __construct ()
addTokens (line 936)

This function reads localisation tokens out of the given tmx-file and adds them to the dataobject which holds the translations

  • access: public
void addTokens (unknown_type $myDAO, unknown_type $file, unknown_type $locale)
  • unknown_type $myDAO
  • unknown_type $file
  • unknown_type $locale
displayNewTokens (line 1033)

prints out all unknown (i.e. new) tokens, collected into database table tokens

internal (system developer) usage only

  • access: public
void displayNewTokens ()
helpMe (line 986)

This function prints a list with locale-commands for all tokens

Very usefull, when you want to localize scripts / backend pages

  • access: public
void helpMe ()
lumberEnglishTMX (line 1085)

This functions pastes token names into the english content (if empty)

Very usefull since most english translations for a token are identical to the token itself

internal (system developer) usage only

  • access: public
void lumberEnglishTMX ()
readTMX (line 853)
  • access: public
void readTMX$file,  $locale)
  • $file
  • $locale
rebuildTMXFiles (line 1052)

Rewrites all txm files based on the tokens array in this class.

Be cautious: That means, any entry to a token in any tmx file not referenced in this class gets deleted!

internal (system developer) usage only

  • access: public
void rebuildTMXFiles ([ $insert = ""], [ $_englishinsert = array()], [ $_germaninsert = array()])
  • $insert
  • $_englishinsert
  • $_germaninsert
sortTokens (line 1011)

sorts alle localization tokens for optimizing the LocaleManager class

interal (system developer) usage only

  • access: public
void sortTokens ()
writeTMX (line 895)
  • access: public
void writeTMX$file,  $_token,  $_english, [ $locale = false], [ $_translation = array()])
  • $file
  • $_token
  • $_english
  • $locale
  • $_translation

Documentation generated on Fri, 17 Jul 2009 16:43:15 +0200 by phpDocumentor 1.4.2

Bookmark and Share