EduploneTest EduploneAnswerSchema.py,1.1.1.1,1.2 EduploneTaskSchema.py,1.3,1.4

"Radim Novotny \(naro\)" <[email protected]>
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneTest
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6319

Modified Files:
	EduploneAnswerSchema.py EduploneTaskSchema.py 
Log Message:
added i18n with eduplone domain. Sources translated from German to English

Index: EduploneTaskSchema.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneTest/EduploneTaskSchema.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** EduploneTaskSchema.py	1 Oct 2004 22:15:17 -0000	1.3
--- EduploneTaskSchema.py	5 Oct 2004 18:19:06 -0000	1.4
***************
*** 14,22 ****
  from config import *
  
- #from Products.ATVocabularyManager.NamedVocabulary import NamedVocabulary
- #from Products.ATVocabularyManager.widgets.TreeSelectionWidget import TreeSelectionWidget
- 
- 
- 
  if HAS_LINGUA_PLONE:
      from Products.LinguaPlone.public import *
--- 14,17 ----
***************
*** 24,36 ****
      from Products.Archetypes.public import *
  
  Vergl = {}
! Vergl["singlechoice"] = "Markieren Sie die richtige Loesung"
! Vergl["multichoice"] = "Markieren Sie die richtigen Loesungen"
! Vergl["matching"] = "Ordnen Sie die passenden Paare einander zu"
  Vergl["texttask"] = "Tragen Sie die richtige Loesung in die Eingabezeile ein"
! Vergl["freetext"] = "Tragen Sie Ihre Antwort in das Eingabefeld ein"
! Vergl["truefalse"] = "Markieren Sie die zutreffende Aussagen mit Wahr, die unzutreffenden mit Falsch"
! Vergl["fillgap"] = "Vervollstaendigen Sie den Text."
! 
  
  
--- 19,33 ----
      from Products.Archetypes.public import *
  
+ import Products.generator.i18n as i18n
+ 
  Vergl = {}
! Vergl["singlechoice"] = "Select correct answer"
! Vergl["multichoice"] = "Select correct answers"
! Vergl["matching"] = "Assign matching pairs"
  Vergl["texttask"] = "Tragen Sie die richtige Loesung in die Eingabezeile ein"
! Vergl["freetext"] = "Enter your answer here"
! Vergl["truefalse"] = "Select the appropriate statements with True, the incorrect with False"
! Vergl["fillgap"] = "Complete the text"
!   
  
  
***************
*** 46,61 ****
                                   'text/plain',
                                   'text/plain-pre',
!                                  'text/python-source',),
          languageIndependent=1,
          searchable = 1,
          required = 1,
!         default = 'Geben Sie hier den Fragetext ein.',
!         widget = EpozWidget(description = u"Fragetext/Aufgabenstellung",
                               description_msgid = "help_question",
!                              label = "Fragetext",
                               label_msgid = "label_question",
                               i18n_domain="eduplone",
                               rows = 4)
!     ) ## hier koennte auch ein RichWidget sein...
  
  
--- 43,58 ----
                                   'text/plain',
                                   'text/plain-pre',
!                                  'text/python-source',), 
          languageIndependent=1,
          searchable = 1,
          required = 1,
!         default = 'Enter question here',
!         widget = RichWidget(description = "Question",
                               description_msgid = "help_question",
!                              label = "Enter question",
                               label_msgid = "label_question",
                               i18n_domain="eduplone",
                               rows = 4)
!     )
  
  
***************
*** 64,70 ****
      ''' '''
      if question_typ in Vergl.keys():
!         return Vergl[question_typ]
      else:
!         return "Lösen sie diese Aufgabe"
  
  def InstructionField(question_typ):
--- 61,67 ----
      ''' '''
      if question_typ in Vergl.keys():
!         return i18n.translate('eduplone', Vergl[question_typ])
      else:
!         return i18n.translate('eduplone', "Do not solve this task")
  
  def InstructionField(question_typ):
***************
*** 75,81 ****
          required = 0,
          default = getDefaultValue(question_typ),
!         widget = TextAreaWidget(description = u"Arbeitsanweisung, erscheint unter der Frage",
                                   description_msgid = "help_instruction",
!                                  label = "Arbeitsanweisung",
                                   label_msgid = "label_instruction",
                                   i18n_domain="eduplone",
--- 72,78 ----
          required = 0,
          default = getDefaultValue(question_typ),
!         widget = TextAreaWidget(description = u"Instructions, which appears under question",
                                   description_msgid = "help_instruction",
!                                  label = "Instructions",
                                   label_msgid = "label_instruction",
                                   i18n_domain="eduplone",
***************
*** 91,96 ****
          default = 10,
          widget = IntegerWidget(description = u"Score for this questions",
!                                  description_msgid = "help_instruction",
!                                  label = "Punktzahl",
                                   label_msgid = "label_score",
                                   i18n_domain="eduplone",
--- 88,93 ----
          default = 10,
          widget = IntegerWidget(description = u"Score for this questions",
!                                  description_msgid = "help_score",
!                                  label = "Score",
                                   label_msgid = "label_score",
                                   i18n_domain="eduplone",
***************
*** 105,110 ****
          default = 0,
          widget = BooleanWidget(description = u"Strict evaluation",
!                                  description_msgid = "help_instruction",
!                                  label = "strict",
                                   label_msgid = "label_strict",
                                   i18n_domain="eduplone",
--- 102,107 ----
          default = 0,
          widget = BooleanWidget(description = u"Strict evaluation",
!                                  description_msgid = "help_strict",
!                                  label = "Strict",
                                   label_msgid = "label_strict",
                                   i18n_domain="eduplone",

Index: EduploneAnswerSchema.py
===================================================================
RCS file: /cvsroot/eduplone/EduploneTest/EduploneAnswerSchema.py,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** EduploneAnswerSchema.py	28 Sep 2004 21:08:46 -0000	1.1.1.1
--- EduploneAnswerSchema.py	5 Oct 2004 18:19:06 -0000	1.2
***************
*** 52,56 ****
  				   required=1,
  				   widget=LinesWidget(
! 			   		  description = u"Enter the terms the text should contain. They will be highlighted in appraisal. Each term in one line, please..."
  				   ),
  				)
--- 52,60 ----
  				   required=1,
  				   widget=LinesWidget(
!                                           label='Correct answer',
!                                           label_msgid='label_correct_answer',
! 			   		  description = u"Enter the terms the text should contain. They will be highlighted in appraisal. Each term in one line, please...",
!                                           description_msgid='help_correct_answer_texttask',
!                                           i18n_domain='eduplone'
  				   ),
  				)
***************
*** 61,65 ****
      				  required=1,
          			  widget=StringWidget(
!         			    	 description = u"The Answer"
          			 ),
  				)
--- 65,73 ----
      				  required=1,
          			  widget=StringWidget(
!                                           label='Correct answer',
!                                           label_msgid='label_correct_answer',
!         			    	  description = u"Answer",
!                                           description_msgid='help_correct_answer_matching',
!                                           i18n_domain='eduplone'
          			 ),
  				)
***************
*** 70,74 ****
                     	required=1,
                     	widget=LinesWidget(
!                       description = u"Enter the correct answers. Each term in one line, please..."
     					 ),
     			    )
--- 78,86 ----
                     	required=1,
                     	widget=LinesWidget(
!                                           label='Correct answer',
!                                           label_msgid='label_correct_answer',
!                                           description = u"Enter the correct answers. Each term in one line, please...",
!                                           description_msgid='help_correct_answer_fillgap',
!                                           i18n_domain='eduplone'
     					 ),
     			    )
***************
*** 79,83 ****
  				      validators=('onlyOneCorrectAnswer',),
  				      widget = BooleanWidget(
! 				    	       description = u"Is this answer correct?"
  					       ),
  				    )
--- 91,99 ----
  				      validators=('onlyOneCorrectAnswer',),
  				      widget = BooleanWidget(
!                                           label='Correct answer',
!                                           label_msgid='label_correct_answer',
!                                           description = u"Is this answer correct?",
!                                           description_msgid='help_correct_answer_singlechoice',
!                                           i18n_domain='eduplone'
  					       ),
  				    )
***************
*** 90,94 ****
  				      default = 1,
  				      widget = BooleanWidget(
! 				    	       description = u"Is this answer correct?"
  					       ),
  				    )
--- 106,114 ----
  				      default = 1,
  				      widget = BooleanWidget(
!                                           label='Correct answer',
!                                           label_msgid='label_correct_answer',
!                                           description = u"Is this answer correct?",
!                                           description_msgid='help_correct_answer_multichoice',
!                                           i18n_domain='eduplone'
  					       ),
  				    )



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.