You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
I can manually add a translation in weblate but committing it using the repository tools causes the error: 'NoneType' object has no attribute 'set'
I've searched for similar issues in this repository.
Steps to reproduce the behavior
with the setup as described above...
Select project
select component
select language French
Click "Translate"
The "hi" has a missing French translation
I manually add it
Click one of the Save buttons
All is Ok so far
Go to the project home page
Manage
Repository Maintenance
I see "1 Pending changes not yet committed to the Weblate repository"
Click "Commit"
Expected behavior
Change should successfully be committed to the repository
Screenshots
No response
Exception traceback
Environment:
Request Method: POST
Request URL: https://translation.visionslive.com/commit/translation-tests-greg/test3/
Django Version: 4.1.3
Python Version: 3.11.0
Installed Applications:
['customize',
'weblate.addons',
'weblate.auth',
'weblate.checks',
'weblate.formats',
'weblate.glossary',
'weblate.machinery',
'weblate.trans',
'weblate.lang',
'weblate_language_data',
'weblate.memory',
'weblate.screenshots',
'weblate.fonts',
'weblate.accounts',
'weblate.configuration',
'weblate.utils',
'weblate.vcs',
'weblate.wladmin',
'weblate.metrics',
'weblate',
'weblate.gitexport',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin.apps.SimpleAdminConfig',
'django.contrib.admindocs',
'django.contrib.sitemaps',
'django.contrib.humanize',
'social_django',
'crispy_forms',
'compressor',
'rest_framework',
'rest_framework.authtoken',
'django_filters']
Installed Middleware:
['weblate.middleware.RedirectMiddleware',
'weblate.middleware.ProxyMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'weblate.accounts.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'social_django.middleware.SocialAuthExceptionMiddleware',
'weblate.accounts.middleware.RequireLoginMiddleware',
'weblate.api.middleware.ThrottlingMiddleware',
'weblate.middleware.SecurityMiddleware']
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/usr/local/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.11/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_viewreturn view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.11/site-packages/django/views/decorators/http.py", line 43, in innerreturn func(request, *args, **kwargs)
File "/usr/local/lib/python3.11/site-packages/weblate/trans/views/git.py", line 138, in commit_componentreturn perform_commit(request, obj)
File "/usr/local/lib/python3.11/site-packages/weblate/trans/views/git.py", line 54, in perform_commitreturn execute_locked(
File "/usr/local/lib/python3.11/site-packages/weblate/trans/views/git.py", line 35, in execute_locked
result = call(*args, **kwargs)
File "/usr/local/lib/python3.11/site-packages/weblate/trans/models/component.py", line 169, in on_link_wrapperreturn func(self, *args, **kwargs)
File "/usr/local/lib/python3.11/site-packages/weblate/trans/models/component.py", line 1619, in commit_pending
translation._commit_pending(reason, user)
File "/usr/local/lib/python3.11/contextlib.py", line 81, in innerreturn func(*args, **kwds)
File "/usr/local/lib/python3.11/site-packages/weblate/trans/models/translation.py", line 633, in _commit_pendingself.update_units(units, store, author_name, author.id)
File "/usr/local/lib/python3.11/site-packages/weblate/trans/models/translation.py", line 762, in update_units
pounit.set_state(unit.state)
File "/usr/local/lib/python3.11/site-packages/weblate/formats/ttkit.py", line 685, in set_stateself.xliff_node.set("state", "translated")
Exception Type: AttributeError at /commit/translation-tests-greg/test3/
Exception Value: 'NoneType' object has no attribute 'set'
WARNINGS:
?: (security.W004) You have not set a value for the SECURE_HSTS_SECONDS setting. If your entire site is served only over SSL, you may want to consider setting a value and enabling HTTP Strict Transport Security. Be sure to read the documentation first; enabling HSTS carelessly can cause serious, irreversible problems.
?: (security.W008) Your SECURE_SSL_REDIRECT setting is not set to True. Unless your site should be available over both SSL and non-SSL connections, you may want to either set this setting True or configure a load balancer or reverse-proxy server to redirect all connections to HTTPS.
?: (security.W012) SESSION_COOKIE_SECURE is not set to True. Using a secure-only session cookie makes it more difficult for network traffic sniffers to hijack user sessions.
?: (security.W018) You should not have DEBUG set to True in deployment.
INFOS:
?: (weblate.I021) Error collection is not set up, it is highly recommended for production use
HINT: https://docs.weblate.org/en/weblate-4.14.2/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-4.14.2/admin/backup.html
System check identified 6 issues (1 silenced).
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the issue
I am testing using weblate using xliff files in a monolingual way.
My base file "en.xlf" contains only one item
My translated file is simply
Problem
I can manually add a translation in weblate but committing it using the repository tools causes the error:
'NoneType' object has no attribute 'set'
I already tried
Steps to reproduce the behavior
with the setup as described above...
Select project
select component
select language French
Click "Translate"
The "hi" has a missing French translation
I manually add it
Click one of the Save buttons
All is Ok so far
Go to the project home page
Manage
Repository Maintenance
I see "1 Pending changes not yet committed to the Weblate repository"
Click "Commit"
Expected behavior
Change should successfully be committed to the repository
Screenshots
No response
Exception traceback
How do you run Weblate?
Docker container
Weblate versions
Weblate deploy checks
Additional context
No response
The text was updated successfully, but these errors were encountered: