[GH-ISSUE #2604] can't change profil language #1648

Closed
opened 2026-02-27 11:18:22 +03:00 by kerem · 1 comment
Owner

Originally created by @cremesk on GitHub (Sep 21, 2022).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/2604

Impacted versions

  • OS Type: Debian
  • OS Version: 11
  • Database Type: PostgreSQL
  • Database version: 13
  • Modoboa: 2.0.1
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

settings > profil > language

Current behavior

i can't change the frontend language. the language is always in German. no matter what I choose. :/

(in the new-admin panel is everything in english.. but i can't change the language here too.)

Screenshot link

image

Log (DEBUG: True)

Thu Sep 22 08:56:31 2022 - *** Starting uWSGI 2.0.19.1-debian (64bit) on [Thu Sep 22 08:56:31 2022] ***                                                                                                                                        
Thu Sep 22 08:56:31 2022 - compiled with version: 10.2.1 20210110 on 11 June 2021 09:08:33                                                                                                                                                     
Thu Sep 22 08:56:31 2022 - os: Linux-5.10.0-16-amd64 #1 SMP Debian 5.10.127-1 (2022-06-30)                                                                                                                                                     
Thu Sep 22 08:56:31 2022 - nodename: mail.envs.net                                                                                                                                                                                             
Thu Sep 22 08:56:31 2022 - machine: x86_64                                                                                                                                                                                                     
Thu Sep 22 08:56:31 2022 - clock source: unix
Thu Sep 22 08:56:31 2022 - pcre jit disabled
Thu Sep 22 08:56:31 2022 - detected number of CPU cores: 8
Thu Sep 22 08:56:31 2022 - current working directory: /
Thu Sep 22 08:56:31 2022 - writing pidfile to /run/uwsgi/app/modoboa_instance/pid
Thu Sep 22 08:56:31 2022 - detected binary path: /usr/bin/uwsgi-core
Thu Sep 22 08:56:31 2022 - chdir() to /srv/modoboa/instance 
Thu Sep 22 08:56:31 2022 - your processes number limit is 65535
Thu Sep 22 08:56:31 2022 - your memory page size is 4096 bytes
Thu Sep 22 08:56:31 2022 - detected max file descriptor number: 1024
Thu Sep 22 08:56:31 2022 - VirtualHosting mode enabled.
Thu Sep 22 08:56:31 2022 - lock engine: pthread robust mutexes
Thu Sep 22 08:56:31 2022 - thunder lock: disabled (you can enable it with --thunder-lock)
Thu Sep 22 08:56:31 2022 - uwsgi socket 0 bound to UNIX address /run/uwsgi/app/modoboa_instance/socket fd 3
Thu Sep 22 08:56:31 2022 - setgid() to 1000
Thu Sep 22 08:56:31 2022 - setuid() to 1000
Thu Sep 22 08:56:31 2022 - Python version: 3.9.2 (default, Feb 28 2021, 17:03:44)  [GCC 10.2.1 20210110]
Thu Sep 22 08:56:31 2022 - PEP 405 virtualenv detected: /srv/modoboa/env
Thu Sep 22 08:56:31 2022 - Set PythonHome to /srv/modoboa/env
Thu Sep 22 08:56:31 2022 - *** Python threads support is disabled. You can enable it with --enable-threads ***
Thu Sep 22 08:56:31 2022 - Python main interpreter initialized at 0x55f8c7df97b0
Thu Sep 22 08:56:31 2022 - your server socket listen backlog is limited to 100 connections
Thu Sep 22 08:56:31 2022 - your mercy for graceful operations on workers is 60 seconds
Thu Sep 22 08:56:31 2022 - mapped 218808 bytes (213 KB) for 2 cores
Thu Sep 22 08:56:31 2022 - *** Operational MODE: preforking ***
Thu Sep 22 10:56:32 2022 - WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x55f8c7df97b0 pid: 611239
Thu Sep 22 10:56:32 2022 - spawned uWSGI master process (pid: 611239)
Thu Sep 22 10:56:32 2022 - spawned uWSGI worker 1 (pid: 611246, cores: 1)
Thu Sep 22 10:56:32 2022 - spawned uWSGI worker 2 (pid: 611247, cores: 1)
Thu Sep 22 10:56:40 2022 - WSGI app 1 (mountpoint='mail.envs.net|') ready in 0 seconds on interpreter 0x55f8c7df97b0 pid: 611247
mail.envs.net [pid: 611247|app: 1|req: 1/1] xxx () {66 vars in 1629 bytes} [Thu Sep 22 10:56:40 2022] GET /user/ => generated 8356 bytes in 1025 msecs (HTTP/1.0 200) 5 headers in 163 bytes (1 switches on core 0)
Thu Sep 22 10:56:42 2022 - WSGI app 1 (mountpoint='mail.envs.net|') ready in 0 seconds on interpreter 0x55f8c7df97b0 pid: 611246
mail.envs.net [pid: 611246|app: 1|req: 1/2] xxx () {62 vars in 1482 bytes} [Thu Sep 22 10:56:42 2022] GET /jsi18n/ => generated 5690 bytes in 518 msecs (HTTP/1.0 200) 5 headers in 171 bytes (1 switches on core 0)
mail.envs.net [pid: 611247|app: 1|req: 2/3] xxx () {64 vars in 1603 bytes} [Thu Sep 22 10:56:43 2022] GET /user/profile/?_=1663837002067 => generated 4983 bytes in 552 msecs (HTTP/1.0 200) 6 headers in 331 bytes (1 switches on c
ore 0)
mail.envs.net [pid: 611247|app: 1|req: 3/4] xxx () {72 vars in 1796 bytes} [Thu Sep 22 10:57:05 2022] POST /user/profile/ => generated 17 bytes in 325 msecs (HTTP/1.0 200) 6 headers in 250 bytes (1 switches on core 0)
mail.envs.net [pid: 611247|app: 1|req: 4/5] xxx () {64 vars in 1573 bytes} [Thu Sep 22 10:57:05 2022] GET /user/ => generated 8356 bytes in 557 msecs (HTTP/1.0 200) 5 headers in 163 bytes (1 switches on core 0)
mail.envs.net [pid: 611246|app: 1|req: 2/6] xxx () {62 vars in 1482 bytes} [Thu Sep 22 10:57:06 2022] GET /jsi18n/ => generated 5690 bytes in 300 msecs (HTTP/1.0 200) 5 headers in 171 bytes (1 switches on core 0)
mail.envs.net [pid: 611246|app: 1|req: 3/7] xxx () {64 vars in 1603 bytes} [Thu Sep 22 10:57:07 2022] GET /user/profile/?_=1663837026578 => generated 4983 bytes in 697 msecs (HTTP/1.0 200) 6 headers in 331 bytes (1 switches on c
ore 0)
mail.envs.net [pid: 611246|app: 1|req: 4/8] xxx () {72 vars in 1796 bytes} [Thu Sep 22 10:57:12 2022] POST /user/profile/ => generated 21 bytes in 282 msecs (HTTP/1.0 200) 6 headers in 250 bytes (1 switches on core 0)
mail.envs.net [pid: 611247|app: 1|req: 5/9] xxx () {64 vars in 1573 bytes} [Thu Sep 22 10:57:13 2022] GET /user/ => generated 8356 bytes in 561 msecs (HTTP/1.0 200) 5 headers in 163 bytes (1 switches on core 0)
mail.envs.net [pid: 611247|app: 1|req: 6/10] xxx () {62 vars in 1482 bytes} [Thu Sep 22 10:57:13 2022] GET /jsi18n/ => generated 5690 bytes in 255 msecs (HTTP/1.0 200) 5 headers in 171 bytes (1 switches on core 0)
mail.envs.net [pid: 611246|app: 1|req: 5/11] xxx () {64 vars in 1603 bytes} [Thu Sep 22 10:57:14 2022] GET /user/profile/?_=1663837033980 => generated 4983 bytes in 513 msecs (HTTP/1.0 200) 6 headers in 331 bytes (1 switches on 
core 0)

can't see any error in DEBUG mode.

Originally created by @cremesk on GitHub (Sep 21, 2022). Original GitHub issue: https://github.com/modoboa/modoboa/issues/2604 # Impacted versions * OS Type: Debian * OS Version: 11 * Database Type: PostgreSQL * Database version: 13 * Modoboa: 2.0.1 * installer used: Yes * Webserver: Nginx # Steps to reproduce settings > profil > language # Current behavior i can't change the frontend language. the language is always in German. no matter what I choose. :/ (in the new-admin panel is everything in english.. but i can't change the language here too.) # Screenshot link ![image](https://user-images.githubusercontent.com/7526990/191481323-06b099f6-18ac-4e39-b916-049f13cf9b3a.png) # Log (DEBUG: True) ``` Thu Sep 22 08:56:31 2022 - *** Starting uWSGI 2.0.19.1-debian (64bit) on [Thu Sep 22 08:56:31 2022] *** Thu Sep 22 08:56:31 2022 - compiled with version: 10.2.1 20210110 on 11 June 2021 09:08:33 Thu Sep 22 08:56:31 2022 - os: Linux-5.10.0-16-amd64 #1 SMP Debian 5.10.127-1 (2022-06-30) Thu Sep 22 08:56:31 2022 - nodename: mail.envs.net Thu Sep 22 08:56:31 2022 - machine: x86_64 Thu Sep 22 08:56:31 2022 - clock source: unix Thu Sep 22 08:56:31 2022 - pcre jit disabled Thu Sep 22 08:56:31 2022 - detected number of CPU cores: 8 Thu Sep 22 08:56:31 2022 - current working directory: / Thu Sep 22 08:56:31 2022 - writing pidfile to /run/uwsgi/app/modoboa_instance/pid Thu Sep 22 08:56:31 2022 - detected binary path: /usr/bin/uwsgi-core Thu Sep 22 08:56:31 2022 - chdir() to /srv/modoboa/instance Thu Sep 22 08:56:31 2022 - your processes number limit is 65535 Thu Sep 22 08:56:31 2022 - your memory page size is 4096 bytes Thu Sep 22 08:56:31 2022 - detected max file descriptor number: 1024 Thu Sep 22 08:56:31 2022 - VirtualHosting mode enabled. Thu Sep 22 08:56:31 2022 - lock engine: pthread robust mutexes Thu Sep 22 08:56:31 2022 - thunder lock: disabled (you can enable it with --thunder-lock) Thu Sep 22 08:56:31 2022 - uwsgi socket 0 bound to UNIX address /run/uwsgi/app/modoboa_instance/socket fd 3 Thu Sep 22 08:56:31 2022 - setgid() to 1000 Thu Sep 22 08:56:31 2022 - setuid() to 1000 Thu Sep 22 08:56:31 2022 - Python version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] Thu Sep 22 08:56:31 2022 - PEP 405 virtualenv detected: /srv/modoboa/env Thu Sep 22 08:56:31 2022 - Set PythonHome to /srv/modoboa/env Thu Sep 22 08:56:31 2022 - *** Python threads support is disabled. You can enable it with --enable-threads *** Thu Sep 22 08:56:31 2022 - Python main interpreter initialized at 0x55f8c7df97b0 Thu Sep 22 08:56:31 2022 - your server socket listen backlog is limited to 100 connections Thu Sep 22 08:56:31 2022 - your mercy for graceful operations on workers is 60 seconds Thu Sep 22 08:56:31 2022 - mapped 218808 bytes (213 KB) for 2 cores Thu Sep 22 08:56:31 2022 - *** Operational MODE: preforking *** Thu Sep 22 10:56:32 2022 - WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x55f8c7df97b0 pid: 611239 Thu Sep 22 10:56:32 2022 - spawned uWSGI master process (pid: 611239) Thu Sep 22 10:56:32 2022 - spawned uWSGI worker 1 (pid: 611246, cores: 1) Thu Sep 22 10:56:32 2022 - spawned uWSGI worker 2 (pid: 611247, cores: 1) Thu Sep 22 10:56:40 2022 - WSGI app 1 (mountpoint='mail.envs.net|') ready in 0 seconds on interpreter 0x55f8c7df97b0 pid: 611247 mail.envs.net [pid: 611247|app: 1|req: 1/1] xxx () {66 vars in 1629 bytes} [Thu Sep 22 10:56:40 2022] GET /user/ => generated 8356 bytes in 1025 msecs (HTTP/1.0 200) 5 headers in 163 bytes (1 switches on core 0) Thu Sep 22 10:56:42 2022 - WSGI app 1 (mountpoint='mail.envs.net|') ready in 0 seconds on interpreter 0x55f8c7df97b0 pid: 611246 mail.envs.net [pid: 611246|app: 1|req: 1/2] xxx () {62 vars in 1482 bytes} [Thu Sep 22 10:56:42 2022] GET /jsi18n/ => generated 5690 bytes in 518 msecs (HTTP/1.0 200) 5 headers in 171 bytes (1 switches on core 0) mail.envs.net [pid: 611247|app: 1|req: 2/3] xxx () {64 vars in 1603 bytes} [Thu Sep 22 10:56:43 2022] GET /user/profile/?_=1663837002067 => generated 4983 bytes in 552 msecs (HTTP/1.0 200) 6 headers in 331 bytes (1 switches on c ore 0) mail.envs.net [pid: 611247|app: 1|req: 3/4] xxx () {72 vars in 1796 bytes} [Thu Sep 22 10:57:05 2022] POST /user/profile/ => generated 17 bytes in 325 msecs (HTTP/1.0 200) 6 headers in 250 bytes (1 switches on core 0) mail.envs.net [pid: 611247|app: 1|req: 4/5] xxx () {64 vars in 1573 bytes} [Thu Sep 22 10:57:05 2022] GET /user/ => generated 8356 bytes in 557 msecs (HTTP/1.0 200) 5 headers in 163 bytes (1 switches on core 0) mail.envs.net [pid: 611246|app: 1|req: 2/6] xxx () {62 vars in 1482 bytes} [Thu Sep 22 10:57:06 2022] GET /jsi18n/ => generated 5690 bytes in 300 msecs (HTTP/1.0 200) 5 headers in 171 bytes (1 switches on core 0) mail.envs.net [pid: 611246|app: 1|req: 3/7] xxx () {64 vars in 1603 bytes} [Thu Sep 22 10:57:07 2022] GET /user/profile/?_=1663837026578 => generated 4983 bytes in 697 msecs (HTTP/1.0 200) 6 headers in 331 bytes (1 switches on c ore 0) mail.envs.net [pid: 611246|app: 1|req: 4/8] xxx () {72 vars in 1796 bytes} [Thu Sep 22 10:57:12 2022] POST /user/profile/ => generated 21 bytes in 282 msecs (HTTP/1.0 200) 6 headers in 250 bytes (1 switches on core 0) mail.envs.net [pid: 611247|app: 1|req: 5/9] xxx () {64 vars in 1573 bytes} [Thu Sep 22 10:57:13 2022] GET /user/ => generated 8356 bytes in 561 msecs (HTTP/1.0 200) 5 headers in 163 bytes (1 switches on core 0) mail.envs.net [pid: 611247|app: 1|req: 6/10] xxx () {62 vars in 1482 bytes} [Thu Sep 22 10:57:13 2022] GET /jsi18n/ => generated 5690 bytes in 255 msecs (HTTP/1.0 200) 5 headers in 171 bytes (1 switches on core 0) mail.envs.net [pid: 611246|app: 1|req: 5/11] xxx () {64 vars in 1603 bytes} [Thu Sep 22 10:57:14 2022] GET /user/profile/?_=1663837033980 => generated 4983 bytes in 513 msecs (HTTP/1.0 200) 6 headers in 331 bytes (1 switches on core 0) ``` can't see any error in DEBUG mode.
kerem closed this issue 2026-02-27 11:18:22 +03:00
Author
Owner

@cremesk commented on GitHub (Sep 22, 2022):

found the problem.

image

if i have german on the top.. the modoboa settings will ignored and it show always the site in german.
if i have english on top the site works in english.

<!-- gh-comment-id:1254737500 --> @cremesk commented on GitHub (Sep 22, 2022): found the problem. ![image](https://user-images.githubusercontent.com/7526990/191705368-0a4800ed-1ba8-4bd6-b46c-43fb8e550ff4.png) if i have german on the top.. the modoboa settings will ignored and it show always the site in german. if i have english on top the site works in english.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1648
No description provided.