[Zope-Checkins] CVS: Zope3/lib/python/Zope/I18n - II18nAware.py:1.1

Marius Gedminas mgedmin@delfi.lt
Mon, 24 Jun 2002 11:42:42 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/I18n
In directory cvs.zope.org:/tmp/cvs-serv7264

Added Files:
	II18nAware.py 
Log Message:
Added II18nAware interface.


=== Added File Zope3/lib/python/Zope/I18n/II18nAware.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# 
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
# 
##############################################################################
"""Internationalization of content objects.

$Id: II18nAware.py,v 1.1 2002/06/24 15:42:42 mgedmin Exp $
"""

from Interface import Interface


class II18nAware(Interface):
    """Internationalization aware content object.
    """

    def getDefaultLanguage():
    	"""Return the default language."""

    def setDefaultLanguage(language):
	"""Set the default language, which will be used if the language is not
	specified, or not available.
	"""
    
    def getAvailableLanguages():
        """Find all the languages that are available."""