-
Describe the issueUploading I already tried
Steps to reproduce the behavior
Alternatively: wlc upload --method source -i source.properties project/component/de Expected behaviorIt is possible to upload Java property files in both the GUI and CLI Screenshots![]() ![]() ![]() Exception traceback[2025-09-04 13:22:00,028: WARNING/352] Upload error: AttributeError: type object 'PropertiesUtf8Format' has no attribute 'get_msgmerge_args'
[2025-09-04 13:22:00,029: ERROR/352] Upload error
Traceback (most recent call last):
File "/app/venv/lib/python3.13/site-packages/weblate/api/views.py", line 1783, in file
not_found, skipped, accepted, total = obj.handle_upload(
~~~~~~~~~~~~~~~~~^
request,
^^^^^^^^
...<5 lines>...
data["fuzzy"],
^^^^^^^^^^^^^^
)
^
File "/usr/lib/python3.13/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/app/venv/lib/python3.13/site-packages/weblate/trans/models/translation.py", line 1482, in handle_upload
result = self.handle_source(request, author, fileobj)
File "/app/venv/lib/python3.13/site-packages/weblate/trans/models/translation.py", line 1297, in handle_source
args = self.component.file_format_cls.get_msgmerge_args(component)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'PropertiesUtf8Format' has no attribute 'get_msgmerge_args'
10.42.4.126 - - [04/Sep/2025:15:22:00 +0200] "POST /api/translations/tupspa-tws/38e9efce_tuptws-wmi-api_causes/de/file/ HTTP/1.1" 400 165 "-" "wlc/1.15" How do you run Weblate?Docker container Weblate versions
Weblate deploy checksSystem check identified some issues:
INFOS:
?: (weblate.I021) Error collection is not set up, it is highly recommended for production use
HINT: https://docs.weblate.org/en/weblate-5.13/admin/install.html#collecting-errors
?: (weblate.I028) Backups are not configured, it is highly recommended for production use
HINT: https://docs.weblate.org/en/weblate-5.13/admin/backup.html
System check identified 2 issues (5 silenced). Additional contextUsing mode |
Beta Was this translation helpful? Give feedback.
Answered by
nijel
Sep 5, 2025
Replies: 1 comment 1 reply
-
It is expected to not work on most formats, AFAIR only gettext currently supports this, see https://docs.weblate.org/en/latest/user/files.html#import-methods. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mensinda
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is expected to not work on most formats, AFAIR only gettext currently supports this, see https://docs.weblate.org/en/latest/user/files.html#import-methods.