Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTN1L-0002yj-BO for pgadmin-hackers@arkaria.postgresql.org; Thu, 14 Jun 2018 07:50:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fTN1J-0007Vm-Ha for pgadmin-hackers@arkaria.postgresql.org; Thu, 14 Jun 2018 07:50:13 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTN1J-0007Us-8n for pgadmin-hackers@lists.postgresql.org; Thu, 14 Jun 2018 07:50:13 +0000 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fTN1F-0001mC-IA for pgadmin-hackers@postgresql.org; Thu, 14 Jun 2018 07:50:11 +0000 Received: by mail-wm0-x22b.google.com with SMTP id p11-v6so10007938wmc.4 for ; Thu, 14 Jun 2018 00:50:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=6b4p+gDLPJua+T/VXG0oZ/JgfuBAlK1/4pVYGare5Sk=; b=FZjOMPbwHaoWPOOhmBkJell8w1em8bw5YRvhCk59DJW0J8jZbRNcRcpeshhrdA0bGd efRLFeWwiRnvFEIED6a2vm3NIHodaN9+5RFEYQt4hr9yl7fvS2SLI5irSw9+Ly7cusdv U1c38B0mLksnmSKGjaxZARdhJwYs3uGL1yS+PK9OVAVBPgg8qF8cc7qXB/j2CaXzsxa+ ZKbAxOoheTRWhbsYDtNDkTwJBDeB8J0qqExEj5TP5WFHRKGv4LXhbAnCDzLFfrwTjQy4 KSasyiLCdR85/M6pYvfLF58bZbGliIjgUHRg3poql0SUMNvqrsDCcT5c+XWLw4MboQ+J rdfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=6b4p+gDLPJua+T/VXG0oZ/JgfuBAlK1/4pVYGare5Sk=; b=C+8RnJkpRPPFF9ZmnwyQb3yA1vo7kSC6JqiPG237MZopvHRXAfvbKx0Jqhs5AZcQ5q c+HYjFkAljkurVdrsg4Kb1MKhoZBH8m9P3VHZoNqEXY12B7VEnaoyCw9RUTmiesPORfz pPyOMzYfeJNmLs1XW10mSrjpcB7A1/47CujMAIpOcwJpOMtqNp1ry/nnTh5xaPXxZsSd tCmmfdSrBgZTxszfJcbXVvpAOqhz+2KfJG39S9wkdcxRTYTiN0ZC4ivvF3IHrWA4nZ4h 1nGB0OHPP7OtOyizBUFWxfh9SIHlea3N4R/1swWG02aNVNixmU0y64UObOLRnPw99g9W camA== X-Gm-Message-State: APt69E1xkoOUH5FQaje2MsPg4zr9zcGWzvqU7ktHrWQZs5dAjO4Ju7eY 3rwZTtZ1B4mNrHJKSDFWedwuSxvUurFHCHEAwEe/8Yly X-Google-Smtp-Source: ADUXVKKj8KNusXPn1ZR2qjdmt6p1BX5TD2dGAEw3ps4wbk4vOnqWD2d6r+9Xhi5l+Pl7DBeZOtp9oo23ecTvM2ND8Tw= X-Received: by 2002:a1c:3ac6:: with SMTP id h189-v6mr1051405wma.64.1528962608046; Thu, 14 Jun 2018 00:50:08 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:2907:0:0:0:0:0 with HTTP; Thu, 14 Jun 2018 00:50:07 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Thu, 14 Jun 2018 08:50:07 +0100 Message-ID: Subject: Re: [pgAdmin4][Patch]: RM #3411 - pgAdmin 4, Mac. The application server could not be contacted To: Khushboo Vashi Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="00000000000020aeb5056e955936" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --00000000000020aeb5056e955936 Content-Type: text/plain; charset="UTF-8" Hi On Thu, Jun 14, 2018 at 6:39 AM, Khushboo Vashi < khushboo.vashi@enterprisedb.com> wrote: > Hi, > > Please find the fix for #3411 - pgAdmin 4, Mac. The application server > could not be contacted > > The issue is with french translation which has been taken care in the > attached patch. > We've seen similar issues with translations before. How can we write a test (or tests) to validate them? One idea that springs to mind is to generate a new template against the app, then iterate through all the translation catalogs and attempt to translate each string that we find in the template we generated. Alternatively, just iterate the catalogs, and grab each of the source strings from them and attempt to translate using the same catalog. The former method would ensure that the current state of the application can be translated, but that of course might miss some strings in the catalogs. The latter would validate each catalog against itself, but might miss some strings that are in the application but haven't been merged yet (though, that doesn't seem like it would cause a problem). -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company --00000000000020aeb5056e955936 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

On Thu, Jun 14, 2018 at 6:39 AM, Khushboo Vashi <= ;khush= boo.vashi@enterprisedb.com> wrote:
Hi,

Please find the fix for #34= 11 -=C2=A0pgAdmin 4, Mac. The application server could not be contacted

The issue is with french translation which has been t= aken care in the attached patch.

We've seen similar issues with translations before. How can we write = a test (or tests) to validate them?

One idea that = springs to mind is to generate a new template against the app, then iterate= through all the translation catalogs and attempt to translate each string = that we find in the template we generated.

Alterna= tively, just iterate the catalogs, and grab each of the source strings from= them and attempt to translate using the same catalog.

=
The former method would ensure that the current state of the applicati= on can be translated, but that of course might miss some strings in the cat= alogs. The latter would validate each catalog against itself, but might mis= s some strings that are in the application but haven't been merged yet = (though, that doesn't seem like it would cause a problem).
<= div>
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

E= nterpriseDB UK: h= ttp://www.enterprisedb.com
The Enterprise PostgreSQL Company
--00000000000020aeb5056e955936--