Re: Fwd: Wrong desktop file

Поиск
Список
Период
Сортировка
От Marek Černocký
Тема Re: Fwd: Wrong desktop file
Дата
Msg-id 1418759816.2559.35.camel@manet.cz
обсуждение исходный текст
Ответ на Fwd: Wrong desktop file  (Alexey Loginov <loginov.alex.valer@gmail.com>)
Ответы Re: Fwd: Wrong desktop file  (Alexey Loginov <loginov.alex.valer@gmail.com>)
Список 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




В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Alexey Loginov
Дата:
Сообщение: Re: Wrong desktop file
Следующее
От: Alexey Loginov
Дата:
Сообщение: Re: Fwd: Wrong desktop file