Changeset 7670


Ignore:
Timestamp:
19 Feb 2012, 18:42:02 (13 years ago)
Author:
Henrik Bettermann
Message:

Move MessageFactory? definition to w.s.interfaces to avoid conflicting imports.

Start translation of workflow (for demonstration).

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/__init__.py

    r7346 r7670  
    11import grok
    2 import zope.i18nmessageid
    32from waeup.sirp.interfaces import ISIRPObject
    43from zope.annotation.attribute import AttributeAnnotations
    54from zope.annotation.interfaces import IAnnotations
    6 
    7 MessageFactory = zope.i18nmessageid.MessageFactory('waeup.sirp')
    85
    96class SIRPAttributeAnnotations(AttributeAnnotations, grok.Adapter):
  • main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py

    r7664 r7670  
    1818import os
    1919import re
     20import zope.i18nmessageid
    2021from datetime import datetime
    2122from hurry.file.interfaces import IFileRetrieval
     
    3132from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
    3233
    33 CREATED = 'created'
    34 ADMITTED = 'admitted'
    35 CLEARANCE = 'clearance started'
    36 REQUESTED = 'clearance requested'
    37 CLEARED = 'cleared'
    38 PAID = 'school fee paid'
    39 RETURNING = 'returning'
    40 REGISTERED = 'courses registered'
    41 VALIDATED = 'courses validated'
     34_ = MessageFactory = zope.i18nmessageid.MessageFactory('waeup.sirp')
     35
     36CREATED = _('created')
     37ADMITTED = _('admitted')
     38CLEARANCE = _('clearance started')
     39REQUESTED = _('clearance requested')
     40CLEARED = _('cleared')
     41PAID = _('school fee paid')
     42RETURNING = _('returning')
     43REGISTERED = _('courses registered')
     44VALIDATED = _('courses validated')
    4245
    4346default_frontpage = u'' + open(os.path.join(
  • main/waeup.sirp/trunk/src/waeup/sirp/locales/de/LC_MESSAGES/waeup.sirp.po

    r7669 r7670  
    1515msgstr ""
    1616"Project-Id-Version: WAeUP.SIRP\n"
    17 "POT-Creation-Date: Sun Feb 19 17:46:58 2012\n"
    18 "PO-Revision-Date: 2012-02-19 10:51+0100\n"
     17"POT-Creation-Date: Sun Feb 19 19:32:13 2012\n"
     18"PO-Revision-Date: 2012-02-19 19:33+0100\n"
    1919"Last-Translator: Henrik Bettermann <henrik@waeup.org>\n"
    2020"Language-Team: WAeUP Germany <henrik@waeup.org>\n"
     
    5353msgstr ""
    5454
     55#: waeup/sirp/interfaces.py:36
     56msgid "created"
     57msgstr "neu"
     58
     59#: waeup/sirp/interfaces.py:37
     60msgid "admitted"
     61msgstr ""
     62
     63#: waeup/sirp/interfaces.py:38
     64msgid "clearance started"
     65msgstr ""
     66
     67#: waeup/sirp/interfaces.py:39
     68msgid "clearance requested"
     69msgstr ""
     70
     71#: waeup/sirp/interfaces.py:40
     72msgid "cleared"
     73msgstr ""
     74
     75#: waeup/sirp/interfaces.py:41
     76msgid "school fee paid"
     77msgstr ""
     78
     79#: waeup/sirp/interfaces.py:42
     80msgid "returning"
     81msgstr ""
     82
     83#: waeup/sirp/interfaces.py:43
     84msgid "courses registered"
     85msgstr ""
     86
     87#: waeup/sirp/interfaces.py:44
     88msgid "courses validated"
     89msgstr ""
     90
    5591#. Default: "Please solve the captcha<br />to prevent misuse of this service:"
    5692#: waeup/sirp/students/browser_templates/changepw.pt:26
     
    66102msgstr ""
    67103
     104#: waeup/sirp/students/workflow.py:30
     105msgid "Admit student"
     106msgstr "Student zulassen"
     107
    68108#. Default: "Name of faculty"
    69 #: waeup/sirp/university/interfaces.py:46
     109#: waeup/sirp/university/interfaces.py:47
    70110msgid "name_of_faculty"
    71111msgstr "Name der Fakultät"
  • main/waeup.sirp/trunk/src/waeup/sirp/locales/fr/LC_MESSAGES/waeup.sirp.po

    r7669 r7670  
    1515msgstr ""
    1616"Project-Id-Version: WAeUP.SIRP\n"
    17 "POT-Creation-Date: Sun Feb 19 17:46:58 2012\n"
     17"POT-Creation-Date: Sun Feb 19 19:32:13 2012\n"
    1818"PO-Revision-Date: 2012-02-19 10:32+0100\n"
    1919"Last-Translator: Issoufou Abba Moussa <isouaba@waeup.org>\n"
     
    5353msgstr ""
    5454
     55#: waeup/sirp/interfaces.py:36
     56msgid "created"
     57msgstr ""
     58
     59#: waeup/sirp/interfaces.py:37
     60msgid "admitted"
     61msgstr ""
     62
     63#: waeup/sirp/interfaces.py:38
     64msgid "clearance started"
     65msgstr ""
     66
     67#: waeup/sirp/interfaces.py:39
     68msgid "clearance requested"
     69msgstr ""
     70
     71#: waeup/sirp/interfaces.py:40
     72msgid "cleared"
     73msgstr ""
     74
     75#: waeup/sirp/interfaces.py:41
     76msgid "school fee paid"
     77msgstr ""
     78
     79#: waeup/sirp/interfaces.py:42
     80msgid "returning"
     81msgstr ""
     82
     83#: waeup/sirp/interfaces.py:43
     84msgid "courses registered"
     85msgstr ""
     86
     87#: waeup/sirp/interfaces.py:44
     88msgid "courses validated"
     89msgstr ""
     90
    5591#. Default: "Please solve the captcha<br />to prevent misuse of this service:"
    5692#: waeup/sirp/students/browser_templates/changepw.pt:26
     
    66102msgstr ""
    67103
     104#: waeup/sirp/students/workflow.py:30
     105msgid "Admit student"
     106msgstr ""
     107
    68108#. Default: "Name of faculty"
    69 #: waeup/sirp/university/interfaces.py:46
     109#: waeup/sirp/university/interfaces.py:47
    70110msgid "name_of_faculty"
    71111msgstr ""
  • main/waeup.sirp/trunk/src/waeup/sirp/locales/ha/LC_MESSAGES/waeup.sirp.po

    r7669 r7670  
    1515msgstr ""
    1616"Project-Id-Version: WAeUP.SIRP\n"
    17 "POT-Creation-Date: Sun Feb 19 17:46:58 2012\n"
     17"POT-Creation-Date: Sun Feb 19 19:32:13 2012\n"
    1818"PO-Revision-Date: 2012-02-19 10:49+0100\n"
    1919"Last-Translator: Henrik Bettermann <henrik@waeup.org>\n"
     
    5353msgstr ""
    5454
     55#: waeup/sirp/interfaces.py:36
     56msgid "created"
     57msgstr ""
     58
     59#: waeup/sirp/interfaces.py:37
     60msgid "admitted"
     61msgstr ""
     62
     63#: waeup/sirp/interfaces.py:38
     64msgid "clearance started"
     65msgstr ""
     66
     67#: waeup/sirp/interfaces.py:39
     68msgid "clearance requested"
     69msgstr ""
     70
     71#: waeup/sirp/interfaces.py:40
     72msgid "cleared"
     73msgstr ""
     74
     75#: waeup/sirp/interfaces.py:41
     76msgid "school fee paid"
     77msgstr ""
     78
     79#: waeup/sirp/interfaces.py:42
     80msgid "returning"
     81msgstr ""
     82
     83#: waeup/sirp/interfaces.py:43
     84msgid "courses registered"
     85msgstr ""
     86
     87#: waeup/sirp/interfaces.py:44
     88msgid "courses validated"
     89msgstr ""
     90
    5591#. Default: "Please solve the captcha<br />to prevent misuse of this service:"
    5692#: waeup/sirp/students/browser_templates/changepw.pt:26
     
    66102msgstr ""
    67103
     104#: waeup/sirp/students/workflow.py:30
     105msgid "Admit student"
     106msgstr ""
     107
    68108#. Default: "Name of faculty"
    69 #: waeup/sirp/university/interfaces.py:46
     109#: waeup/sirp/university/interfaces.py:47
    70110msgid "name_of_faculty"
    71111msgstr "Hausa Test"
  • main/waeup.sirp/trunk/src/waeup/sirp/locales/waeup.sirp.pot

    r7669 r7670  
    1515msgstr ""
    1616"Project-Id-Version: Development/Unknown\n"
    17 "POT-Creation-Date: Sun Feb 19 17:46:58 2012\n"
     17"POT-Creation-Date: Sun Feb 19 19:32:13 2012\n"
    1818"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1919"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    5050msgstr ""
    5151
     52#: waeup/sirp/interfaces.py:36
     53msgid "created"
     54msgstr ""
     55
     56#: waeup/sirp/interfaces.py:37
     57msgid "admitted"
     58msgstr ""
     59
     60#: waeup/sirp/interfaces.py:38
     61msgid "clearance started"
     62msgstr ""
     63
     64#: waeup/sirp/interfaces.py:39
     65msgid "clearance requested"
     66msgstr ""
     67
     68#: waeup/sirp/interfaces.py:40
     69msgid "cleared"
     70msgstr ""
     71
     72#: waeup/sirp/interfaces.py:41
     73msgid "school fee paid"
     74msgstr ""
     75
     76#: waeup/sirp/interfaces.py:42
     77msgid "returning"
     78msgstr ""
     79
     80#: waeup/sirp/interfaces.py:43
     81msgid "courses registered"
     82msgstr ""
     83
     84#: waeup/sirp/interfaces.py:44
     85msgid "courses validated"
     86msgstr ""
     87
    5288#: waeup/sirp/students/browser_templates/changepw.pt:26
    5389#: waeup/sirp/applicants/browser_templates/applicantregister.pt:26
     
    6399msgstr ""
    64100
    65 #: waeup/sirp/university/interfaces.py:46
     101#: waeup/sirp/students/workflow.py:30
     102msgid "Admit student"
     103msgstr ""
     104
     105#: waeup/sirp/university/interfaces.py:47
    66106#. Default: "Name of faculty"
    67107msgid "name_of_faculty"
  • main/waeup.sirp/trunk/src/waeup/sirp/locales/yo/LC_MESSAGES/waeup.sirp.po

    r7669 r7670  
    1515msgstr ""
    1616"Project-Id-Version: WAeUP.SIRP\n"
    17 "POT-Creation-Date: Sun Feb 19 17:46:58 2012\n"
     17"POT-Creation-Date: Sun Feb 19 19:32:13 2012\n"
    1818"PO-Revision-Date: 2012-02-19 10:57+0100\n"
    1919"Last-Translator: Henrik Bettermann <henrik@waeup.org>\n"
     
    5353msgstr ""
    5454
     55#: waeup/sirp/interfaces.py:36
     56msgid "created"
     57msgstr ""
     58
     59#: waeup/sirp/interfaces.py:37
     60msgid "admitted"
     61msgstr ""
     62
     63#: waeup/sirp/interfaces.py:38
     64msgid "clearance started"
     65msgstr ""
     66
     67#: waeup/sirp/interfaces.py:39
     68msgid "clearance requested"
     69msgstr ""
     70
     71#: waeup/sirp/interfaces.py:40
     72msgid "cleared"
     73msgstr ""
     74
     75#: waeup/sirp/interfaces.py:41
     76msgid "school fee paid"
     77msgstr ""
     78
     79#: waeup/sirp/interfaces.py:42
     80msgid "returning"
     81msgstr ""
     82
     83#: waeup/sirp/interfaces.py:43
     84msgid "courses registered"
     85msgstr ""
     86
     87#: waeup/sirp/interfaces.py:44
     88msgid "courses validated"
     89msgstr ""
     90
    5591#. Default: "Please solve the captcha<br />to prevent misuse of this service:"
    5692#: waeup/sirp/students/browser_templates/changepw.pt:26
     
    66102msgstr ""
    67103
     104#: waeup/sirp/students/workflow.py:30
     105msgid "Admit student"
     106msgstr ""
     107
    68108#. Default: "Name of faculty"
    69 #: waeup/sirp/university/interfaces.py:46
     109#: waeup/sirp/university/interfaces.py:47
    70110msgid "name_of_faculty"
    71111msgstr "Yoruba Test"
  • main/waeup.sirp/trunk/src/waeup/sirp/students/workflow.py

    r7652 r7670  
    99    CREATED, ADMITTED, CLEARANCE, REQUESTED, CLEARED, PAID, RETURNING,
    1010    REGISTERED, VALIDATED)
     11from waeup.sirp.interfaces import MessageFactory as _
    1112from waeup.sirp.workflow import SIRPWorkflow, SIRPWorkflowInfo
    1213from waeup.sirp.students.interfaces import IStudent, IStudentsUtils
     
    2728    Transition(
    2829        transition_id = 'admit',
    29         title = 'Admit student',
     30        title = _('Admit student'),
    3031        msg = 'Student admitted',
    3132        source = CREATED,
  • main/waeup.sirp/trunk/src/waeup/sirp/university/interfaces.py

    r7667 r7670  
    1818"""Interfaces of academics specific objects.
    1919"""
     20
    2021from zope import schema
    2122from zope.interface import Attribute
     23import zope.i18nmessageid
    2224from waeup.sirp.interfaces import (ISIRPObject, ISIRPContainer)
    23 from waeup.sirp import MessageFactory as _
    24 
     25from waeup.sirp.interfaces import MessageFactory as _
    2526from waeup.sirp.university.vocabularies import (
    2627    course_levels,
  • main/waeup.sirp/trunk/src/waeup/sirp/widgets/phonewidget.py

    r7668 r7670  
    3131import re
    3232import copy
    33 from waeup.sirp import MessageFactory as _
     33from waeup.sirp.interfaces import MessageFactory as _
    3434from zope import schema
    3535from zope.browserpage import ViewPageTemplateFile
Note: See TracChangeset for help on using the changeset viewer.