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




-- 
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Reply via email to