From: | Marek Černocký <marek(at)manet(dot)cz> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | Re: Fwd: Wrong desktop file |
Date: | 2014-12-16 19:56:56 |
Message-ID: | 1418759816.2559.35.camel@manet.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
I agree with your suggestions. Except for writing localized keys
directly to pgadmin3.desktop It is outside translation workflow. Better
way is:
- Rename pgadmin3.desktop to pgadmin3.desktop.in
- Add line
xgettext -k -kName -kGenericName -kComment -kKeywords -o pgadmin3.pot
pkg/pgadmin3.desktop.in
to stringextract script - it extracts proper text from desktop file to
translation template
(translators translate this texts standardy way)
- Generate pgadmin3.desktop from pgadmin3.desktop.in with msgfmt.
Unfortunately pgadmin don't use gettext standard files and dir tree, so
it may be a little tricky. Probably it needs chained generation language
by language.
Gettext supports this from 0.19 - it should be checked by configure
script.
Marek Černocký
Alexey Loginov píše v Čt 27. 11. 2014 v 12:07 +0400:
> Hello,
>
> desktop-file-validate pgadmin3.desktop
> pgadmin3.desktop: warning: key "Encoding" in group "Desktop Entry" is deprecated
> pgadmin3.desktop: warning: value "Application;Development;" for key
> "Categories" in group "Desktop Entry" contains a deprecated value
> "Application"
> pgadmin3.desktop: error: value "text/html" for string list key
> "MimeType" in group "Desktop Entry" does not have a semicolon (';') as
> trailing character
>
> Next issues: missing GenericName for KDE, missing translations,
> missing /usr/share/pgadmin3/pgAdmin3.png
>
> There is a fix in attachment.
>
> Regards,
> Alex
From | Date | Subject | |
---|---|---|---|
Next Message | Cristian Iturrieta | 2014-12-16 21:18:23 | Postgresql 9.2, Memoy cache usage. |
Previous Message | Alexey Loginov | 2014-12-16 16:06:09 | Re: Wrong desktop file |