apluslms / a-plus

A+ frontend portal - A+ LMS documentation:
https://apluslms.github.io/
Other
64 stars 72 forks source link

News in multiple languages #1350

Closed mikaelGusse closed 3 months ago

mikaelGusse commented 3 months ago

Description

What?

https://github.com/apluslms/a-plus/assets/159019283/3c184456-cbdd-4206-862e-9adf40b6904b

Adds the option to create news items in a specific language while preserving the possibility to create news items that are visible for everyone.

Why?

Suggested by teachers and further facilitates easier management of multilingual courses.

How?

Added a datapoint to the news model for language and updated the news creation form to allow the user to choose the language of the object.

Fixes #1134

Testing

Remember to add or update unit tests for new features and changes.

What type of test did you run?

Went into the views where the news were visible and made sure everything worked.

Did you test the changes in

Think of what is affected by these changes and could become broken

Translation

Programming style

Have you updated the README or other relevant documentation?

Is it Done?

Clean up your git commit history before submitting the pull request!