2010-05-17 16:54:40 |
Douglas Cerna |
description |
When I use the Spanish (es) or Salvadoran Spanish (es_SV) translations in the gradebook, and I try to create a Report Activity in a Report Template Sheet, the view keeps asking me for a required input in the score system field.
From what I can see this bug is caused by the use of titles as the values of the <option ...> elements in the Score System dropdown. The English form shows:
<option value="-- Use range below --" id="form-widgets-scoresystem-0">-- Use range below --</option>
In Spanish this changes to:
<option value="-- Use el rango de abajo --" id="form-widgets-scoresystem-0">-- Use el rango de abajo --</option>
I guess the term creation has to be changed in schooltool.gradebook.browser.report_card:
def ReportScoreSystemsVocabulary(context):
vocab = UtilityVocabulary(context, interface=IScoreSystem)
rangedTerm = UtilityTerm('ranged', _('-- Use range below --'))
vocab._terms[rangedTerm.token] = rangedTerm
return vocab
Although I still don't know how zope.componentvocabulary.vocabulary.(UtilityVocabulary, UtilityTerm) work. |
When I use the Spanish (es) or Salvadoran Spanish (es_SV) translations in the gradebook, and I try to create a Report Activity in a Report Sheet Template, the view keeps asking me for a required input in the score system field.
From what I can see this bug is caused by the use of titles as the values of the <option ...> elements in the Score System dropdown. The English form shows:
<option value="-- Use range below --" id="form-widgets-scoresystem-0">-- Use range below --</option>
In Spanish this changes to:
<option value="-- Use el rango de abajo --" id="form-widgets-scoresystem-0">-- Use el rango de abajo --</option>
I guess the term creation has to be changed in schooltool.gradebook.browser.report_card:
def ReportScoreSystemsVocabulary(context):
vocab = UtilityVocabulary(context, interface=IScoreSystem)
rangedTerm = UtilityTerm('ranged', _('-- Use range below --'))
vocab._terms[rangedTerm.token] = rangedTerm
return vocab
Although I still don't know how zope.componentvocabulary.vocabulary.(UtilityVocabulary, UtilityTerm) work.
|
|