mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 01:41:22 -06:00
Merge pull request #19178 from netbox-community/19139-tx-force-pull
Closes #19139: Use --force when invoking tx pull
This commit is contained in:
commit
0d81007fdf
@ -150,7 +150,7 @@ This will automatically update the schema file at `contrib/generated_schema.json
|
|||||||
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:
|
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:
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
tx pull
|
tx pull --force
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, compile these portable (`.po`) files for use in the application:
|
Then, compile these portable (`.po`) files for use in the application:
|
||||||
|
@ -33,10 +33,10 @@ To download translated strings automatically, you'll need to:
|
|||||||
Once you have the client set up, run the following command from the project root (e.g. `/opt/netbox/`):
|
Once you have the client set up, run the following command from the project root (e.g. `/opt/netbox/`):
|
||||||
|
|
||||||
```no-highlight
|
```no-highlight
|
||||||
TX_TOKEN=$TOKEN tx pull
|
TX_TOKEN=$TOKEN tx pull --force
|
||||||
```
|
```
|
||||||
|
|
||||||
This will download all portable (`.po`) translation files from Transifex, updating them locally as needed.
|
This will download all portable (`.po`) translation files from Transifex, updating them locally as needed. (The `--force` argument instructs the client to disregard the timestamps of local translation files.)
|
||||||
|
|
||||||
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:
|
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:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user