Path

ez components / documentation / api reference / 1.1.2 / translation


eZ Components 1.1.2

Translation: ezcTranslationData

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcTranslationData

A container to store one translatable string. [source]
This struct is used in various classes to store the data accompanying one translatable string.

Parents

ezcBaseStruct
   |
   --ezcTranslationData

Constants

OBSOLETE = 2 Used when a translated string is obsolete.
TRANSLATED = 0 Used when the translated string is up-to-date
UNFINISHED = 1 Used when a translated string has not been translated yet.

Member Variables

public string $comment
Comment about the translation.
public string $original
The original untranslated source string.
public integer $status
The status, which is one of the three constants TRANSLATED, UNFINISHED or OBSOLETE.
public string $translation
The translated string.

Method Summary

public ezcTranslationData __construct( $original, $translation, $comment, $status )
Constructs an ezcTranslationData object.
public static void __set_state( $array )

Methods

__construct

ezcTranslationData __construct( string $original, string $translation, string $comment, int $status )
Constructs an ezcTranslationData object.

Parameters

Name Type Description
$original string  
$translation string  
$comment string  
$status int  

__set_state

void __set_state( $array )

Parameters

Name Type Description
$array array  

Last updated: Thu, 01 Nov 2007