[PR #11323] [MERGED] 11271 flag to disable localization #13768

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11323
Author: @arthanson
Created: 12/27/2022
Status: Merged
Merged: 12/29/2022
Merged by: @jeremystretch

Base: developHead: 11271-disable-localization


📝 Commits (4)

  • fb112d5 11271 flag to disable localization
  • e5267c9 11271 change to remove middleware
  • 5d4f24d 11271 update docs for new var
  • 063b382 Update docs/configuration/system.md

📊 Changes

3 files changed (+22 additions, -0 deletions)

View changed files

📝 docs/configuration/system.md (+8 -0)
📝 netbox/netbox/configuration_example.py (+3 -0)
📝 netbox/netbox/settings.py (+11 -0)

📄 Description

Fixes: #11271

Add configuration.py flag to ENABLE_LOCALIZATION (default False) so this will disable localization by default. There are a couple issues with the localization that we will need to address in the future to enable this:

  1. provide localization language files if we want to turn on USE_I18N
  2. Fix a couple UI issues with localized commas in numbers breaking progress bars
  3. Allow an override to DATE_FORMAT and such as USE_L10N will take the browser setting as precedence over DATE_FORMAT. It sounds like users want to be able to control this directly so will probably need to be another setting (CUSTOM_DATE_FORMAT)

🔄 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/11323 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 12/27/2022 **Status:** ✅ Merged **Merged:** 12/29/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `11271-disable-localization` --- ### 📝 Commits (4) - [`fb112d5`](https://github.com/netbox-community/netbox/commit/fb112d5be136bedd3387e4660a1b4733454c857e) 11271 flag to disable localization - [`e5267c9`](https://github.com/netbox-community/netbox/commit/e5267c99bd2966599df06c56dd3b1203f7149e60) 11271 change to remove middleware - [`5d4f24d`](https://github.com/netbox-community/netbox/commit/5d4f24d4b285cc9d8831efc1d6ac035d01ec9b29) 11271 update docs for new var - [`063b382`](https://github.com/netbox-community/netbox/commit/063b382e292ea2f897508ac08f74db184b264d4b) Update docs/configuration/system.md ### 📊 Changes **3 files changed** (+22 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/configuration/system.md` (+8 -0) 📝 `netbox/netbox/configuration_example.py` (+3 -0) 📝 `netbox/netbox/settings.py` (+11 -0) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #11271 <!-- Please include a summary of the proposed changes below. --> Add configuration.py flag to ENABLE_LOCALIZATION (default False) so this will disable localization by default. There are a couple issues with the localization that we will need to address in the future to enable this: 1. provide localization language files if we want to turn on USE_I18N 2. Fix a couple UI issues with localized commas in numbers breaking progress bars 3. Allow an override to DATE_FORMAT and such as USE_L10N will take the browser setting as precedence over DATE_FORMAT. It sounds like users want to be able to control this directly so will probably need to be another setting (CUSTOM_DATE_FORMAT) --- <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:20:41 +01:00
adam closed this issue 2025-12-29 23:20:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13768