diff options
Diffstat (limited to 'src/zope/i18n/interfaces/__init__.py')
-rw-r--r-- | src/zope/i18n/interfaces/__init__.py | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/src/zope/i18n/interfaces/__init__.py b/src/zope/i18n/interfaces/__init__.py index 025c477..78e5239 100644 --- a/src/zope/i18n/interfaces/__init__.py +++ b/src/zope/i18n/interfaces/__init__.py @@ -13,8 +13,12 @@ ############################################################################## """Internationalization of content objects. """ -from zope.interface import Interface, Attribute -from zope.schema import TextLine, Dict, Choice, Field +from zope.interface import Attribute +from zope.interface import Interface +from zope.schema import Choice +from zope.schema import Dict +from zope.schema import Field +from zope.schema import TextLine class II18nAware(Interface): @@ -85,13 +89,13 @@ class IMessageCatalog(Interface): """ language = TextLine( - title=u"Language", - description=u"The language the catalog translates to.", + title="Language", + description="The language the catalog translates to.", required=True) domain = TextLine( - title=u"Domain", - description=u"The domain the catalog is registered for.", + title="Domain", + description="The domain the catalog is registered for.", required=True) def getIdentifier(): @@ -149,8 +153,8 @@ class ITranslationDomain(Interface): """ domain = TextLine( - title=u"Domain Name", - description=u"The name of the domain this object represents.", + title="Domain Name", + description="The name of the domain this object represents.", required=True) def translate(msgid, mapping=None, context=None, target_language=None, @@ -177,7 +181,7 @@ class IFallbackTranslationDomainFactory(Interface): debugging i18n. """ - def __call__(domain_id=u""): + def __call__(domain_id=""): """Return a fallback translation domain for the given domain id. """ @@ -379,22 +383,22 @@ class INumberFormat(IFormat): """ type = Field( - title=u"Type", - description=((u"The type into which a string is parsed. If ``None``, " - u"then ``int`` will be used for whole numbers and " - u"``float`` for decimals.")), + title="Type", + description=("The type into which a string is parsed. If ``None``, " + "then ``int`` will be used for whole numbers and " + "``float`` for decimals."), default=None, required=False) symbols = Dict( - title=u"Number Symbols", + title="Number Symbols", key_type=Choice( - title=u"Dictionary Class", - values=(u"decimal", u"group", u"list", u"percentSign", - u"nativeZeroDigit", u"patternDigit", u"plusSign", - u"minusSign", u"exponential", u"perMille", - u"infinity", u"nan")), - value_type=TextLine(title=u"Symbol")) + title="Dictionary Class", + values=("decimal", "group", "list", "percentSign", + "nativeZeroDigit", "patternDigit", "plusSign", + "minusSign", "exponential", "perMille", + "infinity", "nan")), + value_type=TextLine(title="Symbol")) class IDateTimeFormat(IFormat): |