Back to index

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

List of all members.

Public Member Functions

def utranslate
def encode
def asunicodetype
def ulocalized_time
def day_msgid
def month_msgid
def month_english
def weekday_english

Detailed Description

Utility methods to access the translation machinery

Definition at line 3 of file translationservice.py.


Member Function Documentation

def CMFPlone.interfaces.translationservice.ITranslationServiceTool.asunicodetype (   m,
  input_encoding = None,
  errors = 'strict' 
)
Create type unicode from type string

Definition at line 17 of file translationservice.py.

00017 
00018     def asunicodetype(m, input_encoding=None, errors='strict'):
00019         """Create type unicode from type string"""

Returns the msgid which can be passed to the translation service for
   l10n of weekday names. Format is either '', 'a' or 's'.

Definition at line 23 of file translationservice.py.

00023 
00024     def day_msgid(number, format=''):
00025         """Returns the msgid which can be passed to the translation service for
00026            l10n of weekday names. Format is either '', 'a' or 's'.
00027         """

def CMFPlone.interfaces.translationservice.ITranslationServiceTool.encode (   m,
  input_encoding = None,
  output_encoding = None,
  errors = 'strict' 
)
Encode a give unicode type or string type to string type in encoding
   output_encoding

Definition at line 12 of file translationservice.py.

00012 
00013     def encode(m, input_encoding=None, output_encoding=None, errors='strict'):
00014         """Encode a give unicode type or string type to string type in encoding
00015            output_encoding
00016         """

Here is the caller graph for this function:

Returns the english name of month by number. Format is either '' or
   'a' (long or abbreviation).

Definition at line 33 of file translationservice.py.

00033 
00034     def month_english(number, format=''):
00035         """Returns the english name of month by number. Format is either '' or
00036            'a' (long or abbreviation).
00037         """

Returns the msgid which can be passed to the translation service for
   l10n of month names. Format is either '' or 'a' (long or abbreviation).

Definition at line 28 of file translationservice.py.

00028 
00029     def month_msgid(number, format=''):
00030         """Returns the msgid which can be passed to the translation service for
00031            l10n of month names. Format is either '' or 'a' (long or abbreviation).
00032         """

def CMFPlone.interfaces.translationservice.ITranslationServiceTool.ulocalized_time (   time,
  long_format = None,
  context = None,
  domain = 'plonelocales' 
)
Returns localized time.

Definition at line 20 of file translationservice.py.

00020 
00021     def ulocalized_time(time, long_format = None, context = None, domain='plonelocales'):
00022         """Returns localized time."""

Translate method to access the translation service
   rom resticted code like skins.

Definition at line 7 of file translationservice.py.

00007 
00008     def utranslate(*args, **kw):
00009         """Translate method to access the translation service
00010            rom resticted code like skins.
00011         """

Returns the english name of a week by number. Format is either '',
   'a' or 'p'.

Definition at line 38 of file translationservice.py.

00038 
00039     def weekday_english(number, format=''):
00040         """Returns the english name of a week by number. Format is either '',
00041            'a' or 'p'.
00042         """

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