From: Hanno S. <svn...@pl...> - 2010-02-02 15:10:36
|
Author: hannosch Date: Tue Feb 2 15:10:29 2010 New Revision: 33670 Modified: Products.LinguaPlone/trunk/CHANGES.txt Products.LinguaPlone/trunk/Products/LinguaPlone/interfaces.py Log: Clarify ITranslatable interface description for the getTranslation method. This closes http://plone.org/products/linguaplone/issues/226. Modified: Products.LinguaPlone/trunk/CHANGES.txt ============================================================================== --- Products.LinguaPlone/trunk/CHANGES.txt (original) +++ Products.LinguaPlone/trunk/CHANGES.txt Tue Feb 2 15:10:29 2010 @@ -4,6 +4,10 @@ 3.0.1 - unreleased ------------------ +- Clarify ITranslatable interface description for the getTranslation method. + This closes http://plone.org/products/linguaplone/issues/226. + [hannosch] + - Made language index more forgiving when dealing with broken canonical references. This closes http://plone.org/products/linguaplone/issues/231. [hannosch] Modified: Products.LinguaPlone/trunk/Products/LinguaPlone/interfaces.py ============================================================================== --- Products.LinguaPlone/trunk/Products/LinguaPlone/interfaces.py (original) +++ Products.LinguaPlone/trunk/Products/LinguaPlone/interfaces.py Tue Feb 2 15:10:29 2010 @@ -83,9 +83,12 @@ def getTranslation(language='language'): """ - Return the object corresponding to a translated version or None. + Return the object corresponding to a translated version or None if no + translation exists. + If called without arguments it returns the translation in the currently - selected language, or self. + selected language. If the object is already in the selection language + it returns self. """ def getTranslationLanguages(): |