Обсуждение: 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
Вложения
Ping
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
OK, please use xgettext, but merge translations from my desktop file into PO files in this case.
On Tue, Dec 16, 2014 at 9:19 PM, Alexey Loginov <loginov.alex.valer@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
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company