Re: [pgAdmin4][Patch]: Fixed 2190 - Move languageselection to Preferences. - Mailing list pgadmin-hackers

From Khushboo Vashi
Subject Re: [pgAdmin4][Patch]: Fixed 2190 - Move languageselection to Preferences.
Date
Msg-id CAFOhELeCTtNEVaj2aKcZWT6i9J9_fXk0m+8gHe_o5REMoJmNKQ@mail.gmail.com
Whole thread Raw
In response to Re: [pgAdmin4][Patch]: Fixed 2190 - Move languageselection to Preferences.  (Dave Page <dpage@pgadmin.org>)
Responses Re: [pgAdmin4][Patch]: Fixed 2190 - Move languageselection to Preferences.  (Dave Page <dpage@pgadmin.org>)
List pgadmin-hackers
Hi,

On Mon, Mar 27, 2017 at 9:57 PM, Dave Page <dpage@pgadmin.org> wrote:
On Mon, Mar 27, 2017 at 7:49 AM, Khushboo Vashi
<khushboo.vashi@enterprisedb.com> wrote:
> Hi Dave,
>
> I have fixed the issue and the patch for the same is attached, but the
> Binary path options are not translated properly.

Thanks - committed.

> We register the preferences before the first request of the app. In this
> case we don't have any language loaded, so it will take only English.
> To fix this issue, I had explicitly added gettext for the labels and help
> messages while opening the Preference dialogue.
> All the labels and help messages render properly except Binary paths; as at
> run time we don't get the translation of 'EDB Advanced Server Binary Path'.
> We have translations like below:
>
> #: pgadmin/browser/server_groups/servers/types.py:59
> msgid "{0} Binary Path"
> msgstr "Ścieżka Binarna {0}"
>
> So, in this case my suggestion is to have the entire label/help messages
> translations.
> So, that the Preference dialogue can translate run time.

I'm fine with that; however, the strings should come from the
underlying drivers of course, as only they should have specific
knowledge of details such as the name of the database server they
provide access to.

The string always comes from drivers as they are being registered from there.
I have attached the patch to translate the entire string.
I took the reference of the string from the messages.po file and translated, so someone has to validate that this is the correct translation.
 
Thanks!

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment

pgadmin-hackers by date:

Previous
From: Akshay Joshi
Date:
Subject: [pgAdmin4][Patch] RM #2232 Add the ability to gray-out/disable the"Save Password" option when creating a connection to a server
Next
From: Akshay Joshi
Date:
Subject: pgAdmin 4 commit: Dialog Help was broken in case where querytool/Debug