public inbox for [email protected]  
help / color / mirror / Atom feed
From: Libor M. <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: pgAdmin 4 - Modify babel config for gettext
Date: Sat, 12 Sep 2020 10:56:12 +0200
Message-ID: <CAMavuw0+KXiLmD8NfWMiLODQoa-yr2nQtCWt3bcgd+Nc9s6XgQ@mail.gmail.com> (raw)

Hi,
now not all occurrences of gettext are generated to messages.pot file.
In attachment is babel config modification for improve.

Best regards,

Libor M.

E-mail: [email protected]
GitHub: https://github.com/liborm85

diff --git a/web/babel.cfg b/web/babel.cfg
index 1e185bed8..71fc49993 100644
--- a/web/babel.cfg
+++ b/web/babel.cfg
@@ -3,7 +3,7 @@
 [jinja2: **/templates/**.sql]
 [ignore: **/vendor/**.js]
 [javascript: **/static/**.js]
-[javascript: **/templates/about/**.js]
-[javascript: **/templates/dashboard/**.js]
+[javascript: **/static/**.jsx]
+[javascript: **/templates/**/js/**.js]
 [jinja2: **/templates/**.js]
 extensions=jinja2.ext.autoescape,jinja2.ext.with_
\ No newline at end of file


Attachments:

  [text/plain] pgadmin4_babel_gettext_config.diff (487B, 2-pgadmin4_babel_gettext_config.diff)
  download | inline diff:
diff --git a/web/babel.cfg b/web/babel.cfg
index 1e185bed8..71fc49993 100644
--- a/web/babel.cfg
+++ b/web/babel.cfg
@@ -3,7 +3,7 @@
 [jinja2: **/templates/**.sql]
 [ignore: **/vendor/**.js]
 [javascript: **/static/**.js]
-[javascript: **/templates/about/**.js]
-[javascript: **/templates/dashboard/**.js]
+[javascript: **/static/**.jsx]
+[javascript: **/templates/**/js/**.js]
 [jinja2: **/templates/**.js]
 extensions=jinja2.ext.autoescape,jinja2.ext.with_
\ No newline at end of file


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: pgAdmin 4 - Modify babel config for gettext
  In-Reply-To: <CAMavuw0+KXiLmD8NfWMiLODQoa-yr2nQtCWt3bcgd+Nc9s6XgQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox