Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Desktop and i18n work #559

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions data/org.gnome.Hamster.GUI.desktop.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Version=1.0
Type=Application
Terminal=false
Name=Hamster
GenericName=Time Tracker
Comment=Your personal time keeping tool
Icon=org.gnome.Hamster.GUI
DBusActivatable=true
Expand All @@ -12,8 +13,8 @@ Actions=overview;add;

[Desktop Action overview]
Exec= @BINDIR@/hamster overview
Name=overview
Name=Time Tracking Overview

[Desktop Action add]
Exec= @BINDIR@/hamster add
Name=add
Name=Add activity
10 changes: 9 additions & 1 deletion data/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ bld.install_files('${DATADIR}/metainfo', 'hamster.metainfo.xml')
for filename in ["org.gnome.Hamster.GUI.desktop"]:
bld(features = "subst",
source= "%s.in" % filename,
target= "%s.tmp" % filename,
dict = bld.env
)

bld.add_group()
# MSGFMT is set by the intltool module, so conf.load('intltool') is required.
for filename in ["org.gnome.Hamster.GUI.desktop"]:
bld(rule = '${MSGFMT} --desktop -d ../po --template ${SRC} -o ${TGT}',
source= "%s.tmp" % filename,
target= "%s" % filename,
dict = bld.env,
install_path = "${DATADIR}/applications"
)
Loading