Skip to content

Conversation

@oliviermarquez
Copy link
Contributor

fixes tab buttons of student's dahsboard for i18n

fixes tab buttons of student's dahsboard for i18n
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a regular python file, not a mako template, so you don't need to the extra {} around the call to _.

_{ } brackets removed for i18n (not needed as regular python file)
@adampalay
Copy link
Contributor

needs to import ugettext:
from django.utils.translation import ugettext as _

Copy link
Contributor

Choose a reason for hiding this comment

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

With respect to breaking long lines, please see https://github.com/edx/edx-platform/wiki/Python-Guidelines

It's more readable to be like

course.tabs = [
    {"type": "courseware"},
    ....
    {"type": "progress", "name": _("Progress")},
]

The trailing comma I put at the end of "progress" line is OK - it's Python! 😄

@sarina
Copy link
Contributor

sarina commented Oct 4, 2013

Aside from doing the import as Adam asks, can you please also squash your commits down to one commit, since this is such a minor change? See http://git-scm.com/book/en/Git-Tools-Rewriting-History

The way you do is via an interactive rebase.

@oliviermarquez
Copy link
Contributor Author

code was added in this file since my fork.

do i need to fork it again ?

@sarina
Copy link
Contributor

sarina commented Oct 4, 2013

You might just want to close this PR, make a new fork, and apply your changes freshly. Then open a new PR. I think that's the easiest route.

@sarina
Copy link
Contributor

sarina commented Oct 4, 2013

The benefit of that approach too is you will not have to rebase as you can make all the changes, incorporating review comments, in just one commit.

@adampalay
Copy link
Contributor

I don't think you need to. You can rebase your branch onto edx's latest master by running:

$ git fetch --all; git rebase edx/master

@adampalay adampalay closed this Oct 4, 2013
@adampalay adampalay reopened this Oct 4, 2013
@adampalay
Copy link
Contributor

actually I agree with sarina, I'd just open a new pr :)

@sarina
Copy link
Contributor

sarina commented Oct 7, 2013

@oliviermarquez we'd like to keep our PRs pruned as much as possible. If you plan to open a new PR, please close this one. Otherwise, please update it and comment when you've made the update. Thanks!

@nparlante
Copy link
Contributor

Hey I just noticed this going by by dumb chance. You should probably
update the primitive_insert as well at the bottom of tabs.py file.

Cheers,

Nick

On 10/7/13 8:04 AM, Sarina Canelake wrote:

@oliviermarquez https://github.com/oliviermarquez we'd like to keep
our PRs pruned as much as possible. If you plan to open a new PR,
please close this one. Otherwise, please update it and comment when
you've made the update. Thanks!


Reply to this email directly or view it on GitHub
https://github.com/edx/edx-platform/pull/757#issuecomment-25815958.

@oliviermarquez oliviermarquez mentioned this pull request Oct 7, 2013
@oliviermarquez oliviermarquez deleted the patch-1 branch October 8, 2013 06:40
This was referenced Oct 24, 2013
@ovnicraft
Copy link
Contributor

@oliviermarquez Hi will you open a new PR ? i am working in this we can colaborate.

@oliviermarquez
Copy link
Contributor Author

last PR was about words not checked to be translated (working on french
translation).
I need to create an actual instance, sandbox of edx, use it a little to
find buttons, menus, pages that were forgotten.
It also help me to find a better translation for some words, some
sentences, as i can see them in their context.

i have no pr ready to submit actually.

2013/10/30 Cristian Salamea notifications@github.com

@oliviermarquez https://github.com/oliviermarquez Hi will you open a
new PR ? i am working in this we can colaborate.


Reply to this email directly or view it on GitHubhttps://github.com/edx/edx-platform/pull/757#issuecomment-27410395
.

@ovnicraft
Copy link
Contributor

@oliviermarquez Ok, i can work in this and make a PR.

@sarina
Copy link
Contributor

sarina commented Oct 30, 2013

@ovnicraft if you look, @oliviermarquez updated the pull request a few times, first #1234 then #1489 finally #1507 (this is not advised, we prefer that you keep the same pull request open and perform rebasing). However - click through those PRs to see the discussion that was made. A version of this code was finally merged in #1507

@ovnicraft
Copy link
Contributor

@sarina Yes, i see it was merged.

Thanks for comment !

chrisrossi pushed a commit to jazkarta/edx-platform that referenced this pull request Mar 31, 2014
…ons-ie

Fix forums in IE9; apparently it's just very strict about the charset be...
jenkins-ks pushed a commit to nttks/edx-platform that referenced this pull request Apr 19, 2016
caesar2164 pushed a commit to caesar2164/edx-platform that referenced this pull request Feb 16, 2018
* stv/pick/fix-show-answer:
  Fixing quality
  Fix Show Answer button display for the value "Answered" in studio
andrey-canon pushed a commit to eduNEXT/edx-platform that referenced this pull request Jun 5, 2018
DanielVZ96 referenced this pull request in open-craft/edx-platform Jan 31, 2024
navinkarkera pushed a commit that referenced this pull request Mar 28, 2025
…36371)

* refactor: convert libraries API from attr.s to dataclass, fix types

* fix: make corresponding updates to 'search' code

* feat: use new version of openedx-learning with containers support

* temp: Use opencraft branch of opaquekeys

* refactor: Use LibraryElementKey instead of LibraryCollectionKey

* refactor: split libraries API & REST API up into smaller modules

* feat: new REST API for units in content libraries

* feat: python+REST API to get a unit

* feat: auto-generate slug/key/ID from title of units

* feat: generate search index documents for containers

* refactor: rename LibraryElementKey to LibraryItemKey

* fix: lint error

* feat: adds new units to search index on create/update

and when running reindex_studio.

Updates requirements for openedx-events and openedx-learning to support
these changes.

* fix: pylint

* fix: temp requirement

* fix: search index container events/tasks

* feat: add get_library_container_usage_key to libraries API

and use it when search indexing containers

* fix: index all containers during reindex_studio

* chore: bump openedx-events requirement

* fix: address review comments

* chore: bumps openedx-learning to 0.19.1

* fix: rename api method to library_container_locator

since container keys are locators, not usage keys

* chore: bumps opaque-keys dependency

* test: fix misnamed unit_usage_key

* feat: adds APIs to update or delete a container (#757)

* feat: adds python and REST APIs to update a container's display_name
* refactor: adds _get_container method to api to reduce code duplication
* feat: adds python and REST APIs to delete a container
* test: add container permission tests

---------

Co-authored-by: XnpioChV <xnpiochv@gmail.com>
Co-authored-by: Jillian Vogel <jill@opencraft.com>
Co-authored-by: Rômulo Penido <romulo.penido@gmail.com>
irtazaakram pushed a commit that referenced this pull request Apr 10, 2025
…36371)

* refactor: convert libraries API from attr.s to dataclass, fix types

* fix: make corresponding updates to 'search' code

* feat: use new version of openedx-learning with containers support

* temp: Use opencraft branch of opaquekeys

* refactor: Use LibraryElementKey instead of LibraryCollectionKey

* refactor: split libraries API & REST API up into smaller modules

* feat: new REST API for units in content libraries

* feat: python+REST API to get a unit

* feat: auto-generate slug/key/ID from title of units

* feat: generate search index documents for containers

* refactor: rename LibraryElementKey to LibraryItemKey

* fix: lint error

* feat: adds new units to search index on create/update

and when running reindex_studio.

Updates requirements for openedx-events and openedx-learning to support
these changes.

* fix: pylint

* fix: temp requirement

* fix: search index container events/tasks

* feat: add get_library_container_usage_key to libraries API

and use it when search indexing containers

* fix: index all containers during reindex_studio

* chore: bump openedx-events requirement

* fix: address review comments

* chore: bumps openedx-learning to 0.19.1

* fix: rename api method to library_container_locator

since container keys are locators, not usage keys

* chore: bumps opaque-keys dependency

* test: fix misnamed unit_usage_key

* feat: adds APIs to update or delete a container (#757)

* feat: adds python and REST APIs to update a container's display_name
* refactor: adds _get_container method to api to reduce code duplication
* feat: adds python and REST APIs to delete a container
* test: add container permission tests

---------

Co-authored-by: XnpioChV <xnpiochv@gmail.com>
Co-authored-by: Jillian Vogel <jill@opencraft.com>
Co-authored-by: Rômulo Penido <romulo.penido@gmail.com>
tonybusa pushed a commit to tonybusa/edx-platform that referenced this pull request Apr 23, 2025
…penedx#36371)

* refactor: convert libraries API from attr.s to dataclass, fix types

* fix: make corresponding updates to 'search' code

* feat: use new version of openedx-learning with containers support

* temp: Use opencraft branch of opaquekeys

* refactor: Use LibraryElementKey instead of LibraryCollectionKey

* refactor: split libraries API & REST API up into smaller modules

* feat: new REST API for units in content libraries

* feat: python+REST API to get a unit

* feat: auto-generate slug/key/ID from title of units

* feat: generate search index documents for containers

* refactor: rename LibraryElementKey to LibraryItemKey

* fix: lint error

* feat: adds new units to search index on create/update

and when running reindex_studio.

Updates requirements for openedx-events and openedx-learning to support
these changes.

* fix: pylint

* fix: temp requirement

* fix: search index container events/tasks

* feat: add get_library_container_usage_key to libraries API

and use it when search indexing containers

* fix: index all containers during reindex_studio

* chore: bump openedx-events requirement

* fix: address review comments

* chore: bumps openedx-learning to 0.19.1

* fix: rename api method to library_container_locator

since container keys are locators, not usage keys

* chore: bumps opaque-keys dependency

* test: fix misnamed unit_usage_key

* feat: adds APIs to update or delete a container (openedx#757)

* feat: adds python and REST APIs to update a container's display_name
* refactor: adds _get_container method to api to reduce code duplication
* feat: adds python and REST APIs to delete a container
* test: add container permission tests

---------

Co-authored-by: XnpioChV <xnpiochv@gmail.com>
Co-authored-by: Jillian Vogel <jill@opencraft.com>
Co-authored-by: Rômulo Penido <romulo.penido@gmail.com>
UsamaSadiq pushed a commit that referenced this pull request May 14, 2025
…36371)

* refactor: convert libraries API from attr.s to dataclass, fix types

* fix: make corresponding updates to 'search' code

* feat: use new version of openedx-learning with containers support

* temp: Use opencraft branch of opaquekeys

* refactor: Use LibraryElementKey instead of LibraryCollectionKey

* refactor: split libraries API & REST API up into smaller modules

* feat: new REST API for units in content libraries

* feat: python+REST API to get a unit

* feat: auto-generate slug/key/ID from title of units

* feat: generate search index documents for containers

* refactor: rename LibraryElementKey to LibraryItemKey

* fix: lint error

* feat: adds new units to search index on create/update

and when running reindex_studio.

Updates requirements for openedx-events and openedx-learning to support
these changes.

* fix: pylint

* fix: temp requirement

* fix: search index container events/tasks

* feat: add get_library_container_usage_key to libraries API

and use it when search indexing containers

* fix: index all containers during reindex_studio

* chore: bump openedx-events requirement

* fix: address review comments

* chore: bumps openedx-learning to 0.19.1

* fix: rename api method to library_container_locator

since container keys are locators, not usage keys

* chore: bumps opaque-keys dependency

* test: fix misnamed unit_usage_key

* feat: adds APIs to update or delete a container (#757)

* feat: adds python and REST APIs to update a container's display_name
* refactor: adds _get_container method to api to reduce code duplication
* feat: adds python and REST APIs to delete a container
* test: add container permission tests

---------

Co-authored-by: XnpioChV <xnpiochv@gmail.com>
Co-authored-by: Jillian Vogel <jill@opencraft.com>
Co-authored-by: Rômulo Penido <romulo.penido@gmail.com>
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.

6 participants