Back to index

plone3  3.1.7
Public Member Functions
CMFPlone.interfaces.Translatable.ITranslatable Class Reference
Inheritance diagram for CMFPlone.interfaces.Translatable.ITranslatable:
Inheritance graph
[legend]
Collaboration diagram for CMFPlone.interfaces.Translatable.ITranslatable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def isTranslation
def addTranslation
def removeTranslation
def getTranslation
def getTranslationLanguages
def getTranslations
def isCanonical
def getCanonicalLanguage
def getCanonical
def setLanguage
def Language

Detailed Description

Interface for translatable content.

Definition at line 3 of file Translatable.py.


Member Function Documentation

Add a new language translation of this content.

Definition at line 13 of file Translatable.py.

00013 
00014     def addTranslation(language, **kwargs):
00015         """
00016         Add a new language translation of this content.
00017         """

Return the original, canonical translation of this content.

Definition at line 50 of file Translatable.py.

00050 
00051     def getCanonical():
00052         """
00053         Return the original, canonical translation of this content.
00054         """

Return the language code for the canonical translation of this content.

Definition at line 45 of file Translatable.py.

00045 
00046     def getCanonicalLanguage():
00047         """
00048         Return the language code for the canonical translation of this content.
00049         """

Return the object corresponding to a translated version or None.
If called without arguments it returns the translation in the currently
selected language, or self.

Definition at line 23 of file Translatable.py.

00023 
00024     def getTranslation(language='language'):
00025         """
00026         Return the object corresponding to a translated version or None.
00027         If called without arguments it returns the translation in the currently
00028         selected language, or self.
00029         """
 
Return a list of language codes

Definition at line 30 of file Translatable.py.

00030 
00031     def getTranslationLanguages():
00032         """
00033         Return a list of language codes
00034         """

Return a dict of {lang : [object, wf_state]}

Definition at line 35 of file Translatable.py.

00035 
00036     def getTranslations():
00037         """
00038         Return a dict of {lang : [object, wf_state]}
00039         """

boolean, is this the original, canonical translation of the content.

Definition at line 40 of file Translatable.py.

00040 
00041     def isCanonical():
00042         """
00043         boolean, is this the original, canonical translation of the content.
00044         """

return language if this object is used as multilingual content, 0 otherwise

Definition at line 8 of file Translatable.py.

00008 
00009     def isTranslation():
00010         """
00011         return language if this object is used as multilingual content, 0 otherwise
00012         """

Returns the language of this translation - same as DC

Definition at line 60 of file Translatable.py.

00060 
00061     def Language():
00062         """
00063         Returns the language of this translation - same as DC
00064         """

Here is the caller graph for this function:

Removes a translation

Definition at line 18 of file Translatable.py.

00018 
00019     def removeTranslation(language):
00020         """
00021         Removes a translation
00022         """

Sets the language for the current translation - same as DC

Definition at line 55 of file Translatable.py.

00055 
00056     def setLanguage(language):
00057         """
00058         Sets the language for the current translation - same as DC
00059         """

Here is the caller graph for this function:


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