Re: [pgadmin-hackers] Fwd: Wrong desktop file
On Tue, Dec 16, 2014 at 9:19 PM, Alexey Loginov loginov.alex.va...@gmail.com wrote: OK, please use xgettext, but merge translations from my desktop file into PO files in this case. Can you send a patch please? -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Re: [pgadmin-hackers] Fwd: Wrong desktop file
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
Re: [pgadmin-hackers] Fwd: Wrong desktop file
OK, please use xgettext, but merge translations from my desktop file into PO files in this case. -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers
[pgadmin-hackers] Fwd: Wrong desktop file
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 diff -ur pgadmin3-1.18.1.orig/pkg/pgadmin3.desktop pgadmin3-1.18.1/pkg/pgadmin3.desktop --- pgadmin3-1.18.1.orig/pkg/pgadmin3.desktop 2013-02-22 21:28:32.0 +0400 +++ pgadmin3-1.18.1/pkg/pgadmin3.desktop 2014-11-27 10:48:25.0 +0400 @@ -1,10 +1,22 @@ [Desktop Entry] -Encoding=UTF-8 Name=pgAdmin III -Exec=/usr/bin/pgadmin3 -Icon=/usr/share/pgadmin3/pgAdmin3.png +Exec=pgadmin3 +Icon=pgadmin3 Type=Application -Categories=Application;Development; -MimeType=text/html +Categories=Development;Database; +MimeType=text/html; DocPath=/usr/share/pgadmin3/docs/en_US/index.html -Comment=PostgreSQL Tools +GenericName=PostgreSQL Tools +GenericName[cs]=Nástroje PostgreSQL +GenericName[es]=Perkakas PostgreSQL +GenericName[fr]=Outils PostgreSQL +GenericName[pl]=Narzędzia PostgreSQL +GenericName[ru]=Инструменты PostgreSQL +GenericName[zh_CN]=PostgreSQL工具 +Comment=PostgreSQL administration and management tools +Comment[cs]=Nástroje pro administraci a správu PostgreSQL +Comment[es]=Perkakas Administrasi dan manajemen PostgreSQL +Comment[fr]=Outils d'administration et de gestion pour PostgreSQL +Comment[pl]=Narzędzia administracyjne i zarządzania PostgreSQL +Comment[ru]=Инструменты для управления и администрирования PostgreSQL +Comment[zh_CN]=PostgreSQL管理工具 pgadmin3.desktop Description: application/desktop -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers