Error on compilemessages on new 4.3.1 version #11173

Closed
opened 2025-12-29 21:41:21 +01:00 by adam · 4 comments
Owner

Originally created by @raider700 on GitHub (May 14, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.3.1

Python Version

3.12

Steps to Reproduce

On compiling the german language there is the following error:

$ ./manage.py compilemessages --locale de 
...
Execution of msgfmt failed: /opt/netbox/netbox/translations/de/LC_MESSAGES/django.po:11082: number of format specifications in 'msgid' and 'msgstr' does not match
...

For me it worked, that i escaped the singel "%" with "%%" in line 11081 and 11082.

Expected Behavior

The following command should run without a error.

$ ./manage.py compilemessages --locale de 

Observed Behavior

Execution of msgfmt failed: /opt/netbox/netbox/translations/de/LC_MESSAGES/django.po:11082: number of format specifications in 'msgid' and 'msgstr' does not match

Originally created by @raider700 on GitHub (May 14, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.3.1 ### Python Version 3.12 ### Steps to Reproduce On compiling the german language there is the following error: ``` $ ./manage.py compilemessages --locale de ... Execution of msgfmt failed: /opt/netbox/netbox/translations/de/LC_MESSAGES/django.po:11082: number of format specifications in 'msgid' and 'msgstr' does not match ... ``` For me it worked, that i escaped the singel "%" with "%%" in line 11081 and 11082. ### Expected Behavior The following command should run without a error. ``` $ ./manage.py compilemessages --locale de ``` ### Observed Behavior Execution of msgfmt failed: /opt/netbox/netbox/translations/de/LC_MESSAGES/django.po:11082: number of format specifications in 'msgid' and 'msgstr' does not match
adam added the type: bugpending closurestatus: revisions needed labels 2025-12-29 21:41:21 +01:00
adam closed this issue 2025-12-29 21:41:21 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 14, 2025):

Why are you running compilemessages?

For me it worked, that i escaped the singel "%" with "%%" in line 11081 and 11082.

Attempting to escape the % in the source string alters the text displayed in the UI.

@jeremystretch commented on GitHub (May 14, 2025): Why are you running `compilemessages`? > For me it worked, that i escaped the singel "%" with "%%" in line 11081 and 11082. Attempting to escape the % in the source string alters the text displayed in the UI.
Author
Owner

@raider700 commented on GitHub (May 15, 2025):

I need to change some german translations for local usage.
Like "Asset-Tag" to "Inventarnummer" and similar.

The compilemessage was the best way for me to edit only one file.
It worked over a year now and the latest update resulted to the error.

@raider700 commented on GitHub (May 15, 2025): I need to change some german translations for local usage. Like "Asset-Tag" to "Inventarnummer" and similar. The compilemessage was the best way for me to edit only one file. It worked over a year now and the latest update resulted to the error.
Author
Owner

@github-actions[bot] commented on GitHub (May 23, 2025):

This is a reminder that additional information is needed in order to further triage this issue. If the requested details are not provided, the issue will soon be closed automatically.

@github-actions[bot] commented on GitHub (May 23, 2025): This is a reminder that additional information is needed in order to further triage this issue. If the requested details are not provided, the issue will soon be closed automatically.
Author
Owner

@github-actions[bot] commented on GitHub (May 30, 2025):

This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.

@github-actions[bot] commented on GitHub (May 30, 2025): This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11173