mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-25 12:05:58 +03:00
[GH-ISSUE #320] LANGUAGE_CODE not working in 2.0.0 (rc38) #253
Labels
No labels
2.1
3.0
3.0.1
3.0.2
3.0.3
3.0.3
3.1
3.2
3.2
3.3
3.5
3.x
Fixed. Waiting for feedback.
Fixed. Waiting for feedback.
UX
Version 2.1 - alpha
XSS
announcement
beta
blocker
bug
cannot reproduce
confirmed
confirmed
critical
demo
dependencies
deployment
detchnical debt
discussion
docker
documentation
donations
duplicate
enhancement
feature request
frontend
fundraising
good first issue
good issue
help wanted
high
implemented
important
improvement
incomplete
invalid
investigation
kubernetes
low
low impact
medium
medium
medium impact
migration from 2.0
migration from 2.1
missing-language
missing-ocr-language
no-activity
note
ocr
outofscope
packaging
performance
popular request
pull-request
pypi
question
raspberry pi
roadmap
search
security
setup
status
task
technical debt
updates
user xp
version 1.4.0 - demo
will be implemented
will not be implemented
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/papermerge#253
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tobire on GitHub (Feb 28, 2021).
Original GitHub issue: https://github.com/ciur/papermerge/issues/320
Originally assigned to: @ciur on GitHub.
Description
When changing the LANGUAGE_CODE to "de" in a config file that is run with the docker image eugenci/papermerge:2.0.0.rc38, the UI languages does not change.
I also mounted the config file from the docker folder (docker/2.0/config/papermerge.config.py) into the volume directly and verified that the LANGUAGE_CODE is set by running
docker exec -it papermerge_app /bin/bashand thencat papermerge.config.pyin the container.In both cases (with and without the mounted config file) the UI language does not change.
When using the 1.5 docker-compose setup, changing the language in the file docker/1.5/config/papermerge.config.py, it changes the UI language as expected.
Expected
The UI language should change to german.
Actual
The UI language stays english.
Info:
@ciur commented on GitHub (Feb 28, 2021):
sounds like a bug :)
@ciur commented on GitHub (Feb 28, 2021):
hm, I double checked it, and it works i.e.
LANGUAGE_CODE='de'inpapermerge.conf.pyfile, user interface language changes to german.The problem is that many elements are not localized e.g. instead of Herunderladen is "Download". But Inbox is correctly set to "Posteingang", "sign out" is "Abmelden":
@tobire, can you please confirm that it is an issue of "text localization" i.e. many elements are not correctly translated?
@telsch commented on GitHub (Feb 28, 2021):
For me it's working if i set it in settings.py but not in papermerge.conf.py. Using latest lsio docker image. For me
LANGUAGE_FROM_AGENT = Truedoesn't work in both.@tobire commented on GitHub (Feb 28, 2021):
I'm new to the Project so i'm not Sure on all the different config Files yet. I added the LANGUAGE_CODE Line in docker/2.0/config/papermerge.config.py and that did Not Change the UI after starting with docker-compose.
The Same but in the docker/1.5/... Folder worked fine.
I did Not find the papermerge.conf.py File anywhere while Testing this, so I can't say anything about that.
However it could also be that I edited the wrong File.
@tobire commented on GitHub (Mar 2, 2021):
I just tried out the linuxserver.io image (also with docker-compose) and changing the language in the mounted config file there works fine.
So it might be just that I didn't find the right file to edit using the described setup.
@ciur I'll leave this issue open for now. If you can't reproduce my original problem, feel free to close it though.
If it is indeed a problem with the docker files or setup, there might be the need to describe that process a bit more to allow people to edit the right files in their setup :)