pgAdmin 4 commit: Added and fixed gettext usage for better translation

From: Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>
To: pgadmin-hackers(at)lists(dot)postgresql(dot)org
Subject: pgAdmin 4 commit: Added and fixed gettext usage for better translation
Date: 2020-03-24 05:44:47
Message-ID: E1jGcMp-0008EF-Px@gothos.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Added and fixed gettext usage for better translation coverage. Fixes #5284
  1) Fixed usage gettext('') instead of _('') in javascript files.
  2) Fixed usage gettext('') instead of `${gettext('')}` in javascript files,
because "pybabel extract" not support extracting from this syntax.

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=94864104e44a50fd4d3c5278c2c39c1bd1d93a88
Author: Libor M <liborm85(at)gmail(dot)com>

Modified Files
--------------
docs/en_US/release_notes_4_20.rst | 1 +
.../browser/server_groups/servers/__init__.py | 9 +++++----
.../servers/databases/casts/__init__.py | 2 +-
.../event_triggers/static/js/event_trigger.js | 14 +++++++-------
.../databases/external_tables/properties.py | 16 ++++++++--------
.../static/js/exclusion_constraint.js | 2 +-
.../foreign_key/static/js/foreign_key.js | 2 +-
.../tables/partitions/static/js/partition.js | 4 ++--
.../databases/schemas/tables/static/js/table.js | 8 ++++----
.../server_groups/servers/static/js/variable.js | 2 +-
.../servers/templates/servers/password.html | 2 +-
.../servers/templates/servers/tunnel_password.html | 2 +-
web/pgadmin/browser/static/js/collection.js | 2 +-
web/pgadmin/browser/static/js/node.js | 2 +-
web/pgadmin/browser/static/js/node.ui.js | 12 ++++++------
.../browser/templates/browser/master_password.html | 2 +-
web/pgadmin/dashboard/static/js/dashboard.js | 2 +-
.../templates/dashboard/server_dashboard.html | 2 +-
web/pgadmin/misc/bgprocess/static/js/bgprocess.js | 8 ++++----
.../misc/dependencies/static/js/dependencies.js | 2 +-
.../misc/dependents/static/js/dependents.js | 2 +-
web/pgadmin/misc/file_manager/static/js/utility.js | 8 ++++----
.../misc/statistics/static/js/statistics.js | 2 +-
web/pgadmin/static/js/backform.pgadmin.js | 8 ++++----
web/pgadmin/static/js/backgrid.pgadmin.js | 6 +++---
web/pgadmin/static/js/keyboard_shortcuts.js | 2 +-
.../js/sqleditor/calculate_query_run_time.js | 9 +++++----
web/pgadmin/static/js/sqleditor/filter_dialog.js | 2 +-
.../static/js/sqleditor/history/query_history.js | 6 +++---
.../js/sqleditor/history/query_history_details.js | 22 +++++++++++-----------
.../js/sqleditor/history/query_history_entries.js | 4 ++--
.../js/sqleditor/query_tool_notifications.js | 2 +-
.../backup/static/js/backup_dialog_wrapper.js | 2 +-
web/pgadmin/tools/debugger/static/js/direct.js | 8 ++++----
.../tools/grant_wizard/static/js/grant_wizard.js | 22 +++++++++++-----------
web/pgadmin/tools/maintenance/__init__.py | 2 +-
web/pgadmin/tools/schema_diff/__init__.py | 11 ++++++-----
web/pgadmin/tools/schema_diff/compare.py | 3 ++-
web/pgadmin/tools/schema_diff/model.py | 4 +++-
.../schema_diff/static/js/schema_diff.backform.js | 10 +++++-----
.../tools/schema_diff/static/js/schema_diff.js | 2 +-
.../tools/schema_diff/static/js/schema_diff_ui.js | 12 ++++++------
web/pgadmin/tools/sqleditor/static/js/sqleditor.js | 2 +-
.../sqleditor/utils/query_tool_preferences.py | 16 ++++++++--------
.../user_management/static/js/user_management.js | 4 ++--
45 files changed, 137 insertions(+), 130 deletions(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message Akshay Joshi 2020-03-24 05:45:27 Re: pgAdmin 4 - gettext usage fixes
Previous Message Aditya Toshniwal 2020-03-24 05:35:56 Re: pgAdmin 4 - gettext usage fixes