Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Commit

Permalink
Translate desktop files
Browse files Browse the repository at this point in the history
  • Loading branch information
TingPing committed Feb 16, 2014
1 parent 0d4cde2 commit 12cd5cb
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 39 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ po/stamp-*
osx/Info.plist
data/pkgconfig/hexchat-plugin.pc
data/misc/hexchat.appdata.xml
data/misc/hexchat.desktop
data/misc/htm.desktop
src/common/dbus/example
src/common/dbus/org.hexchat.service.service
src/common/dbus/remote-object-glue.h
Expand Down
16 changes: 9 additions & 7 deletions data/misc/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
util_DATA = hexchat.desktop
utildir = $(datadir)/applications

appdata_in_files = hexchat.appdata.xml.in
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
appdatadir = $(datadir)/appdata
@INTLTOOL_XML_RULE@

data_desktopdir = $(datadir)/applications
data_desktop_in_files = hexchat.desktop.in

if WITH_TM
util_DATA += htm.desktop
data_desktop_in_files += htm.desktop.in
mime_DATA = htm-mime.xml
mimedir = $(datadir)/mime/packages
endif

data_desktop_DATA = $(data_desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

UPDATE_MIME_DATABASE = update-mime-database "$(datadir)/mime" || :
UPDATE_DESKTOP_DATABASE = update-desktop-database -q "$(datadir)/applications" || :
Expand All @@ -21,7 +25,5 @@ install-data-hook:
uninstall-hook:
$(UPDATE_MIME_DATABASE);
$(UPDATE_DESKTOP_DATABASE);
endif

CLEANFILES = $(appdata_DATA)

CLEANFILES = $(appdata_DATA) $(data_desktop_DATA)
31 changes: 0 additions & 31 deletions data/misc/hexchat.desktop

This file was deleted.

13 changes: 13 additions & 0 deletions data/misc/hexchat.desktop.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Desktop Entry]
_Name=HexChat
_GenericName=IRC Client
_Comment=Chat with other people online
_Keywords=IM;Chat;
Exec=hexchat %U
Icon=hexchat
Terminal=false
Type=Application
Categories=GTK;Network;IRCClient;
StartupNotify=true
X-GNOME-UsesNotifications=true
MimeType=x-scheme-handler/irc;x-scheme-handler/ircs;
2 changes: 1 addition & 1 deletion data/misc/htm.desktop → data/misc/htm.desktop.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Desktop Entry]
Name=HexChat Theme Manager
_Name=HexChat Theme Manager
Exec=thememan %f
Icon=hexchat
Terminal=false
Expand Down
2 changes: 2 additions & 0 deletions po/POTFILES.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
data/misc/hexchat.appdata.xml.in
data/misc/hexchat.desktop.in
data/misc/htm.desktop.in
src/common/cfgfiles.c
src/common/dcc.c
src/common/hexchat.c
Expand Down

0 comments on commit 12cd5cb

Please sign in to comment.