Skip to content

Conversation

@adampalay
Copy link
Contributor

Distinguishes between graderType and display in order to allow "Not Graded" to be internationalized.

@dmitchell , is this what you had in mind for https://edx-wiki.atlassian.net/browse/STUD-989?
@zubair-arbi

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably should call get_text('Not Graded') and also in the != test below this (perhaps test != u'Not Graded' and != get_text('Not Graded')) yuck. Hmmm, I need to read thru all the code for this page not just what's in this PR to figure this out. I'll look at it friday.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, the problem is that L227 in item.py can't handle None as an asserted value for grader_type as None may mean that it wasn't provided. Perhaps change L129 to give a different default if 'graderType' is missing so that None means 'graderType' == None? Then you can get rid of the 'Not Graded' references (L176, L182) in this file, There are probably other changes.

In general, I think the value should be None/null for not set and the client should be the only one that knows it should use the l10n 'Not Graded' string w/ its unique display formatting.

@adampalay adampalay closed this Dec 30, 2013
@benpatterson benpatterson deleted the adam/i18n-not-graded branch January 21, 2015 13:12
jenkins-ks pushed a commit to nttks/edx-platform that referenced this pull request Aug 8, 2017
jenkins-ks pushed a commit to nttks/edx-platform that referenced this pull request Sep 7, 2017
* addition of test code of the certificate issuance function openedx#2038 (openedx#2054)

* Mod translation of 'Course End Date:' openedx#2084 (openedx#2090)

* Add menu to ga_operation for ga_analyzer openedx#2039 (openedx#2088)

* Fixed bugs openedx#2039 (openedx#2112)

* Fixed csv format openedx#2039 (openedx#2127)

* Change to split download if there are many display items openedx#916 (openedx#2121)

* Change to split download if there are many display items openedx#916

* Fix UT

* Fix Review

* Fix review2
shimulch pushed a commit to open-craft/openedx-platform that referenced this pull request Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants