pgAdmin 4 commit: Saved user language was not being picked up in case o

From: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: pgAdmin 4 commit: Saved user language was not being picked up in case o
Date: 2017-10-30 12:51:29
Message-ID: E1e99XN-0003s8-TH@gothos.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Saved user language was not being picked up in case of non-server mode.
Because - the get_locale(...) function was being executed before any
request, and user login after first request. Hence - the values for
the labels in the Preferences are not being translated properly.

Fetch the raw value of user_language from configuration in case of
runtime/non-server mode to fix the issue.

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=8860bc3c3e4ab8c23fe945b123e4c9bda3692d95
Author: Alexander Lakhin <exclusion(at)gmail(dot)com>

Modified Files
--------------
web/pgadmin/__init__.py | 20 ++++++++++++--------
web/pgadmin/utils/preferences.py | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 8 deletions(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message Ashesh Vashi 2017-10-30 12:52:39 Re: pgadmin4 l10n issues
Previous Message Alexander Lakhin 2017-10-27 13:15:39 Re: pgadmin4 l10n issues