Skip to content

Commit 9c7f2ec

Browse files
Merge pull request #18064 from netbox-community/develop
Release v4.1.7
2 parents 58bc388 + 3b3990a commit 9c7f2ec

File tree

65 files changed

+10147
-10251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+10147
-10251
lines changed

.github/ISSUE_TEMPLATE/01-feature_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ body:
1414
attributes:
1515
label: NetBox version
1616
description: What version of NetBox are you currently running?
17-
placeholder: v4.1.6
17+
placeholder: v4.1.7
1818
validations:
1919
required: true
2020
- type: dropdown

.github/ISSUE_TEMPLATE/02-bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ body:
3939
attributes:
4040
label: NetBox Version
4141
description: What version of NetBox are you currently running?
42-
placeholder: v4.1.6
42+
placeholder: v4.1.7
4343
validations:
4444
required: true
4545
- type: dropdown

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ on:
1515
permissions:
1616
contents: read
1717

18+
# Add concurrency group to control job running
19+
concurrency:
20+
group: ${{ github.event_name }}-${{ github.ref }}-${{ github.actor }}
21+
cancel-in-progress: true
22+
1823
jobs:
1924
build:
2025
runs-on: ubuntu-latest

.tx/config

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[main]
2+
host = https://app.transifex.com
3+
4+
[o:netbox-community:p:netbox:r:9cbf4fcf95b3d92e4ebbf1a5e5d1caee]
5+
file_filter = netbox/translations/<lang>/LC_MESSAGES/django.po
6+
source_file = netbox/translations/en/LC_MESSAGES/django.po
7+
type = PO
8+
minimum_perc = 0
9+
resource_name = django.po
10+
replace_edited_strings = false
11+
keep_translations = false
12+

base_requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ django-rich
4242

4343
# Django integration for RQ (Reqis queuing)
4444
# https://github.com/rq/django-rq/blob/master/CHANGELOG.md
45-
django-rq<3.0
45+
django-rq
4646

4747
# Abstraction models for rendering and paginating HTML tables
4848
# https://github.com/jieter/django-tables2/blob/master/CHANGELOG.md
@@ -118,7 +118,7 @@ requests
118118

119119
# rq
120120
# https://github.com/rq/rq/blob/master/CHANGES.md
121-
rq<2.0
121+
rq
122122

123123
# Social authentication framework
124124
# https://github.com/python-social-auth/social-core/blob/master/CHANGELOG.md

contrib/generated_schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@
329329
"100base-tx",
330330
"100base-t1",
331331
"1000base-t",
332+
"1000base-lx",
332333
"1000base-tx",
333334
"2.5gbase-t",
334335
"5gbase-t",

docs/development/release-checklist.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,20 @@ This will automatically update the schema file at `contrib/generated_schema.json
9090

9191
### Update & Compile Translations
9292

93-
Updated language translations should be pulled from [Transifex](https://app.transifex.com/netbox-community/netbox/dashboard/) and re-compiled for each new release. Follow the documented process for [updating translated strings](./translations.md#updating-translated-strings) to do this.
93+
Updated language translations should be pulled from [Transifex](https://app.transifex.com/netbox-community/netbox/dashboard/) and re-compiled for each new release. First, retrieve any updated translation files using the Transifex CLI client:
94+
95+
```no-highlight
96+
tx pull
97+
```
98+
99+
Then, compile these portable (`.po`) files for use in the application:
100+
101+
```no-highlight
102+
./manage.py compilemessages
103+
```
104+
105+
!!! tip
106+
Consult the translation documentation for more detail on [updating translated strings](./translations.md#updating-translated-strings) if you've not set up the Transifex client already.
94107

95108
### Update Version and Changelog
96109

docs/development/translations.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,31 @@ To update the English `.po` file from which all translations are derived, use th
1616

1717
Then, commit the change and push to the `develop` branch on GitHub. Any new strings will appear for translation on Transifex automatically.
1818

19+
!!! note
20+
It is typically not necessary to update source strings manually, as this is done nightly by a [GitHub action](https://github.com/netbox-community/netbox/blob/develop/.github/workflows/update-translation-strings.yml).
21+
1922
## Updating Translated Strings
2023

2124
Typically, translated strings need to be updated only as part of the NetBox [release process](./release-checklist.md).
2225

2326
Check the Transifex dashboard for languages that are not marked _ready for use_, being sure to click _Show all languages_ if it appears at the bottom of the list. Use machine translation to round out any not-ready languages. It's not necessary to review the machine translation immediately as the translation teams will handle that aspect; the goal at this stage is to get translations included in the Transifex pull request.
2427

25-
To update translated strings, start by initiating a sync from Transifex. From the Transifex dashboard, navigate to Settings > Integrations > GitHub > Manage, and click the **Manual Sync** button at top right.
28+
To download translated strings automatically, you'll need to:
2629

27-
![Transifex manual sync](../media/development/transifex_sync.png)
30+
1. Install the [Transifex CLI client](https://github.com/transifex/cli)
31+
2. Generate a [Transifex API token](https://app.transifex.com/user/settings/api/)
2832

29-
Enter a threshold percentage of 1 (to ensure all translations are captured) and select the `develop` branch, then click **Sync**. This will initiate a pull request to GitHub to update any newly modified translation (`.po`) files.
33+
Once you have the client set up, run the following command:
3034

31-
!!! tip
32-
The new PR should appear within a few minutes. If it does not, check that there are in fact new translations to be added.
35+
```no-highlight
36+
TX_TOKEN=$TOKEN tx pull
37+
```
3338

34-
![Transifex pull request](../media/development/transifex_pull_request.png)
39+
This will download all portable (`.po`) translation files from Transifex, updating them locally as needed.
3540

36-
Once the PR has been merged, the updated strings need to be compiled into new `.mo` files so they can be used by the application. Update the `develop` branch locally to pull in the changes from the Transifex PR, then run Django's [`compilemessages`](https://docs.djangoproject.com/en/stable/ref/django-admin/#django-admin-compilemessages) management command:
41+
Once retrieved, the updated strings need to be compiled into new `.mo` files so they can be used by the application. Run Django's [`compilemessages`](https://docs.djangoproject.com/en/stable/ref/django-admin/#django-admin-compilemessages) management command to compile them:
3742

38-
```nohighlight
43+
```no-highlight
3944
./manage.py compilemessages
4045
```
4146

-108 KB
Binary file not shown.
-42.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)