Changeset 7667 for main


Ignore:
Timestamp:
19 Feb 2012, 10:04:15 (13 years ago)
Author:
Henrik Bettermann
Message:

Start first translations: French, Hausa and Yoruba. I used the 'Name of faculty' string for testing.

Documentation: http://grok.zope.org/documentation/how-to/how-to-internationalize-your-application

In combination with poEdit it's really fun!

Now we need a language selector to not only depend on the Accept-Language header of the HTTP-request.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
18 added
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/configure.zcml

    r7500 r7667  
    11<configure xmlns="http://namespaces.zope.org/zope"
    2            xmlns:grok="http://namespaces.zope.org/grok">
     2           xmlns:grok="http://namespaces.zope.org/grok"
     3           xmlns:i18n="http://namespaces.zope.org/i18n">
    34  <include package="grok" />
    45  <include package="waeup.sirp" file="meta.zcml" />
    56  <includeDependencies package="." />
    67  <grok:grok package="." />
     8  <i18n:registerTranslations directory="locales" />
    79
    810  <includeOverrides package="waeup.sirp.utils" file="overrides.zcml" />
  • main/waeup.sirp/trunk/src/waeup/sirp/university/interfaces.py

    r7665 r7667  
    2121from zope.interface import Attribute
    2222from waeup.sirp.interfaces import (ISIRPObject, ISIRPContainer)
     23from waeup.sirp import MessageFactory as _
    2324
    2425from waeup.sirp.university.vocabularies import (
     
    4344
    4445    title = schema.TextLine(
    45         title = u'Name of faculty',
     46        title = _(u'name_of_faculty', default=u'Name of faculty'),
    4647        default = u'Unnamed',
    4748        required = True,
Note: See TracChangeset for help on using the changeset viewer.