[PR #14580] [MERGED] Closes #14579: Add user language preference #14412

Closed
opened 2025-12-29 23:24:20 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/14580
Author: @jeremystretch
Created: 12/21/2023
Status: Merged
Merged: 12/21/2023
Merged by: @jeremystretch

Base: featureHead: 14579-language-preference


📝 Commits (1)

📊 Changes

4 files changed (+35 additions, -7 deletions)

View changed files

📝 netbox/account/views.py (+11 -2)
📝 netbox/netbox/preferences.py (+14 -5)
📝 netbox/netbox/settings.py (+9 -0)
📝 netbox/users/forms/model_forms.py (+1 -0)

📄 Description

Fixes: #14579

  • Declare the list of supported languages in settings.LANGUAGES (these are being added)
  • Introduce a new UserConfig parameter: locale.language
  • Extend UserConfigView to set/clear the language cookie depending on the value of this parameter

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/14580 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 12/21/2023 **Status:** ✅ Merged **Merged:** 12/21/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `14579-language-preference` --- ### 📝 Commits (1) - [`9d8556c`](https://github.com/netbox-community/netbox/commit/9d8556c0b180417ecc07d6250f9d0b6d74895e6c) Closes #14579: Add user language preference ### 📊 Changes **4 files changed** (+35 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `netbox/account/views.py` (+11 -2) 📝 `netbox/netbox/preferences.py` (+14 -5) 📝 `netbox/netbox/settings.py` (+9 -0) 📝 `netbox/users/forms/model_forms.py` (+1 -0) </details> ### 📄 Description ### Fixes: #14579 - Declare the list of supported languages in `settings.LANGUAGES` (these are being added) - Introduce a new UserConfig parameter: `locale.language` - Extend UserConfigView to set/clear the language cookie depending on the value of this parameter --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:24:20 +01:00
adam closed this issue 2025-12-29 23:24:21 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14412