source: ZMS/trunk/IZMSLocale.py @ 1318

Revision 1318, 1.6 KB checked in by zmsdev, 16 months ago (diff)

rolled back getLangStr(): lang-parameter is optional again!

Line 
1################################################################################
2# IZMSLocale.py
3#
4# This program is free software; you can redistribute it and/or
5# modify it under the terms of the GNU General Public License
6# as published by the Free Software Foundation; either version 2
7# of the License, or (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17################################################################################
18
19# Imports.
20from zope.interface import Interface
21
22class IZMSLocale(Interface):
23
24  def get_manage_langs(self):
25    """
26    Returns list of manage-languages.
27    @rtype: C{list}
28    """
29
30  def get_manage_lang(self):
31    """
32    Returns preferred of manage-language for current content-language.
33    @rtype: C{string}
34    """
35
36  def getZMILangStr(self, key, REQUEST=None, RESPONSE=None):
37    """
38    Returns language-string for current manage-language.
39    @rtype: C{string}
40    """
41
42  def getLangStr(self, key, lang=None):
43    """
44    Returns language-string for given language.
45    @rtype: C{string}
46    """
47
48  def getPrimaryLanguage(self):
49    """
50    Returns primary-language of content.
51    @rtype: C{string}
52    """
Note: See TracBrowser for help on using the repository browser.